joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, edi
shr eax, 5
inc eax
mov edx, edi
mov dword [esp + 0xc], edi
mov ecx, edi
cmp edi, eax
jb 0x447681
mov esi, dword [ebp + 0xc]
movzx esi, byte [esi + ecx - 1]
mov ebx, edx
shl ebx, 5
add esi, ebx
mov ebx, edx
shr ebx, 2
add esi, ebx
sub ecx, eax
xor edx, esi
cmp ecx, eax
jae 0x44765f
mov dword [esp + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4476f4
cmp dword [eax + 0xc], edi
jne 0x4476ee
test edi, edi
je 0x4476a5
test byte [eax + 7], 0x10
jne 0x4476ee
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x4476c6
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x4476ea
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x4476b2
test ecx, ecx
je 0x44770d
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x4476ea
cmp ecx, 1
jbe 0x44770d
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x4476ea
cmp ecx, 2
jbe 0x44770d
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x44770d
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x447696
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push edi
push eax
push ecx
call fcn.00447570
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov cl, byte [eax + 5]
movzx edx, byte [edx + 0x14]
movzx ebx, cl
not edx
and ebx, 3
test bl, dl
je 0x447706
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x447740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
add edx, edx
mov eax, edx
shr eax, 5
push ebx
push esi
inc eax
push edi
mov esi, edx
mov dword [ebp - 4], edx
mov ecx, edx
cmp edx, eax
jb 0x447781
lea ebx, [ebx]
mov edi, dword [ebp + 0xc]
movzx edi, byte [edi + ecx - 1]
mov ebx, esi
shl ebx, 5
add edi, ebx
mov ebx, esi
shr ebx, 2
add edi, ebx
sub ecx, eax
xor esi, edi
cmp ecx, eax
jae 0x447760
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, esi
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4477f3
cmp dword [eax + 0xc], edx
jne 0x4477ed
test edx, edx
je 0x4477a5
test byte [eax + 7], 0x10
je 0x4477ed
mov edi, dword [ebp + 0xc]
mov ecx, edx
lea esi, [eax + 0x10]
cmp edx, 4
jb 0x4477c6
mov ebx, dword [edi]
cmp ebx, dword [esi]
jne 0x4477ea
sub ecx, 4
add esi, 4
add edi, 4
cmp ecx, 4
jae 0x4477b2
test ecx, ecx
je 0x447810
mov bl, byte [esi]
cmp bl, byte [edi]
jne 0x4477ea
cmp ecx, 1
jbe 0x447810
mov bl, byte [esi + 1]
cmp bl, byte [edi + 1]
jne 0x4477ea
cmp ecx, 2
jbe 0x447810
mov cl, byte [esi + 2]
cmp cl, byte [edi + 2]
je 0x447810
mov esi, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
jne 0x447796
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edx
push eax
push ecx
call fcn.00447570
add esp, 0x10
mov byte [eax + 7], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x447809
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x447f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x498fa0]
mov edi, esi
mov dword [esp + 0xc], esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x447f98
sub edi, ecx
mov eax, edi
shr eax, 5
inc eax
mov ebx, edi
mov dword [esp + 0x14], edi
mov ecx, edi
cmp edi, eax
jb 0x447fd6
movzx edx, byte [esi + ecx - 1]
mov esi, ebx
shl esi, 5
add edx, esi
mov esi, ebx
shr esi, 2
add edx, esi
mov esi, dword [esp + 0xc]
sub ecx, eax
xor ebx, edx
cmp ecx, eax
jae 0x447fb3
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
dec ecx
and ecx, ebx
mov edx, dword [edx + ecx*4]
test edx, edx
je 0x448062
jmp 0x447ff0
cmp dword [edx + 0xc], edi
jne 0x44805c
test edi, edi
je 0x447fff
test byte [edx + 7], 0x10
jne 0x44805c
mov eax, edi
lea ecx, [edx + 0x10]
cmp edi, 4
jb 0x448024
lea esp, [esp]
mov ebx, dword [esi]
cmp ebx, dword [ecx]
jne 0x448054
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x448010
test eax, eax
je 0x4480d3
mov bl, byte [ecx]
cmp bl, byte [esi]
jne 0x448054
cmp eax, 1
jbe 0x4480d3
mov bl, byte [ecx + 1]
cmp bl, byte [esi + 1]
jne 0x448054
cmp eax, 2
jbe 0x4480d3
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x4480d3
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov edx, dword [edx]
test edx, edx
jne 0x447ff0
mov edx, dword [ebp + 8]
push ebx
push edi
push esi
push edx
call fcn.00447570
add esp, 0x10
mov ecx, dword [esp + 0x10]
or byte [eax + 5], 0x20
lea edx, [ecx + 1]
inc ecx
mov byte [eax + 6], dl
mov dword [esp + 0x10], ecx
cmp ecx, 0x20
jl 0x447f84
mov ecx, dword [0x499078]
test ecx, ecx
je 0x4480cc
mov esi, 0x499078
mov bl, 0x2e
mov edi, edi
mov eax, ecx
add esi, 4
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4480a8
sub eax, edi
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.00447640
or byte [eax + 5], 0x20
mov byte [eax + 6], bl
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
jne 0x4480a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov al, byte [edx + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx ecx, al
and ecx, 3
not ebx
test bl, cl
je 0x4480f1
xor al, 3
mov byte [edx + 5], al
mov eax, edx
jmp 0x448071
Function at 0x45d750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4b09fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x41c], ecx
lea ecx, [ebp - 0x40c]
push edi
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], 0
mov edi, 0x400
jmp 0x45d7a6
mov eax, dword [ebp - 0x410]
lea edx, [ebp - 0x40c]
sub ecx, edx
mov dword [ebp - 0x424], ecx
je 0x45d810
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x48]
mov esi, eax
cmp edx, dword [ecx + 0x44]
jb 0x45d7c8
call fcn.00437940
mov eax, dword [ebp - 0x424]
mov ebx, dword [esi + 8]
push eax
lea ecx, [ebp - 0x40c]
push ecx
push esi
call fcn.00447640
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
inc dword [ebp - 0x414]
lea eax, [ebp - 0x418]
add esp, 0xc
lea edx, [ebp - 0x40c]
push eax
mov dword [ebp - 0x418], edx
call fcn.00424b30
add esp, 4
mov ebx, dword [ebp + 0xc]
cmp edi, ebx
jbe 0x45d819
mov edi, ebx
mov ecx, dword [ebp - 0x41c]
push ecx
push edi
lea edx, [ebp - 0x40c]
push 1
push edx
call fcn.00473f0b
mov ecx, dword [ebp - 0x418]
add ecx, eax
add esp, 0x10
sub ebx, eax
mov dword [ebp - 0x418], ecx
mov dword [ebp + 0xc], ebx
je 0x45d84f
cmp eax, edi
je 0x45d7a0
lea eax, [ebp - 0x40c]
sub ecx, eax
mov edi, ecx
je 0x45d8a9
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x48]
mov esi, eax
cmp edx, dword [ecx + 0x44]
jb 0x45d873
call fcn.00437940
mov ebx, dword [esi + 8]
push edi
lea eax, [ebp - 0x40c]
push eax
push esi
call fcn.00447640
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x40c]
add esp, 0xc
inc dword [ebp - 0x414]
mov dword [ebp - 0x418], ecx
mov eax, dword [ebp - 0x414]
mov esi, dword [ebp - 0x410]
call fcn.00421760
mov dword [ebp - 0x414], 1
test ebx, ebx
je 0x45d926
mov edi, dword [ebp - 0x420]
mov esi, dword [edi + 8]
mov eax, dword [esi - 8]
sub esi, 0x10
add eax, 0xfffffffd
cmp eax, 4
ja case.0x45d8df.6
jmp dword [eax*4 + 0x45d93c]
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
jmp 0x45d90f
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
jmp 0x45d90f
mov eax, dword [esi]
call fcn.00435e20
jmp 0x45d90f
call fcn.00437b70
test eax, eax
je 0x45d90d
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
jmp 0x45d90f
xor eax, eax
test eax, eax
jne 0x45d926
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e8b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0046e8b1
mov esp, ebp
pop ebp
ret
Function at 0x4615e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x40]
mov esi, dword [ecx + eax + 0x20]
dec edx
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x18], edx
test esi, esi
jne 0x461623
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x46161c
mov esi, dword [eax + 0x20]
jmp 0x461623
test bl, bl
jns 0x461623
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 0x24]
mov dword [ebp - 0x10], esi
mov esi, 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
cmp si, word [eax + 6]
jae 0x4616f0
lea ebx, [ecx + 0x4c]
lea esp, [esp]
mov esi, dword [edi + 0x40]
mov ecx, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ecx
mov dword [ebp - 4], ecx
test edi, edi
jne 0x461678
mov ecx, dword [ebx]
test cl, 0x40
je 0x461671
mov edi, dword [eax + 0x20]
jmp 0x461678
test cl, cl
jns 0x461678
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x4616a7
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x4616a7
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00461530
test eax, eax
je 0x46170e
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edx
mov edx, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
jmp 0x4616cf
mov eax, dword [ebx]
test eax, 0x2000000
je 0x4616be
test dword [ebp - 0x10], 0x2000000
je 0x4616be
or dword [ebp - 0x10], eax
jmp 0x4616c9
or eax, dword [ebp - 0x10]
and eax, 0xfdffffff
mov dword [ebp - 0x10], eax
sub edi, dword [ebp - 0x1c]
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
movzx esi, word [eax + 6]
inc ecx
add ebx, 0x28
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp ecx, esi
jl 0x461650
lea ecx, [ebp - 0x1c]
mov eax, edi
mov dword [ebp - 0xc], 1
call fcn.00461530
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e8b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b09fc]
jne 0x46e8bb
repz ret
jmp fcn.004781ec

Function at 0x471e56
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x471e7d
call fcn.0047271b
mov dword [eax], esi
call fcn.00472708
push 0x16
pop esi
mov dword [eax], esi
call fcn.004720f0
mov eax, esi
jmp 0x471ed2
test dword [ebp + 0xc], 0xfffffff9
jne 0x471e63
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x471eaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047272e
pop ecx
call fcn.00472708
mov eax, dword [eax]
jmp 0x471ed2
test al, 0x10
jne 0x471ed0
test al, 1
je 0x471ed0
test byte [ebp + 0xc], 2
je 0x471ed0
call fcn.0047271b
mov dword [eax], 5
call fcn.00472708
mov dword [eax], 0xd
jmp 0x471ea1
xor eax, eax
pop esi
pop ebp
ret

Function at 0x481e04
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x481e2b
call fcn.0047271b
mov dword [eax], esi
call fcn.00472708
push 0x16
pop esi
mov dword [eax], esi
call fcn.004720f0
mov eax, esi
jmp 0x481e80
test dword [ebp + 0xc], 0xfffffff9
jne 0x481e11
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x481e58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047272e
pop ecx
call fcn.00472708
mov eax, dword [eax]
jmp 0x481e80
test al, 0x10
jne 0x481e7e
test al, 1
je 0x481e7e
test byte [ebp + 0xc], 2
je 0x481e7e
call fcn.0047271b
mov dword [eax], 5
call fcn.00472708
mov dword [eax], 0xd
jmp 0x481e4f
xor eax, eax
pop esi
pop ebp
ret
Function at 0x487eb7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b09fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0047aaa3
and dword [ebp - 0x14], 0
cmp dword [0x4b32ec], 0
mov dword [ebp - 0x18], eax
jne 0x487f6a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x488012
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x497bb8
push ebx
call edi
test eax, eax
je 0x488012
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x497ba8
push ebx
mov dword [0x4b32ec], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4b32f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b32f4], eax
call edi
push eax
call esi
mov dword [0x4b32fc], eax
test eax, eax
je 0x487f6a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b32f8], eax
mov eax, dword [0x4b32f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x487fc3
cmp dword [0x4b32fc], ecx
je 0x487fc3
push eax
call esi
push dword [0x4b32fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x487fc3
test ebx, ebx
je 0x487fc3
call edi
test eax, eax
je 0x487fba
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x487fba
test byte [ebp - 8], 1
jne 0x487fc3
or dword [ebp + 0x10], 0x200000
jmp 0x487ff6
mov eax, dword [0x4b32f0]
cmp eax, dword [ebp - 0x18]
je 0x487ff6
push eax
call esi
test eax, eax
je 0x487ff6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x487ff6
mov eax, dword [0x4b32f4]
cmp eax, dword [ebp - 0x18]
je 0x487ff6
push eax
call esi
test eax, eax
je 0x487ff6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b32ec]
call esi
test eax, eax
je 0x488012
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x488014
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e8b1
leave
ret
Function at 0x405f06
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a54], 0
push esi
jne 0x405f3d
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f17
mov dword [ecx*4 + 0x422a50], eax
inc ecx
cmp ecx, 0x100
jl 0x405f12
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f6e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a50]
xor eax, esi
inc ecx
dec edx
jne 0x405f50
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4025f0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x4026d7
test edx, edx
je 0x4026d7
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x402644
xor edi, edi
mov ecx, 0x1505
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x40264b
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
mov ecx, edi
and ecx, 1
xor edi, 1
lea edi, [edi + ecx*2]
mov ecx, esi
cmp edi, ebp
jb 0x402620
jmp 0x40264d
mov esi, 0x1505
jmp 0x40264d
mov esi, ecx
mov dword [esp + 8], edx
mov ecx, dword [esp]
mov ebp, dword [ecx + 0x20]
lea ebx, [ebp - 1]
mov edx, ebp
sub edx, 1
jb 0x4026d7
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
jmp 0x402674
inc ebx
dec ebp
je 0x4026d5
mov eax, ebx
and eax, edx
mov edi, dword [esp + 0x10]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x4026d5
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402670
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408df0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x402670
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00408e10
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402670
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x4026d7
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402b30
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, 0xffffffff
test ecx, ecx
je 0x402c42
mov esi, edx
test edx, edx
je 0x402c42
mov dword [esp], ecx
cmp dword [esp + 0x2c], 0
je 0x402c42
push esi
call fcn.00408df0
add esp, 4
test eax, eax
je 0x402b94
xor edi, edi
mov ecx, 0x1505
movzx edx, byte [esi + edi]
test edx, edx
je 0x402b9b
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
mov ecx, edi
and ecx, 1
xor edi, 1
lea edi, [edi + ecx*2]
mov ecx, ebp
cmp edi, eax
jb 0x402b70
jmp 0x402b9d
mov ebp, 0x1505
jmp 0x402b9d
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 0x402c4a
mov edi, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x402c04
call fcn.00402d40
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 8]
jne 0x402c42
push ecx
call fcn.00408df0
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 0x402cbf
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 edx, dword [ecx + 0x18]
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 0x402c68
inc ebx
dec esi
je 0x402bb9
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x402bbe
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x402c60
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx + eax*4]
push edi
call fcn.00408df0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402c60
push dword [esp + 4]
push edi
push dword [esp + 0x10]
call fcn.00408e10
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402c60
mov eax, 0xffffffff
jmp 0x402c42
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x402cd8
inc ebx
dec esi
je 0x402bff
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x402c04
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x402cd0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
push eax
call fcn.00408df0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402cd0
push dword [esp + 4]
push dword [esp + 0x18]
push dword [esp + 0x10]
call fcn.00408e10
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402cd0
jmp 0x402c04
Function at 0x403440
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x4035d6
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x4035cf
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
mov eax, edx
jmp 0x4034d1
add ebp, dword [esp + 0x10]
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 + 0xc]
mov eax, 0x15b0
je 0x4035cf
xor edx, edx
cmp eax, 8
mov dword [esp + 8], esi
jb 0x403545
mov edx, eax
and edx, 0x1ff8
mov dword [esp], edx
mov edx, 7
nop
nop
nop
nop
mov ebx, eax
movzx eax, byte [ebp]
add eax, edi
add ecx, eax
movzx esi, byte [ebp + 1]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + 2]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + 3]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + 4]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + 5]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + 6]
add eax, esi
add ecx, eax
movzx edi, byte [ebp + 7]
add edi, eax
mov eax, ebx
add ecx, edi
add ebp, 8
add edx, 8
cmp edx, ebx
jb 0x4034f0
mov esi, dword [esp + 8]
mov edx, dword [esp]
mov ebx, eax
sub ebx, edx
mov dword [esp + 0xc], eax
jbe 0x403498
mov dword [esp], edx
not edx
add edx, eax
mov dword [esp + 4], edx
mov edx, eax
and edx, 3
mov dword [esp + 0x10], ebx
je 0x403584
neg edx
xor eax, eax
mov ebx, ebp
nop
movzx esi, byte [ebx]
inc ebx
add edi, esi
add ecx, edi
dec eax
cmp edx, eax
jne 0x403570
mov edx, dword [esp]
sub edx, eax
jmp 0x403589
mov ebx, ebp
mov edx, dword [esp]
mov eax, dword [esp + 4]
cmp eax, 3
jb 0x403490
mov eax, dword [esp + 0xc]
sub eax, edx
xor edx, edx
nop
nop
movzx esi, byte [ebx + edx]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 3]
add edi, esi
add ecx, edi
add edx, 4
cmp eax, edx
jne 0x4035a0
jmp 0x403490
shl ecx, 0x10
or ecx, edi
jmp 0x4035db
mov ecx, 1
mov eax, ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4035f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x403649
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test edx, edx
je 0x40364b
not eax
xor esi, esi
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 + 0x43fa18]
mov eax, ebx
not eax
or eax, 0xf
add eax, ebx
inc eax
shr ebx, 4
shr edi, 4
xor edi, eax
mov eax, ebx
xor eax, dword [edi*4 + 0x43fa18]
inc esi
cmp edx, esi
jne 0x403610
not eax
jmp 0x40364b
xor eax, eax
pop esi
pop edi
pop ebx
ret
Function at 0x409390
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00409420
sub esp, 0x100
mov esi, esp
call fcn.0043a020
test al, 1
jne 0x4093ac
jmp 0x4093ea
call fcn.00434f20
test al, 1
jne 0x4093b7
jmp 0x4093e3
call fcn.0040a6a0
test al, 1
jne 0x4093c2
jmp 0x4093e1
lea eax, str.system_or_character_via_spellings_glyphs_a_is_uses_that_in_their_modified_other_on_often_reflection_or_resemblance_on_it_leetspeak__used_similarity_internet._play_eleet_the_of_the_replacements_of_primarily_ways
sub esp, 8
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00409400
add esp, 8
call fcn.00410910
jmp 0x4093e1
jmp 0x4093e3
call fcn.0043a920
jmp 0x4093ea
xor eax, eax
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]