joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404004
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004098d0
mov eax, dword [0x40a064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40a3cc]
push esi
push edi
xor edi, edi
shl eax, 2
mov esi, edi
test eax, eax
jle 0x404057
push edi
lea eax, [ebp - 0x1008]
push eax
push 2
push 0x4019c8
push dword [0x40a06c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x40a3cc]
inc esi
shl eax, 2
cmp esi, eax
jl 0x40402f
lea eax, [ebp + 0xc]
mov edx, 0x800
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1004]
call fcn.00403f6e
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x404077
sub ecx, edx
lea eax, [ebp - 0x1008]
push edi
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [0x40a06c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004092a0
mov esp, ebp
pop ebp
ret

Function at 0x4040b5
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00403282
mov eax, dword [0x40a064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40a3cc]
push esi
push edi
xor edi, edi
shl eax, 2
mov esi, edi
test eax, eax
jle 0x404108
push edi
lea eax, [ebp - 0x1008]
push eax
push 2
push 0x4019c8
push dword [0x40a06c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x40a3cc]
inc esi
shl eax, 2
cmp esi, eax
jl 0x4040e0
lea eax, [ebp + 0xc]
mov edx, 0x800
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1004]
call fcn.00403f6e
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x404128
sub ecx, edx
lea eax, [ebp - 0x1008]
push edi
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [0x40a06c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea eax, [ebp - 0x1008]
push eax
push 4
push 0x4019cc
push dword [0x40a06c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004092a0
mov esp, ebp
pop ebp
ret
Function at 0x401790
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 0x401870
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x401870
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4017da
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x4017e1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4017c0
jmp 0x4017e3
mov esi, 0x1505
jmp 0x4017e3
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 0x401870
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x401814
inc edi
dec ebx
je 0x40186e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40186e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x401810
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.00408910
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401810
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00408930
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x401810
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x401870
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401880
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 0x401981
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401981
push ebx
call fcn.00408910
add esp, 4
test eax, eax
je 0x4018da
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 0x4018e1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4018c0
jmp 0x4018e3
mov esi, 0x1505
jmp 0x4018e3
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 0x401981
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401914
inc ebp
dec ebx
je 0x40197f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40197f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401910
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408910
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401910
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408930
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401910
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40197f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x401981
mov edi, dword [eax + 8]
jmp 0x401981
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4019b0
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 0x401a1b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x401a1b
push esi
call fcn.00408910
add esp, 4
test eax, eax
je 0x4019fa
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x401a01
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x4019e0
jmp 0x401a03
mov ebp, 0x1505
jmp 0x401a03
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 0x401a27
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 0x401a44
inc ebx
dec edi
je 0x401a1b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x401a1b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x401a40
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408910
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x401a40
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.00408930
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x401a40
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x401a1b
cmp dword [eax + 4], 3
jne 0x401a1b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x401a1b

Function at 0x401ae0
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 0x401be1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401be1
push ebx
call fcn.00408910
add esp, 4
test eax, eax
je 0x401b3a
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 0x401b41
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401b20
jmp 0x401b43
mov esi, 0x1505
jmp 0x401b43
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 0x401be1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401b74
inc ebp
dec ebx
je 0x401bdf
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401bdf
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401b70
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408910
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401b70
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408930
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401b70
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401bdf
cmp dword [eax + 4], 5
mov edi, 0
jne 0x401be1
mov edi, dword [eax + 8]
jmp 0x401be1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401c10
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 0x401d14
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401d14
push ebx
call fcn.00408910
add esp, 4
test eax, eax
je 0x401c6a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x401c71
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401c50
jmp 0x401c73
mov esi, 0x1505
jmp 0x401c73
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 0x401d14
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x401ca4
inc ebp
dec ebx
je 0x401d0f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401d0f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401ca0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408910
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401ca0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408930
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401ca0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401d0f
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x401d14
mov edi, dword [eax + 8]
jmp 0x401d14
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401d20
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.00408980
add esp, 8
test eax, eax
je 0x401d84
mov esi, eax
jmp 0x401d64
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.00408980
add esp, 8
mov esi, eax
test eax, eax
je 0x401d84
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.00401790
add esp, 0xc
xor edi, edi
test eax, eax
je 0x401d50
cmp dword [eax + 4], 4
jne 0x401d50
mov edi, dword [eax + 8]
jmp 0x401d50
xor eax, eax
test edi, edi
je 0x401deb
test ebp, ebp
je 0x401deb
push ebp
call fcn.00408910
add esp, 4
test eax, eax
je 0x401dcb
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 0x401dd2
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x401db0
jmp 0x401dd4
mov esi, 0x1505
jmp 0x401dd4
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 0x401df3
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 0x401e14
inc ebx
dec ecx
je 0x401de9
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x401de9
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x401e10
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.00408910
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x401e10
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.00408930
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x401e10
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401deb
Function at 0x401f10
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 0x401f7d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x401f7d
push esi
call fcn.00408910
add esp, 4
test eax, eax
je 0x401f5a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x401f61
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x401f40
jmp 0x401f63
mov ebx, 0x1505
jmp 0x401f63
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 0x401f85
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 0x401f94
inc ebp
dec edi
je 0x401f7b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x401f7b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x401f90
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00408910
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401f90
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00408930
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401f90
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x401f7d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x401f7d

Function at 0x402070
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402199
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x40218d
cmp ecx, 5
je 0x402149
cmp ecx, 4
jne 0x402199
mov esi, dword [eax + 8]
cmp dword [esi + 0x18], 0
je 0x4020d3
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 0xc]
push dword [eax + edi*4]
call dword [section..data]
add esp, 4
mov eax, dword [esi + 0x10]
push dword [eax + edi*4]
call fcn.00402070
add esp, 4
inc edi
cmp edi, dword [esi + 0x18]
jb 0x4020b0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
push dword [esi + 4]
call dword [section..data]
add esp, 4
push dword [esi + 0xc]
call dword [section..data]
add esp, 4
push dword [esi + 0x10]
call dword [section..data]
add esp, 4
push dword [esi + 0x14]
call dword [section..data]
add esp, 4
push dword [esi + 8]
call dword [section..data]
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
jmp 0x40218a
mov esi, dword [eax + 8]
cmp dword [esi + 8], 0
je 0x40217e
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 4]
push dword [eax + edi*4]
call fcn.00402070
add esp, 4
mov eax, edi
xor eax, 1
and edi, 1
lea edi, [eax + edi*2]
cmp edi, dword [esi + 8]
jb 0x402160
push dword [esi + 4]
call dword [section..data]
add esp, 4
push esi
jmp 0x402190
push dword [eax + 8]
call dword [section..data]
add esp, 4
pop esi
pop edi
jmp dword [section..data]
Function at 0x4021b0
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 0x4022c2
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4022c2
cmp dword [esp + 0x2c], 0
je 0x4022c2
push esi
call fcn.00408910
add esp, 4
test eax, eax
je 0x40221a
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 0x402221
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x402200
jmp 0x402223
mov ebx, 0x1505
jmp 0x402223
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 0x4022ca
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x402287
call fcn.004023c0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x4022c2
push ecx
call fcn.00408910
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 0x40233d
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 0x4022e8
inc edi
dec esi
je 0x40223c
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x402241
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x4022e0
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.00408910
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4022e0
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.00408930
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4022e0
mov eax, 0xffffffff
jmp 0x4022c2
and edi, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x402358
inc edi
dec esi
je 0x402282
mov ebp, edi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x402287
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x402350
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408910
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402350
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.00408930
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402350
jmp 0x402287
Function at 0x402b50
Capabilities:
Compute adler32 checksum
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x402d06
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x402cff
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
jmp 0x402be5
mov eax, dword [esp]
sub eax, dword [esp + 4]
add ebp, eax
mov esi, dword [esp + 8]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp]
mov edx, 0x15b0
je 0x402cff
xor ebx, ebx
cmp edx, 8
mov dword [esp], edx
mov dword [esp + 8], esi
jb 0x402c65
mov ebx, edx
and ebx, 0x1ff8
xor eax, eax
nop
nop
nop
mov edx, eax
movzx eax, byte [ebp + eax]
mov esi, edi
and esi, eax
xor edi, eax
lea eax, [edi + esi*2]
add ecx, eax
movzx esi, byte [ebp + edx + 1]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 2]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 3]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 4]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 5]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 6]
add eax, esi
add ecx, eax
movzx edi, byte [ebp + edx + 7]
add edi, eax
add ecx, edi
lea eax, [edx + 8]
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0x402c00
add ebp, eax
mov esi, dword [esp + 8]
mov eax, ebx
sub eax, edx
jae 0x402bad
mov dword [esp + 0xc], eax
mov eax, edx
and eax, 3
mov dword [esp + 4], ebx
je 0x402cb0
neg eax
xor ebx, ebx
mov edx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec ebx
cmp eax, ebx
jne 0x402c90
mov eax, dword [esp + 4]
sub eax, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402ba0
jmp 0x402cbf
mov eax, ebx
mov edx, ebp
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402ba0
mov ebx, dword [esp]
sub ebx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + eax]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + eax + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 3]
add edi, esi
add ecx, edi
add eax, 4
cmp ebx, eax
jne 0x402cd0
jmp 0x402ba0
shl ecx, 0x10
or ecx, edi
jmp 0x402d0b
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402d7c
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x402d7e
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 + 0x43d80c]
mov eax, ebx
shr eax, 4
mov ebp, ebx
xor ebp, 0x3ffffff0
or ebx, 0xf
and ebx, ebp
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x43d80c]
inc esi
cmp edx, esi
jne 0x402d40
not eax
jmp 0x402d7e
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408ee0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov ecx, dword [esp + 4]
mov dword [0x445e84], ecx
mov eax, 0xfffffd92
nop
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
add ecx, eax
add ecx, 0x26f
mov dword [eax*4 + 0x446840], ecx
test eax, eax
je 0x408f31
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
add ecx, eax
add ecx, 0x270
mov dword [eax*4 + 0x446844], ecx
add eax, 2
jmp 0x408ef0
mov dword [0x445e80], 0x270
ret
Function at 0x4092e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push edi
push esi
mov eax, dword [ecx]
cmp eax, 0x270
jne 0x409342
mov esi, dword [ecx + 4]
mov eax, 0xfffff640
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax + 0x9c8]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
xor edx, dword [ecx + eax + 0xff8]
and edi, 0x9908b0df
xor edx, edi
mov dword [ecx + eax + 0x1384], edx
add eax, 4
jne 0x409300
mov eax, 0x270
jmp 0x409354
cmp eax, 0x4e0
jb 0x409354
mov esi, ecx
call fcn.004093b0
mov ecx, esi
mov eax, dword [esi]
lea edx, [eax + 1]
mov dword [ecx], edx
mov eax, dword [ecx + eax*4 + 4]
mov edx, eax
shr edx, 0xb
and edx, dword [ecx + 0x1384]
xor edx, eax
mov ecx, edx
shl ecx, 7
and ecx, 0x9d2c5680
lea eax, [ecx + edx]
and ecx, edx
add ecx, ecx
sub eax, ecx
mov ecx, eax
shl ecx, 0xf
mov edx, ecx
or edx, 0xefc60000
xor ecx, 0x1039ffff
and ecx, edx
mov edx, ecx
and edx, eax
add edx, edx
sub ecx, edx
add ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
pop edi
ret

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

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x270
xor edx, edx
mov esi, SysReAllocString
mov ebp, dword [ecx + eax*4 + 4]
and ebp, esi
mov edi, edx
and edi, 2
mov ebx, eax
xor ebx, 1
add ebx, edi
mov edi, dword [ecx + ebx*4 + 4]
mov ebx, edi
and ebx, 0x7ffffffe
or ebx, ebp
shr ebx, 1
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4 + 0x638]
xor edi, ebx
mov dword [ecx + eax*4 - 0x9bc], edi
inc eax
add edx, 2
cmp eax, 0x353
jne 0x4093c0
mov esi, dword [ecx + 0xd50]
mov eax, 0x355
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4 - 0xd50]
xor edi, edx
mov dword [ecx + eax*4 - 0x9c4], edi
inc eax
cmp eax, 0x4e1
jne 0x409420
mov esi, SysReAllocString
and esi, dword [ecx + 0x1380]
mov eax, dword [ecx + 4]
mov edx, eax
and edx, 0x7ffffffe
or edx, esi
and eax, 1
neg eax
and eax, 0x9908b0df
xor eax, dword [ecx + 0x634]
shr edx, 1
xor eax, edx
mov dword [ecx + 0x9c0], eax
mov dword [ecx], 0
pop esi
pop edi
pop ebx
pop ebp
ret