joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c300
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4afbe8]
cmp byte [eax + 0xa5], 0
jne 0x46c377
cmp dword [0x4afc00], 0
jne 0x46c335
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46c2bc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4afc00], eax
cmp dword [0x4afbfc], 0
jne 0x46c350
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4afbfc], eax
cmp dword [0x4afc04], 0
jne 0x46c377
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x46c25c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4afc04], eax
pop ecx
pop ebp
ret

Function at 0x46c440
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.0046c3d8
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x46c461
xor eax, eax
call fcn.0046c410
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 9], 0
je 0x46c47b
mov al, 1
call fcn.0046c410
mov esp, ebp
pop ebp
ret

Function at 0x46cbc4
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x4afbe8]
cmp dword [eax + 0x30], 0
je 0x46cc8e
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 0
jne 0x46cc85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 5]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x14]
push eax
push 0x46cb44
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
cmp dword [eax + 8], 0
je 0x46cc85
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x14], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46cc3f
mov dword [ebp - 0x14], 0xfffffffe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x46cc85
mov dword [ebp - 0xc], eax
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
call fcn.0041b55c
push eax
call sub.user32.dll_SetWindowPos
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x46cc54
mov eax, dword [ebp - 4]
inc dword [eax + 0x94]
mov esp, ebp
pop ebp
ret

Function at 0x46d9a8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa4], 0
je 0x46d9ed
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 8]
call fcn.00404188
jmp 0x46d9fe
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x8c]
call fcn.004040ec
mov esp, ebp
pop ebp
ret
Function at 0x46ee64
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
je 0x46eeb7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.004524fc
test al, al
je 0x46eeb7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.004521f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46eeb7
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.004521f8
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret
Function at 0x435c40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c000]
push edi
or ebp, 0xffffffff
jmp 0x435c62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x435c69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x435c58
mov eax, 1
add ebx, ebx
jne 0x435c7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x435c70
jne 0x435c8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x435c70
xor ecx, ecx
sub eax, 3
jb 0x435ca0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x435d12
mov ebp, eax
add ebx, ebx
jne 0x435cab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x435cb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x435cdc
inc ecx
add ebx, ebx
jne 0x435cc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x435cbd
jne 0x435cd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x435cbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x435cfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x435ced
jmp 0x435c5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x435cfc
add edi, ecx
jmp 0x435c5e
pop esi
mov edi, esi
mov ecx, 0x80f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x435d1a
cmp byte [edi], 0xa
jne 0x435d1a
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 0x435d1f
lea edi, [esi + 0x32000]
mov eax, dword [edi]
or eax, eax
je 0x435d97
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x35354]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x35458]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x435d4c
mov ecx, edi
jns 0x435d7b
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 + 0x3545c]
or eax, eax
je 0x435d91
mov dword [ebx], eax
add ebx, 4
jmp 0x435d69
call dword [esi + 0x3546c]
popal
jmp 0x412362
Function at 0x402750
Capabilities:
Hash data using djb2

Disassembly:
xor eax, eax
test ecx, ecx
je 0x402838
test edx, edx
je 0x402838
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [esp], ecx
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40279a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x4027a1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x402780
jmp 0x4027a3
mov esi, 0x1505
jmp 0x4027a3
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 0x402831
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x4027d4
inc ebx
dec ebp
je 0x40282f
mov eax, ebx
and eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40282f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4027d0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.004093e0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4027d0
push dword [esp + 0x28]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00409400
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4027d0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x402831
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402840
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 0x402941
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402941
push ebx
call fcn.004093e0
add esp, 4
test eax, eax
je 0x40289a
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 0x4028a1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402880
jmp 0x4028a3
mov esi, 0x1505
jmp 0x4028a3
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 0x402941
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x4028d4
inc ebp
dec ebx
je 0x40293f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40293f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x4028d0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.004093e0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x4028d0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409400
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x4028d0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40293f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x402941
mov edi, dword [eax + 8]
jmp 0x402941
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402970
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 0x4029db
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4029db
push esi
call fcn.004093e0
add esp, 4
test eax, eax
je 0x4029ba
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4029c1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x4029a0
jmp 0x4029c3
mov ebp, 0x1505
jmp 0x4029c3
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 0x4029e7
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 0x402a04
inc ebx
dec edi
je 0x4029db
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x4029db
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x402a00
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.004093e0
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x402a00
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.00409400
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x402a00
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4029db
cmp dword [eax + 4], 3
jne 0x4029db
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x4029db

Function at 0x402aa0
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 0x402ba1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402ba1
push ebx
call fcn.004093e0
add esp, 4
test eax, eax
je 0x402afa
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 0x402b01
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402ae0
jmp 0x402b03
mov esi, 0x1505
jmp 0x402b03
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 0x402ba1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x402b34
inc ebp
dec ebx
je 0x402b9f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x402b9f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402b30
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.004093e0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402b30
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409400
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402b30
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402b9f
cmp dword [eax + 4], 5
mov edi, 0
jne 0x402ba1
mov edi, dword [eax + 8]
jmp 0x402ba1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402bd0
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 0x402cd4
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402cd4
push ebx
call fcn.004093e0
add esp, 4
test eax, eax
je 0x402c2a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x402c31
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402c10
jmp 0x402c33
mov esi, 0x1505
jmp 0x402c33
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 0x402cd4
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x402c64
inc ebp
dec ebx
je 0x402ccf
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x402ccf
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402c60
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.004093e0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402c60
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409400
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402c60
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402ccf
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x402cd4
mov edi, dword [eax + 8]
jmp 0x402cd4
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402ce0
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.00409450
add esp, 8
test eax, eax
je 0x402d46
mov ebx, eax
jmp 0x402d24
mov edi, ebx
inc edi
push 0x2e
push edi
call fcn.00409450
add esp, 8
mov ebx, eax
test eax, eax
je 0x402d46
mov eax, ebx
sub eax, edi
mov ecx, esi
mov edx, edi
push eax
call fcn.00402750
add esp, 4
xor esi, esi
test eax, eax
je 0x402d10
cmp dword [eax + 4], 4
jne 0x402d10
mov esi, dword [eax + 8]
jmp 0x402d10
xor eax, eax
test esi, esi
je 0x402daa
test edi, edi
je 0x402daa
push edi
call fcn.004093e0
add esp, 4
test eax, eax
je 0x402d8a
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 0x402d91
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc ebp
mov ecx, ebx
cmp eax, ebp
jne 0x402d70
jmp 0x402d93
mov ebx, 0x1505
jmp 0x402d93
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 0x402db2
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 0x402dc4
inc ebp
dec ecx
je 0x402da8
mov eax, ebp
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x402da8
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + esi*4], ebx
jne 0x402dc0
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.004093e0
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402dc0
push dword [esp + 4]
push dword [esp + 0x10]
push edi
call fcn.00409400
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x402dc0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi*4]
jmp 0x402daa
Function at 0x402ec0
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 0x402f2d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x402f2d
push esi
call fcn.004093e0
add esp, 4
test eax, eax
je 0x402f0a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x402f11
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x402ef0
jmp 0x402f13
mov ebx, 0x1505
jmp 0x402f13
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 0x402f35
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 0x402f44
inc ebp
dec edi
je 0x402f2b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x402f2b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x402f40
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.004093e0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402f40
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409400
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402f40
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x402f2d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x402f2d
Function at 0x403150
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0xffffffff
test ecx, ecx
je 0x40325c
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, edx
test edx, edx
je 0x403255
mov dword [esp], ecx
cmp dword [esp + 0x2c], 0
je 0x403255
push esi
call fcn.004093e0
add esp, 4
test eax, eax
je 0x4031aa
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4031b1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x403190
jmp 0x4031b3
mov ebp, 0x1505
jmp 0x4031b3
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 0x40325d
mov edi, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x40321a
call fcn.00403350
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 8]
jne 0x403255
push ecx
call fcn.004093e0
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 0x4032cf
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 0x403278
inc ebx
dec esi
je 0x4031cf
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x4031d4
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x403270
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx + eax*4]
push edi
call fcn.004093e0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x403270
push dword [esp + 4]
push edi
push dword [esp + 0x10]
call fcn.00409400
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x403270
mov eax, 0xffffffff
jmp 0x403255
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x4032e8
inc ebx
dec esi
je 0x403215
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x40321a
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x4032e0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
push eax
call fcn.004093e0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4032e0
push dword [esp + 4]
push dword [esp + 0x18]
push dword [esp + 0x10]
call fcn.00409400
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4032e0
jmp 0x40321a
Function at 0x403a80
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 0x403c36
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x403c2f
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
jmp 0x403b15
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 0x403c2f
xor ebx, ebx
cmp edx, 8
mov dword [esp], edx
mov dword [esp + 8], esi
jb 0x403b95
mov ebx, edx
and ebx, 0x1ff8
xor eax, eax
nop
nop
nop
mov edx, eax
movzx esi, byte [ebp + eax]
add esi, edi
movzx edi, byte [ebp + eax + 1]
movzx eax, byte [ebp + eax + 2]
add ecx, esi
add edi, esi
movzx esi, byte [ebp + edx + 3]
add ecx, edi
add edi, eax
mov eax, ecx
and eax, edi
xor ecx, edi
add edi, esi
movzx esi, byte [ebp + edx + 4]
add ecx, edi
add edi, esi
add ecx, edi
lea ecx, [ecx + eax*2]
movzx eax, byte [ebp + edx + 5]
add edi, eax
movzx eax, byte [ebp + edx + 6]
add ecx, edi
add edi, eax
movzx eax, byte [ebp + edx + 7]
add ecx, edi
add edi, eax
lea eax, [edx + 8]
add ecx, edi
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0x403b30
add ebp, eax
mov esi, dword [esp + 8]
mov eax, ebx
sub eax, edx
jae 0x403add
mov dword [esp + 0xc], eax
mov eax, edx
and eax, 3
mov dword [esp + 4], ebx
je 0x403be0
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 0x403bc0
mov eax, dword [esp + 4]
sub eax, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x403ad0
jmp 0x403bef
mov eax, ebx
mov edx, ebp
cmp dword [esp + 0xc], 0xfffffffc
ja 0x403ad0
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 0x403c00
jmp 0x403ad0
shl ecx, 0x10
or ecx, edi
jmp 0x403c3b
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403c50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x403c7e
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x403d1c
not eax
test bl, 1
jne 0x403c85
mov edx, ebx
cmp ebx, 1
jne 0x403cb6
jmp 0x403d1a
xor eax, eax
jmp 0x403d1c
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 + 0x445a14]
inc ecx
mov eax, edi
shr eax, 4
and edi, 0xf
shr esi, 4
xor esi, edi
xor eax, dword [esi*4 + 0x445a14]
cmp ebx, 1
je 0x403d1a
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 + 0x445a14]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x445a14]
movzx edi, byte [ecx + esi + 1]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x445a14]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x445a14]
add esi, 2
cmp edx, esi
jne 0x403cc0
not eax
pop esi
pop edi
pop ebx
ret