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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc2000]
push edi
jmp 0x51908a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x519091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x519080
mov eax, 1
add ebx, ebx
jne 0x5190a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5190b4
jne 0x5190d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5190d3
dec eax
add ebx, ebx
jne 0x5190c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x519098
add ebx, ebx
jne 0x5190cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x519125
xor ecx, ecx
sub eax, 3
jb 0x5190eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51915a
sar eax, 1
mov ebp, eax
jmp 0x5190f6
add ebx, ebx
jne 0x5190f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5190c4
inc ecx
add ebx, ebx
jne 0x519104
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5190c4
add ebx, ebx
jne 0x519111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x519106
jne 0x519122
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x519106
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x519144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x519136
jmp 0x519086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x519144
add edi, ecx
jmp 0x519086
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x519162
cmp byte [edi], 0x11
jne 0x519162
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 0x519167
lea edi, [esi + 0x112000]
mov eax, dword [edi]
or eax, eax
je 0x5191df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x159868]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1599e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x519194
mov ecx, edi
jns 0x5191c3
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 + 0x1599e8]
or eax, eax
je 0x5191d9
mov dword [ebx], eax
add ebx, 4
jmp 0x5191b1
call dword [esi + 0x1599f8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x519210
cmp al, 0xef
ja 0x519203
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5191e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5191f2
mov ebp, dword [esi + 0x1599ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x519244
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x4017c0
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 0x4018a0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4018a0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40180a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x401811
inc edi
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, esi
cmp ebp, edi
jne 0x4017f0
jmp 0x401813
mov esi, 0x1505
jmp 0x401813
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 0x4018a0
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401844
inc edi
dec ebx
je 0x40189e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40189e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x401840
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.00409840
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401840
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00409860
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x401840
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4018a0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4018b0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x4019b1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4019b1
push ebx
call fcn.00409840
add esp, 4
test eax, eax
je 0x40190a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x401911
inc ebp
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, esi
cmp eax, ebp
jne 0x4018f0
jmp 0x401913
mov esi, 0x1505
jmp 0x401913
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x4019b1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401944
inc ebp
dec ebx
je 0x4019af
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4019af
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401940
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409840
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401940
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409860
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401940
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4019af
cmp dword [eax + 4], 2
mov edi, 0
jne 0x4019b1
mov edi, dword [eax + 8]
jmp 0x4019b1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4019e0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
fldz
fstp qword [esp + 0x10]
cmp dword [esp + 0x2c], 0
je 0x401a4b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x401a4b
push esi
call fcn.00409840
add esp, 4
test eax, eax
je 0x401a2a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x401a31
inc edi
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
mov ecx, ebp
cmp eax, edi
jne 0x401a10
jmp 0x401a33
mov ebp, 0x1505
jmp 0x401a33
mov ebp, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + 0x20]
lea ebx, [edi - 1]
mov eax, edi
sub eax, 1
mov dword [esp + 0xc], eax
jae 0x401a57
fld qword [esp + 0x10]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401a74
inc ebx
dec edi
je 0x401a4b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x401a4b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x401a70
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409840
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x401a70
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.00409860
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x401a70
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x401a4b
cmp dword [eax + 4], 3
jne 0x401a4b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x401a4b

Function at 0x401b10
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x401c11
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401c11
push ebx
call fcn.00409840
add esp, 4
test eax, eax
je 0x401b6a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x401b71
inc ebp
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, esi
cmp eax, ebp
jne 0x401b50
jmp 0x401b73
mov esi, 0x1505
jmp 0x401b73
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x401c11
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401ba4
inc ebp
dec ebx
je 0x401c0f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401c0f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401ba0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409840
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401ba0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409860
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401ba0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401c0f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x401c11
mov edi, dword [eax + 8]
jmp 0x401c11
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401c40
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x401d44
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401d44
push ebx
call fcn.00409840
add esp, 4
test eax, eax
je 0x401c9a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x401ca1
inc ebp
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, esi
cmp eax, ebp
jne 0x401c80
jmp 0x401ca3
mov esi, 0x1505
jmp 0x401ca3
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x401d44
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401cd4
inc ebp
dec ebx
je 0x401d3f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401d3f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401cd0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409840
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401cd0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409860
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401cd0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401d3f
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x401d44
mov edi, dword [eax + 8]
jmp 0x401d44
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401d50
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push 0x2e
push ebp
call fcn.004098b0
add esp, 8
test eax, eax
je 0x401db4
mov esi, eax
jmp 0x401d94
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.004098b0
add esp, 8
mov esi, eax
test eax, eax
je 0x401db4
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.004017c0
add esp, 0xc
xor edi, edi
test eax, eax
je 0x401d80
cmp dword [eax + 4], 4
jne 0x401d80
mov edi, dword [eax + 8]
jmp 0x401d80
xor eax, eax
test edi, edi
je 0x401e1b
test ebp, ebp
je 0x401e1b
push ebp
call fcn.00409840
add esp, 4
test eax, eax
je 0x401dfb
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebp + ebx]
test edx, edx
je 0x401e02
inc ebx
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, esi
cmp eax, ebx
jne 0x401de0
jmp 0x401e04
mov esi, 0x1505
jmp 0x401e04
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [edi + 0x20]
lea ebx, [ecx - 1]
mov eax, ecx
sub eax, 1
mov dword [esp + 0x14], eax
jae 0x401e23
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, esi
mov dword [esp], edi
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
jmp 0x401e44
inc ebx
dec ecx
je 0x401e19
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401e19
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x401e40
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
mov dword [esp + 0xc], ecx
call fcn.00409840
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x401e40
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.00409860
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x401e40
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401e1b
Function at 0x401f40
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor eax, eax
cmp dword [esp + 0x24], 0
je 0x401fad
mov esi, dword [esp + 0x28]
test esi, esi
je 0x401fad
push esi
call fcn.00409840
add esp, 4
test eax, eax
je 0x401f8a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x401f91
inc edi
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
mov ecx, ebx
cmp eax, edi
jne 0x401f70
jmp 0x401f93
mov ebx, 0x1505
jmp 0x401f93
mov ebx, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
lea ebp, [edi - 1]
mov eax, edi
sub eax, 1
mov dword [esp + 0xc], eax
jae 0x401fb5
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
and ebp, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401fc4
inc ebp
dec edi
je 0x401fab
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x401fab
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x401fc0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409840
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401fc0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409860
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401fc0
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x401fad
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x401fad
Function at 0x4021d0
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 0x4022e2
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4022e2
cmp dword [esp + 0x2c], 0
je 0x4022e2
push esi
call fcn.00409840
add esp, 4
test eax, eax
je 0x40223a
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 0x402241
inc edi
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
mov ecx, ebx
cmp eax, edi
jne 0x402220
jmp 0x402243
mov ebx, 0x1505
jmp 0x402243
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 0x4022ea
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x4022a7
call fcn.004023e0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x4022e2
push ecx
call fcn.00409840
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 0x40235d
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 0x402308
inc edi
dec esi
je 0x40225c
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x402261
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x402300
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.00409840
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402300
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.00409860
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402300
mov eax, 0xffffffff
jmp 0x4022e2
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x402378
inc edi
dec esi
je 0x4022a2
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x4022a7
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x402370
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00409840
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402370
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.00409860
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402370
jmp 0x4022a7
Function at 0x402b10
Capabilities:
Compute adler32 checksum
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402cd6
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov eax, ecx
not eax
or eax, 0xffff
lea edi, [ecx + eax]
inc edi
shr ecx, 0x10
test esi, esi
je 0x402ccf
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebp, esi
sub ebp, eax
jmp 0x402bb0
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 0x402ccf
xor eax, eax
cmp ebp, 8
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
jb 0x402c3e
and ebp, 0x1ff8
mov dword [esp], ebp
xor edx, edx
nop
nop
mov eax, edx
movzx edx, byte [ebx + edx]
mov esi, edi
and esi, edx
xor edi, edx
lea edx, [edi + esi*2]
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]
mov edi, edx
and edi, esi
xor edx, esi
lea edx, [edx + edi*2]
add ecx, edx
movzx esi, byte [ebx + eax + 6]
add esi, edx
add ecx, esi
movzx edi, byte [ebx + eax + 7]
add edi, esi
mov ebp, dword [esp + 4]
add ecx, edi
lea edx, [eax + 8]
add eax, 0xf
cmp eax, ebp
jb 0x402bd0
add ebx, edx
mov eax, dword [esp]
mov esi, dword [esp + 8]
mov edx, eax
sub edx, ebp
jae 0x402b6f
mov dword [esp + 0xc], edx
and ebp, 3
mov dword [esp], eax
je 0x402c7f
neg ebp
xor eax, eax
mov edx, ebx
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec eax
cmp ebp, eax
jne 0x402c60
mov ebp, dword [esp]
sub ebp, eax
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402b60
jmp 0x402c8e
mov ebp, eax
mov edx, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402b60
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 0x402ca0
jmp 0x402b60
shl ecx, 0x10
add ecx, edi
jmp 0x402cdb
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402cf0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x402d1e
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x402dbc
not eax
test bl, 1
jne 0x402d25
mov edx, ebx
cmp ebx, 1
jne 0x402d56
jmp 0x402dba
xor eax, eax
jmp 0x402dbc
lea edx, [ebx - 1]
movzx esi, byte [ecx]
mov edi, eax
shr edi, 4
xor eax, esi
and eax, 0xf
xor edi, dword [eax*4 + 0x44080c]
inc ecx
mov eax, edi
shr eax, 4
and edi, 0xf
shr esi, 4
xor esi, edi
xor eax, dword [esi*4 + 0x44080c]
cmp ebx, 1
je 0x402dba
xor esi, esi
nop
nop
nop
nop
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 + 0x44080c]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x44080c]
movzx edi, byte [ecx + esi + 1]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x44080c]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x44080c]
add esi, 2
cmp edx, esi
jne 0x402d60
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x409db0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push edi
push esi
mov edx, dword [esp + 0xc]
mov dword [0x4487ec], 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 + 0x4487f0], esi
cmp ecx, 0x26e
je 0x409e26
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 + 0x4487f4], edx
add eax, 2
add ecx, 2
jmp 0x409dd0
mov dword [0x4487e8], 0x270
pop esi
pop edi
ret