joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4671c4
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x467200
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x46723d
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
test dword [ebp + 8], eax
je 0x467226
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x4671f8
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x467274
or eax, 0xffffffff
jmp 0x4671f8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x46724b
cmp eax, 0xffffffff
je 0x46724b
push 1
mov edx, esi
mov ecx, eax
call fcn.0046708e
pop ecx
jmp 0x4671f6
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x4b97c0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4671f4
test eax, eax
je 0x4671f4
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.0046708e
pop ecx
mov ecx, esi
call fcn.0046705d
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4671f6

Function at 0x467292
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x4672cd
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x467308
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
test al, 1
je 0x4672f2
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x4672c5
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x46733f
or eax, 0xffffffff
jmp 0x4672c5
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x467316
cmp eax, 0xffffffff
je 0x467316
push 1
mov edx, esi
mov ecx, eax
call fcn.0046708e
pop ecx
jmp 0x4672c3
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push bind
push 0x4b97c0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4672c1
test eax, eax
je 0x4672c1
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.0046708e
pop ecx
mov ecx, esi
call fcn.0046705d
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4672c3
Function at 0x4692c7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00468fd2
jb 0x46937f
bound ebp, qword [esi + 0x50c0458d]
call fcn.00468fe2
push eax
push esi
push dword [ebp + 8]
call fcn.00468f97
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00468fd2
js 0x46938c
hlt
push eax
push esi
push dword [ebp + 8]
call fcn.00468f97
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00468fe2
push eax
push esi
push dword [ebp + 8]
call fcn.00468f97
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00468fe2
push eax
push esi
push dword [ebp + 8]
call fcn.00468f97
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00468fd2
outsb dx, byte [esi]
mov ebx, 0x7c9d888c
invalid
Function at 0x469ec5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00468fb0
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
stosb byte es:[edi], al
cld
invalid
call dword [esi + eax*8]
test dword [ebx + 0x55fffffc], ebp
lea eax, [ebp - 0x36c]
push eax
call fcn.00468fe2
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00468f97
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.00468fd2
shr dword [eax], 0x95
push ebx
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.00468fd2
or byte [eax + 0x76], dh
pop edi
and byte [ebp - 0x20], 0
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.00468fe2
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00468f97
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
push eax
push 0x104
call dword [ebp - 0x370]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
jne 0x46a07e
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x550]
movsx eax, byte [ebp + eax - 0x655]
cmp eax, 0x5c
jne 0x46a09e
Function at 0x40aa23
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x412ba8
cmp edx, dword [eax]
je 0x40aa45
add eax, 8
inc ecx
cmp eax, 0x412c38
jl 0x40aa36
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x412ba8]
jne 0x40ab73
mov eax, dword [0x413a38]
cmp eax, 1
je 0x40ab4d
test eax, eax
jne 0x40aa76
cmp dword [0x4107c4], 1
je 0x40ab4d
cmp edx, 0xfc
je 0x40ab73
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aaad
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405130
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004050b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40aaf0
lea eax, [ebp - 0x1a4]
push eax
call fcn.004050b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e674
push edi
call fcn.00405d00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405130
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405140
lea eax, [ebp - 0xa0]
push 0x40e654
push eax
call fcn.00405140
push dword [esi + 0x412bac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405140
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c4ab
add esp, 0x2c
pop edi
jmp 0x40ab73
lea eax, [ebp + 8]
lea esi, [esi + 0x412bac]
push 0
push eax
push dword [esi]
call fcn.004050b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x1002195
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xf0
push 4
call fcn.010012b0
test eax, eax
pop ecx
je 0x10021b6
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_CLASS_DESCRIPTOR::constructor_void_]
jmp 0x10021b8
xor eax, eax
test eax, eax
mov dword [0x1004004], eax
je 0x10021c9
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_CLASS_DESCRIPTOR::Initialize_void_]
lea ecx, [ebp - 0x78]
call fcn.010012ff
lea ecx, [ebp - 0x78]
call fcn.01001cd6
test al, al
je 0x10021ee
lea ecx, [ebp - 0x78]
call fcn.0100133e
test al, al
je 0x10021ee
push dword [ebp + 0x10]
jmp 0x10021f0
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x405d43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x405d52
pop dword [ebp - 0x44]
mov eax, 0x405d52
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x56be7c9e
add dword [ebp - 0x54], 0xf793c8ad
mov dword [ebp - 0x50], 0x7039d3e9
add dword [ebp - 0x50], 0xc1f9785c
mov dword [ebp - 0x4c], 0x4985863c
sub dword [ebp - 0x4c], 0xfd39420e
mov dword [ebp - 0x48], 0x89baed18
sub dword [ebp - 0x48], 0x89baed18
lea eax, [ebp - 0x54]
push eax
mov eax, 0x911bf314
add eax, 0x6f247e30
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x88be808c
add dword [ebp - 0x54], 0xebb3e8ca
mov dword [ebp - 0x50], 0x3d6e3ddd
add dword [ebp - 0x50], 0x3fe2398
mov dword [ebp - 0x4c], 0x1e717c85
sub dword [ebp - 0x4c], 0xbb021019
mov dword [ebp - 0x48], 0xfa4a38e7
sub dword [ebp - 0x48], 0xfa4a38e7
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x353ad
push 0
call eax
mov ecx, 0x4121
xor ebx, ebx
add ebx, eax
mov edx, 0x5c5ff0b5
sub edx, 0x5c1c90b5
add edx, dword [ebp - 0x44]
mov edi, 0x24266924
sub edi, 0x1b54f65b
sub dword [ebp - 8], esi
mov esi, dword [edx]
xor dword [ebp - 0x38], 0x15d3f987
sub esi, edi
mov dword [ebx], esi
add dword [ebp - 0xc], edx
add ebx, 0x68b3e471
sub ebx, 0x68b3e46d
add edx, 0x1a3b8056
sub edx, 0x1a3b8052
loop 0x405e66
add eax, 0x72708884
sub eax, 0x726f912d
xor ebx, ebx
add ebx, eax
add eax, 0x4d964194
add eax, 0xb269be71
mov ecx, 0x2060d5e9
sub ecx, 0x2020d5e9
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x406120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422af4], 0
push esi
jne 0x406157
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 0x406131
mov dword [ecx*4 + 0x422af0], eax
inc ecx
cmp ecx, 0x100
jl 0x40612c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406188
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 + 0x422af0]
xor eax, esi
inc ecx
dec edx
jne 0x40616a
pop edi
not eax
pop esi
ret 0xc
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x403e59
pop dword [ebp - 0x50]
mov eax, 0x403e59
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x5f44e384
sub dword [ebp - 0x60], 0x10f29e39
mov dword [ebp - 0x5c], 0x831eb442
add dword [ebp - 0x5c], 0xaf149803
mov dword [ebp - 0x58], 0xe4195353
add dword [ebp - 0x58], 0x6832f0db
mov dword [ebp - 0x54], 0x2fa562c2
add dword [ebp - 0x54], 0xd05a9d3e
lea eax, [ebp - 0x60]
push eax
mov eax, 0xa85e2fe1
add eax, 0x57e24083
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xe28b57ac
add dword [ebp - 0x60], 0x91e711aa
mov dword [ebp - 0x5c], 0x5cb71789
add dword [ebp - 0x5c], 0xe4b549ec
mov dword [ebp - 0x58], 0xa00bb680
sub dword [ebp - 0x58], 0x3c9c4a14
mov dword [ebp - 0x54], 0x3913daf1
add dword [ebp - 0x54], 0xc6ec250f
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xbe304b8a
add eax, 0x4210251e
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x36ac5
push 0
call eax
mov ecx, 0xbfdf1a3
add ecx, 0xf4025611
mov edx, eax
mov edi, 0x410000
add edi, dword [ebp - 0x50]
mov esi, 0xb63b5111
add esi, 0xf9970a7e
mov dword [ebp - 0x34], 0x80637979
mov ebx, dword [edi]
mov dword [ebp - 0x44], 0xd598245d
xor ebx, esi
mov dword [ebp - 0x44], 0x1942f275
mov dword [edx], ebx
xor dword [ebp - 0x24], ecx
add edx, 4
add edi, 4
loop 0x403f70
add eax, 0xa1d2ae69
sub eax, 0xa1d19cc6
xor ebx, ebx
add ebx, eax
add eax, 0xc333299a
add eax, 0x3cccd66b
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10f16
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x18]
push esi
xor esi, esi
cmp eax, esi
jne 0x10f2a
push esi
push esi
jmp 0x10f35
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push esi
mov dword [ebp - 4], esi
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, esi
jl 0x10f60
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x10f5b
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
push 1
pop eax
jmp 0x10f62
xor eax, eax
pop esi
leave
ret 0x14

Function at 0x11272
Capabilities:
Create device object
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push 0x11208
mov dword [0x14794], ebx
call sub.ntoskrnl.exe_DbgPrint
cmp byte [section..data], 0x30
pop ecx
jne 0x11313
push edi
call fcn.00010681
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [0x14d10], eax
lea eax, [ebp - 0xc]
push 0x11214
push eax
call esi
mov edx, dword [ebp + 8]
push 0x1b
pop ecx
mov eax, 0x10cdc
lea edi, [edx + 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [edx + 0x70], 0x10cee
push eax
push ebx
push ebx
lea eax, [ebp - 0xc]
push 0x22
push eax
push 0x10
push edx
mov dword [edx + 0x34], 0x11356
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, ebx
pop edi
jl 0x1131d
lea eax, [ebp - 0x14]
push 0x11240
push eax
call esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [0x14d18], ebx
mov dword [0x14d24], ebx
xor eax, eax
jmp 0x1131d
call fcn.00010f6d
mov eax, 0xc0000001
pop esi
pop ebx
leave
ret 8
Function at 0x401e40
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x401f21
test edx, edx
je 0x401f21
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x401e8a
xor edi, edi
mov ecx, 0x1505
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x401e91
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x401e70
jmp 0x401e93
mov esi, 0x1505
jmp 0x401e93
mov esi, ecx
mov dword [esp + 4], edx
mov edx, dword [esp]
mov ebx, dword [edx + 0x20]
mov ebp, ebx
sub ebp, 1
jb 0x401f21
and ebp, esi
mov eax, ebx
or eax, 0xfffffffe
mov ecx, ebx
and ecx, 0xfffffffe
add eax, ecx
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
mov dword [esp + 0xc], eax
jmp 0x401ec4
inc ebp
dec ebx
je 0x401f1f
mov eax, ebp
and eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edi, dword [ecx + eax*4]
cmp edi, 0xffffffff
je 0x401f1f
mov eax, dword [edx + 8]
cmp dword [eax + edi*4], esi
jne 0x401ec0
mov eax, dword [edx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408780
mov edx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401ec0
push dword [esp + 0x28]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.004087b0
mov edx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401ec0
mov eax, dword [edx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401f21
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402380
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, 0xffffffff
test ecx, ecx
je 0x40247a
mov esi, edx
test edx, edx
je 0x40247a
mov dword [esp], ecx
cmp dword [esp + 0x2c], 0
je 0x40247a
push esi
call fcn.00408780
add esp, 4
test eax, eax
je 0x4023da
xor edi, edi
mov ecx, 0x1505
movzx edx, byte [esi + edi]
test edx, edx
je 0x4023e1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x4023c0
jmp 0x4023e3
mov ebp, 0x1505
jmp 0x4023e3
mov ebp, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp]
mov ebx, dword [ecx + 0x20]
mov esi, ebx
sub esi, 1
jae 0x402482
mov edi, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x40243c
call fcn.004025a0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 8]
jne 0x40247a
push ecx
call fcn.00408780
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp]
mov ebx, dword [ecx + 0x20]
mov esi, ebx
sub esi, 1
jae 0x402512
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 esi, ebp
mov eax, ebx
or eax, 0xfffffffe
mov edx, ebx
and edx, 0xfffffffe
add eax, edx
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x4024b8
inc esi
dec ebx
je 0x4023f8
mov edi, esi
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x4023fd
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x4024b0
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx + eax*4]
push edi
call fcn.00408780
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4024b0
push dword [esp + 4]
push edi
push dword [esp + 0x10]
call fcn.004087b0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4024b0
mov eax, 0xffffffff
jmp 0x40247a
and esi, ebp
mov eax, ebx
or eax, 0xfffffffe
mov edx, ebx
and edx, 0xfffffffe
add eax, edx
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x402538
inc esi
dec ebx
je 0x402437
mov edi, esi
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x40243c
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x402530
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
push eax
call fcn.00408780
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402530
push dword [esp + 4]
push dword [esp + 0x18]
push dword [esp + 0x10]
call fcn.004087b0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402530
jmp 0x40243c
Function at 0x402ca0
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 0x402e66
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
movzx edi, cx
shr ecx, 0x10
test ebx, ebx
je 0x402e5f
mov edx, 0x5e6ea9af
mov eax, ebx
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov esi, ebx
sub esi, eax
jmp 0x402d33
add ebp, dword [esp + 0xc]
mov esi, dword [esp + 4]
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
mov ebx, dword [esp + 0x10]
sub ebx, esi
mov esi, 0x15b0
je 0x402e5f
xor edx, edx
cmp esi, 8
mov dword [esp + 4], esi
jb 0x402dbb
and esi, 0x1ff8
mov dword [esp], esi
xor edx, edx
nop
nop
nop
mov eax, edx
movzx edx, byte [ebp + edx]
add edx, edi
add ecx, edx
movzx esi, byte [ebp + eax + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebp + eax + 2]
mov edi, esi
and edi, edx
xor esi, edx
lea edx, [esi + edi*2]
add ecx, edx
movzx esi, byte [ebp + eax + 3]
add esi, edx
mov edx, ecx
and edx, esi
xor ecx, esi
movzx edi, byte [ebp + eax + 4]
add edi, esi
movzx esi, byte [ebp + eax + 5]
add esi, edi
add edi, ecx
lea ecx, [edi + edx*2]
movzx edx, byte [ebp + eax + 6]
add edx, esi
add ecx, esi
mov esi, dword [esp + 4]
movzx edi, byte [ebp + eax + 7]
add edi, edx
add ecx, edx
add ecx, edi
lea edx, [eax + 8]
add eax, 0xf
cmp eax, esi
jb 0x402d50
add ebp, edx
mov edx, dword [esp]
mov eax, esi
sub eax, edx
mov dword [esp + 0x10], ebx
jbe 0x402cf8
mov dword [esp], edx
not edx
add edx, esi
mov dword [esp + 8], edx
and esi, 3
mov dword [esp + 0xc], eax
je 0x402e13
neg esi
xor edx, edx
mov ebx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [ebx]
inc ebx
add edi, eax
add ecx, edi
dec edx
cmp esi, edx
jne 0x402df0
mov eax, dword [esp]
sub eax, edx
mov edx, eax
mov eax, dword [esp + 8]
cmp eax, 3
jb 0x402cf0
jmp 0x402e25
mov ebx, ebp
mov eax, dword [esp + 8]
mov edx, dword [esp]
cmp eax, 3
jb 0x402cf0
mov eax, dword [esp + 4]
sub eax, edx
xor edx, edx
nop
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 0x402e30
jmp 0x402cf0
shl ecx, 0x10
or ecx, edi
jmp 0x402e6b
mov ecx, 1
mov eax, ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret