joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c10
Capabilities:
Hash data using djb2

Disassembly:
xor eax, eax
test ecx, ecx
je 0x402cf8
test edx, edx
je 0x402cf8
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [esp], ecx
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x402c5a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x402c61
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x402c40
jmp 0x402c63
mov esi, 0x1505
jmp 0x402c63
mov esi, ecx
mov dword [esp + 4], edx
mov ecx, dword [esp]
mov ebp, dword [ecx + 0x20]
lea ebx, [ebp - 1]
mov edx, ebp
sub edx, 1
mov dword [esp + 0x10], edx
jb 0x402cf1
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x402c94
inc ebx
dec ebp
je 0x402cef
mov eax, ebx
and eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x402cef
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402c90
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.004097a0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x402c90
push dword [esp + 0x28]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.004097c0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402c90
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x402cf1
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402d00
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 0x402e01
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402e01
push ebx
call fcn.004097a0
add esp, 4
test eax, eax
je 0x402d5a
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 0x402d61
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402d40
jmp 0x402d63
mov esi, 0x1505
jmp 0x402d63
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 0x402e01
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x402d94
inc ebp
dec ebx
je 0x402dff
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x402dff
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402d90
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.004097a0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402d90
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.004097c0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402d90
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402dff
cmp dword [eax + 4], 2
mov edi, 0
jne 0x402e01
mov edi, dword [eax + 8]
jmp 0x402e01
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402e30
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 0x402e9b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x402e9b
push esi
call fcn.004097a0
add esp, 4
test eax, eax
je 0x402e7a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x402e81
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x402e60
jmp 0x402e83
mov ebp, 0x1505
jmp 0x402e83
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 0x402ea7
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 0x402ec4
inc ebx
dec edi
je 0x402e9b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x402e9b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x402ec0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.004097a0
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x402ec0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.004097c0
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x402ec0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x402e9b
cmp dword [eax + 4], 3
jne 0x402e9b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x402e9b

Function at 0x402f60
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 0x403061
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x403061
push ebx
call fcn.004097a0
add esp, 4
test eax, eax
je 0x402fba
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 0x402fc1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402fa0
jmp 0x402fc3
mov esi, 0x1505
jmp 0x402fc3
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 0x403061
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x402ff4
inc ebp
dec ebx
je 0x40305f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40305f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402ff0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.004097a0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402ff0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.004097c0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402ff0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40305f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x403061
mov edi, dword [eax + 8]
jmp 0x403061
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403090
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 0x403194
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x403194
push ebx
call fcn.004097a0
add esp, 4
test eax, eax
je 0x4030ea
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x4030f1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4030d0
jmp 0x4030f3
mov esi, 0x1505
jmp 0x4030f3
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 0x403194
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x403124
inc ebp
dec ebx
je 0x40318f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40318f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x403120
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.004097a0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x403120
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.004097c0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x403120
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40318f
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x403194
mov edi, dword [eax + 8]
jmp 0x403194
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4031a0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
push 0x2e
push edi
call fcn.00409810
add esp, 8
test eax, eax
je 0x403206
mov ebx, eax
jmp 0x4031e4
mov edi, ebx
inc edi
push 0x2e
push edi
call fcn.00409810
add esp, 8
mov ebx, eax
test eax, eax
je 0x403206
mov eax, ebx
sub eax, edi
mov ecx, esi
mov edx, edi
push eax
call fcn.00402c10
add esp, 4
xor esi, esi
test eax, eax
je 0x4031d0
cmp dword [eax + 4], 4
jne 0x4031d0
mov esi, dword [eax + 8]
jmp 0x4031d0
xor eax, eax
test esi, esi
je 0x40326a
test edi, edi
je 0x40326a
push edi
call fcn.004097a0
add esp, 4
test eax, eax
je 0x40324a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [edi + ebp]
test edx, edx
je 0x403251
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc ebp
mov ecx, ebx
cmp eax, ebp
jne 0x403230
jmp 0x403253
mov ebx, 0x1505
jmp 0x403253
mov ebx, ecx
mov dword [esp + 4], eax
mov ecx, dword [esi + 0x20]
lea ebp, [ecx - 1]
mov eax, ecx
sub eax, 1
mov dword [esp + 0x14], eax
jae 0x403272
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebp, ebx
mov dword [esp], esi
mov eax, dword [esi + 4]
mov dword [esp + 0x10], eax
jmp 0x403284
inc ebp
dec ecx
je 0x403268
mov eax, ebp
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x403268
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + esi*4], ebx
jne 0x403280
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 0xc], eax
push eax
mov dword [esp + 0xc], ecx
call fcn.004097a0
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x403280
push dword [esp + 4]
push dword [esp + 0x10]
push edi
call fcn.004097c0
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x403280
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi*4]
jmp 0x40326a
Function at 0x403380
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 0x4033ed
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4033ed
push esi
call fcn.004097a0
add esp, 4
test eax, eax
je 0x4033ca
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x4033d1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x4033b0
jmp 0x4033d3
mov ebx, 0x1505
jmp 0x4033d3
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 0x4033f5
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 0x403404
inc ebp
dec edi
je 0x4033eb
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x4033eb
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x403400
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.004097a0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x403400
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.004097c0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x403400
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x4033ed
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x4033ed
Function at 0x403610
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0xffffffff
test ecx, ecx
je 0x40371c
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, edx
test edx, edx
je 0x403715
mov dword [esp], ecx
cmp dword [esp + 0x2c], 0
je 0x403715
push esi
call fcn.004097a0
add esp, 4
test eax, eax
je 0x40366a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x403671
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x403650
jmp 0x403673
mov ebp, 0x1505
jmp 0x403673
mov ebp, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
lea ebx, [esi - 1]
mov edx, esi
sub edx, 1
mov dword [esp + 0x10], edx
jae 0x40371d
mov edi, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x4036da
call fcn.00403810
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 8]
jne 0x403715
push ecx
call fcn.004097a0
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
lea ebx, [esi - 1]
mov eax, esi
sub eax, 1
mov dword [esp + 0x10], eax
jae 0x40378f
mov edi, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 8]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + edi*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], edi
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], eax
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x403738
inc ebx
dec esi
je 0x40368f
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x403694
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x403730
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx + eax*4]
push edi
call fcn.004097a0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x403730
push dword [esp + 4]
push edi
push dword [esp + 0x10]
call fcn.004097c0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x403730
mov eax, 0xffffffff
jmp 0x403715
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x4037a8
inc ebx
dec esi
je 0x4036d5
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x4036da
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x4037a0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
push eax
call fcn.004097a0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4037a0
push dword [esp + 4]
push dword [esp + 0x18]
push dword [esp + 0x10]
call fcn.004097c0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4037a0
jmp 0x4036da
Function at 0x403f20
Capabilities:
Compute adler32 checksum
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x4040d6
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov eax, esi
not eax
or eax, 0xffff
lea edi, [esi + eax]
inc edi
shr esi, 0x10
test ebx, ebx
je 0x4040cf
mov ecx, 0x5e6ea9af
mov eax, ebx
mul ecx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ecx, ebx
sub ecx, eax
jmp 0x403fb2
add ebp, dword [esp + 0xc]
mov ecx, dword [esp]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, esi
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub esi, eax
mov ebx, dword [esp + 0x10]
sub ebx, ecx
mov ecx, 0x15b0
je 0x4040cf
mov dword [esp + 0x10], ebx
xor edx, edx
cmp ecx, 8
mov dword [esp], ecx
jb 0x404035
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebp]
add edx, edi
movzx edi, byte [ebp + 1]
add edi, edx
movzx ecx, byte [ebp + 2]
add ecx, edi
add edx, esi
movzx esi, byte [ebp + 3]
add esi, ecx
add edx, edi
movzx edi, byte [ebp + 4]
add edi, esi
add edx, ecx
add edx, esi
add edx, edi
movzx ecx, byte [ebp + 5]
add ecx, edi
mov esi, edx
and esi, ecx
xor edx, ecx
movzx ebx, byte [ebp + 6]
add ebx, ecx
movzx edi, byte [ebp + 7]
add edi, ebx
add ebx, edx
lea esi, [ebx + esi*2]
add esi, edi
mov ecx, eax
and ecx, 8
xor eax, 8
lea edx, [eax + ecx*2]
add ebp, 8
lea ecx, [eax + ecx*2]
add ecx, 7
mov eax, edx
cmp ecx, dword [esp]
mov ecx, dword [esp]
jb 0x403fd0
mov eax, edx
sub eax, ecx
jae 0x403f77
sub ecx, edx
mov dword [esp + 0xc], ecx
and ecx, 3
mov dword [esp + 4], ecx
je 0x404080
mov dword [esp + 8], eax
neg dword [esp + 4]
xor ecx, ecx
mov ebx, ebp
nop
nop
nop
nop
nop
nop
movzx eax, byte [ebx]
inc ebx
add edi, eax
add esi, edi
dec ecx
cmp dword [esp + 4], ecx
jne 0x404060
sub edx, ecx
mov eax, dword [esp + 8]
cmp eax, 0xfffffffc
ja 0x403f70
jmp 0x40408b
mov ebx, ebp
cmp eax, 0xfffffffc
ja 0x403f70
mov eax, dword [esp]
sub eax, edx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [ebx + edx]
add ecx, edi
add esi, ecx
movzx edi, byte [ebx + edx + 1]
add edi, ecx
add esi, edi
movzx ecx, byte [ebx + edx + 2]
add ecx, edi
add esi, ecx
movzx edi, byte [ebx + edx + 3]
add edi, ecx
add esi, edi
add edx, 4
cmp eax, edx
jne 0x4040a0
jmp 0x403f70
shl esi, 0x10
add esi, edi
jmp 0x4040db
mov esi, 1
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4040f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40411e
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x4041bc
not eax
test bl, 1
jne 0x404125
mov edx, ebx
cmp ebx, 1
jne 0x404156
jmp 0x4041ba
xor eax, eax
jmp 0x4041bc
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 + 0x43a80c]
inc ecx
mov eax, edi
shr eax, 4
and edi, 0xf
shr esi, 4
xor esi, edi
xor eax, dword [esi*4 + 0x43a80c]
cmp ebx, 1
je 0x4041ba
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 + 0x43a80c]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x43a80c]
movzx edi, byte [ecx + esi + 1]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x43a80c]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x43a80c]
add esi, 2
cmp edx, esi
jne 0x404160
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x409e00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20c
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x220]
movzx ecx, word [eax]
test cx, cx
je 0x409f30
mov ebp, eax
add eax, 2
xor ebx, ebx
jmp 0x409e3d
add ebx, edx
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0x409e5f
movzx esi, cx
cmp esi, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp esi, 0x80
jb 0x409e30
mov edx, ecx
jmp 0x409e30
lea esi, [ebx + 1]
push esi
call fcn.00409690
add esp, 4
test ebx, ebx
jle 0x409f3a
add ebx, eax
add esi, eax
mov edi, eax
mov edx, ebp
mov dword [esp], esi
jmp 0x409e94
mov byte [edi], cl
mov esi, 1
add edi, esi
add edx, 2
cmp edi, ebx
jae 0x409f3c
movzx ecx, word [edx]
test cx, cx
je 0x409f3c
cmp cx, 0x7f
jbe 0x409e80
mov esi, edi
not esi
mov ebp, esi
and ebp, dword [esp]
xor esi, dword [esp]
lea ebp, [esi + ebp*2]
movzx esi, cx
cmp ebp, 2
jb 0x409ef0
cmp esi, 0x7ff
ja 0x409ef0
mov esi, edx
mov edx, ecx
shr edx, 6
add dl, 0xc0
mov byte [edi], dl
mov edx, esi
and cl, 0x3f
or cl, 0x80
mov byte [edi + 1], cl
mov esi, 2
jmp 0x409e87
mov dword [esp + 8], esi
xor esi, esi
cmp ebp, 3
jb 0x409e87
mov esi, edx
mov ebp, dword [esp + 8]
mov edx, ebp
shr edx, 0xc
or dl, 0xe0
mov byte [edi], dl
mov edx, esi
shr ebp, 6
mov esi, eax
mov eax, ebp
and al, 0x3f
or al, 0x80
mov byte [edi + 1], al
mov eax, esi
and cl, 0x3f
or cl, 0x80
mov byte [edi + 2], cl
mov esi, 3
jmp 0x409e87
push 1
call fcn.00409690
add esp, 4
mov edi, eax
mov ebp, dword [esp + 0x228]
mov esi, dword [esp + 0x224]
mov byte [edi], 0
xor ecx, ecx
jmp 0x409f65
mov byte [esp + ecx + 0xc], dl
inc ecx
movzx ebx, byte [eax + ecx]
mov dl, 0x2f
cmp ebx, 0x5c
je 0x409f60
test ebx, ebx
je 0x409f78
mov edx, ebx
jmp 0x409f60
mov byte [esp + ecx + 0xc], 0
lea eax, [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push dword [ecx + 8]
add ecx, 0x10
push 0
push 0
push ebp
push esi
push eax
push ecx
call fcn.004062d0
add esp, 0x28
test eax, eax
setne al
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x40b990
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x150
mov esi, esp
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0x3c
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x50], 0xffffffff
mov edx, 0xfffffffe
mov ecx, dword [0x442a18]
nop
nop
nop
nop
nop
cmp word [eax + edx + 2], 0
lea edx, [edx + 2]
jne case.default.0x40ba3e
sar edx, 1
lea edi, [esi + 0x20]
push edi
push 0
push edx
push eax
call ecx
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x43da30]
xor eax, eax
jmp 0x40c03b
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40e5f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x148
mov word [esp + 0x58], 0x96f
mov dword [esp + 0x5a], 0
mov byte [esp + 0x5e], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x40e669
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x58]
add eax, 0xd6903f02
xor eax, ecx
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xc0]
add al, 0xf6
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x58], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 7
jb 0x40e630
lea ebx, [esp + 0x58]
push ebx
push dword [ebp + 8]
call fcn.00402f60
add esp, 8
mov esi, eax
xor ecx, ecx
test eax, eax
sete cl
xor edi, edi
xor eax, eax
jmp dword [ecx*4 + 0x43e2f4]