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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40315d
mov ecx, dword [0x4785f8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x42e1c4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402fb3
cmp eax, edi
jl 0x403256
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call ebx
test eax, eax
je 0x403252
cmp dword [ebp - 4], esi
jne 0x403252
push dword [ebp + 8]
add dword [0x42e1c4], esi
call fcn.00402fb3
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403255
cmp dword [ebp + 0x10], edi
jne 0x403221
cmp dword [ebp + 8], edi
jle 0x40324d
mov esi, 0x42e1c8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4031d1
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x403252
cmp edi, dword [ebp - 4]
jne 0x403252
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40321d
cmp dword [ebp + 0x14], edi
jne 0x40321d
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42e1c4], eax
cmp dword [ebp + 8], 0
jg 0x4031c4
jmp 0x40324d
push 0xfffffffffffffffe
jmp 0x403254
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40322c
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x403252
mov eax, dword [ebp - 4]
add dword [0x42e1c4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403255
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x404d35
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7d4
push ebx
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x404d66
push str.CommandLine_Failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x404ddd
push esi
xor esi, esi
cmp dword [ebp - 4], ebx
jle 0x404dd5
xor eax, eax
push 0x7ce
push eax
mov word [ebp - 0x7d4], ax
lea eax, [ebp - 0x7d2]
push eax
call fcn.0040756b
add esp, 0xc
push dword [edi + esi*4]
lea eax, [ebp - 0x7d4]
push eax
call fcn.00405df9
test ebx, ebx
jne 0x404db7
push dword [ebp + 0xc]
lea eax, [ebp - 0x7d4]
push eax
call fcn.00404ced
pop ecx
pop ecx
test eax, eax
je 0x404dbc
inc ebx
jmp 0x404dbc
cmp ebx, 1
je 0x404dc4
inc esi
cmp esi, dword [ebp - 4]
jl 0x404d6e
jmp 0x404dd5
lea eax, [ebp - 0x7d4]
push eax
call fcn.00405d59
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x405a2d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x45e278
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x45e278], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405a68
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405c1f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405c3c
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405c3f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405c6e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4087d4]
mov dword [ebp - 8], eax
mov eax, dword [0x4087d8]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405cbe
test edi, edi
jne 0x405c7b
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405cb8

Function at 0x405cc2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405d3b
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405d24
cmp dword [ebp + 0x14], 1
je 0x405d29
cmp dword [ebp + 0x14], 2
je 0x405d29
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x406383
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x45e2c0
push esi
call fcn.00405df9
push esi
call fcn.00405b48
mov edi, eax
test edi, edi
jne 0x4063a4
xor eax, eax
jmp 0x406402
push edi
call fcn.00405e28
test byte [0x478608], 0x80
je 0x4063c1
movzx eax, word [edi]
test ax, ax
je 0x4063a0
cmp ax, 0x5c
je 0x4063a0
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4063e3
push esi
call fcn.00405ed9
test eax, eax
je 0x4063dd
test byte [eax], 0x10
je 0x406407
push esi
call fcn.00406356
push esi
call ebx
cmp eax, edi
jg 0x4063ce
push esi
call fcn.00406327
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406401
Function at 0x40669c
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4088bc
mov ebx, 0x4622c8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x4066ea
push 1
push ebp
push edi
call fcn.00405c3f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406861
cmp eax, esi
jg 0x406861
push esi
mov edi, 0x467920
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406861
cmp eax, esi
jg 0x406861
push ebp
push ebp
push esi
push 0x462ac8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406861
push ebp
push ebp
push esi
mov esi, 0x463118
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406861
push esi
push 0x462ac8
push str._s_s_r_n
push 0x463518
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4785bc]
push dword [eax + 0x128]
push edi
call fcn.0040640b
push 4
push 0xc0000000
push edi
call fcn.00405c3f
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406861
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406857
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406857
cmp edi, dword [esp + 0x10]
jne 0x406857
push str._Rename__r_n
push esi
call fcn.00405ba5
cmp eax, ebp
jne 0x4067ee
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40681f
push 0x4088b0
add eax, 0xa
push eax
call fcn.00405ba5
mov ebp, eax
test ebp, ebp
je 0x40681d
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406810
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40680a
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406821
xor ebp, ebp
mov eax, edi
push ebx
push 0x463518
add eax, esi
push eax
call fcn.00405bfb
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40689a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00406383
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x4068cf
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x478668], eax
jmp 0x406a75
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x4068ea
test eax, eax
je 0x406a20
test cl, 2
je 0x406a20
push edi
push ebx
mov esi, 0x463918
push esi
call fcn.00405df9
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40690d
push str..
push esi
call edi
jmp 0x406913
push ebx
call fcn.00406356
cmp word [ebx], 0
jne 0x406923
cmp word [0x463918], 0x5c
jne 0x40692b
push 0x4082d8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x406a0f
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.00405af4
xor edi, edi
cmp word [eax], di
je 0x406972
cmp word [ebp - 0x28], di
je 0x406972
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x40698d
movzx eax, word [esi + 2]
cmp ax, di
je 0x4069ec
cmp ax, 0x2e
jne 0x40698d
cmp word [esi + 4], di
je 0x4069ec
push esi
push dword [ebp - 4]
call fcn.00405df9
test byte [ebp - 0x25c], 0x10
je 0x4069b4
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4069ec
push dword [ebp + 0xc]
push ebx
call fcn.0040689a
jmp 0x4069ec
push ebx
call fcn.00405c1f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4069e4
test byte [ebp + 0xc], 4
je 0x4069dc
push ebx
push 0xfffffffffffffff1
call fcn.00404bbd
push edi
push ebx
call fcn.00406867
jmp 0x4069ec
inc dword [0x478668]
jmp 0x4069ec
push ebx
push 0xfffffffffffffff2
call fcn.00404bbd
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406952
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406a11
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x406a20
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406a74
cmp dword [ebp - 0xc], esi
je 0x406a64
push ebx
call fcn.00405ed9
test eax, eax
je 0x406a74
push ebx
call fcn.00406327
push ebx
call fcn.00405c1f
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406a6c
test byte [ebp + 0xc], 4
je 0x406a64
push ebx
push 0xfffffffffffffff1
call fcn.00404bbd
push esi
push ebx
call fcn.00406867
jmp 0x406a74
inc dword [0x478668]
jmp 0x406a74
push ebx
push 0xffffffffffffffe5
call fcn.00404bbd
pop esi
pop ebx
leave
ret 8
Function at 0x406a7a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x468124], 0
jne 0x406ab8
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a8e
mov dword [ecx*4 + 0x468120], eax
inc ecx
cmp ecx, 0x100
jl 0x406a89
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406ae5
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x468120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406ac6
not eax
pop ebp
ret 0xc
Function at 0x42e410
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c000]
push edi
jmp 0x42e42a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42e431
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42e420
mov eax, 1
add ebx, ebx
jne 0x42e443
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42e438
jne 0x42e454
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e438
xor ecx, ecx
sub eax, 3
jb 0x42e468
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42e4da
mov ebp, eax
add ebx, ebx
jne 0x42e473
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42e480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42e4a4
inc ecx
add ebx, ebx
jne 0x42e490
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42e485
jne 0x42e4a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e485
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42e4c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42e4b5
jmp 0x42e426
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42e4c4
add edi, ecx
jmp 0x42e426
pop esi
mov edi, esi
mov ecx, 0xa88
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42e4e2
cmp byte [edi], 0x12
jne 0x42e4e2
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 0x42e4e7
lea edi, [esi + 0x2c000]
mov eax, dword [edi]
or eax, eax
je 0x42e55f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x33130]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x33210]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42e514
mov ecx, edi
jns 0x42e543
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 + 0x33218]
or eax, eax
je 0x42e559
mov dword [ebx], eax
add ebx, 4
jmp 0x42e531
call dword [esi + 0x33214]
mov ebp, dword [esi + 0x3321c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42e593
sub esp, 0xffffff80
jmp 0x41c35f
Function at 0x401ee0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x401f4a
test edx, edx
je 0x401f4a
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x401f2f
xor eax, eax
mov esi, 0x1505
nop word cs:[eax + eax]
movzx ecx, byte [edx + eax]
test ecx, ecx
je 0x401f34
mov ebx, esi
shl ebx, 5
mov edi, ebx
and edi, esi
xor ebx, esi
lea esi, [ebx + edi*2]
add esi, ecx
inc eax
cmp ebp, eax
jne 0x401f10
jmp 0x401f34
mov esi, 0x1505
mov dword [esp + 8], edx
mov ecx, dword [esp]
mov ebp, dword [ecx + 0x20]
lea ebx, [ebp - 1]
mov edx, ebp
sub edx, 1
jae 0x401f52
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
jmp 0x401f74
inc ebx
dec ebp
je 0x401f48
mov eax, ebx
and eax, edx
mov edi, dword [esp + 0x10]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x401f48
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401f70
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00417a70
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401f70
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00417a90
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401f70
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401f4a
Function at 0x402440
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, 0xffffffff
test ecx, ecx
je 0x40254e
test edx, edx
je 0x40254e
mov dword [esp], edx
cmp dword [esp + 0x2c], 0
je 0x40254e
mov ebx, ecx
mov edi, dword [esp]
push edi
call fcn.00417a70
add esp, 4
mov dword [esp + 4], eax
test eax, eax
je 0x4024b1
xor eax, eax
mov ebp, 0x1505
nop word [eax + eax]
movzx ecx, byte [edi + eax]
test ecx, ecx
je 0x4024b6
mov edx, ebp
shl edx, 5
mov esi, edx
and esi, ebp
xor edx, ebp
lea ebp, [edx + esi*2]
add ebp, ecx
inc eax
cmp dword [esp + 4], eax
jne 0x402490
jmp 0x4024b6
mov ebp, 0x1505
mov edi, dword [ebx + 0x20]
lea esi, [edi - 1]
mov edx, edi
mov dword [esp + 0x14], 0
sub edx, 1
jae 0x402556
mov eax, 0xffffffff
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x1c]
mov edi, dword [esp + 0x2c]
jb 0x402518
mov ecx, ebx
call fcn.00402690
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
jne 0x40254e
mov esi, ebx
mov ebx, dword [esp]
push ebx
call fcn.00417a70
add esp, 4
mov ecx, esi
mov edx, ebx
mov ebx, esi
lea esi, [esp + 0x14]
push esi
push ebp
push eax
call fcn.004025e0
add esp, 0xc
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0xc]
mov esi, dword [esp]
mov dword [edx + ecx*4], esi
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x18]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
mov dword [ecx + edx*4], edi
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x18]
mov dword [ecx + edx*4], eax
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x18]
mov dword [eax + ecx*4], ebp
inc dword [ebx + 0x18]
mov eax, dword [ebx]
mov dword [edi], eax
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and esi, ebp
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 8], edx
jmp 0x402578
inc esi
dec edi
je 0x4024cf
mov eax, esi
and eax, edx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + eax*4]
cmp ecx, 0xffffffff
je 0x4024d4
mov eax, ebx
mov eax, dword [ebx + 8]
cmp dword [eax + ecx*4], ebp
jne 0x402570
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00417a70
mov edx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402570
push dword [esp + 4]
push dword [esp + 0x10]
push dword [esp + 8]
call fcn.00417a90
mov edx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x402570
mov eax, 0xffffffff
jmp 0x40254e
Function at 0x402d90
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 0x402f56
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
movzx edi, cx
shr ecx, 0x10
test ebx, ebx
je 0x402f4f
mov edx, 0x5e6ea9af
mov eax, ebx
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov esi, ebx
sub esi, eax
jmp 0x402e23
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 0x402f4f
xor edx, edx
cmp esi, 8
mov dword [esp + 4], esi
jb 0x402eab
and esi, 0x1ff8
mov dword [esp], esi
xor edx, edx
nop dword [eax]
mov eax, edx
movzx edx, byte [ebp + edx]
add edx, edi
add ecx, edx
movzx esi, byte [ebp + eax + 1]
add esi, edx
mov edx, ecx
and edx, esi
xor ecx, esi
lea ecx, [ecx + edx*2]
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
add ecx, esi
movzx edx, byte [ebp + eax + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebp + eax + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebp + eax + 6]
add edx, esi
mov esi, dword [esp + 4]
add ecx, edx
movzx edi, byte [ebp + eax + 7]
add edi, edx
add ecx, edi
lea edx, [eax + 8]
add eax, 0xf
cmp eax, esi
jb 0x402e40
add ebp, edx
mov edx, dword [esp]
mov eax, esi
sub eax, edx
mov dword [esp + 0x10], ebx
jbe 0x402de8
mov dword [esp], edx
not edx
add edx, esi
mov dword [esp + 8], edx
and esi, 3
mov dword [esp + 0xc], eax
je 0x402f03
neg esi
xor edx, edx
mov ebx, ebp
nop word cs:[eax + eax]
movzx eax, byte [ebx]
inc ebx
add edi, eax
add ecx, edi
dec edx
cmp esi, edx
jne 0x402ee0
mov eax, dword [esp]
sub eax, edx
mov edx, eax
mov eax, dword [esp + 8]
cmp eax, 3
jb 0x402de0
jmp 0x402f15
mov ebx, ebp
mov eax, dword [esp + 8]
mov edx, dword [esp]
cmp eax, 3
jb 0x402de0
mov eax, dword [esp + 4]
sub eax, edx
xor edx, edx
nop dword [eax]
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 0x402f20
jmp 0x402de0
shl ecx, 0x10
or ecx, edi
jmp 0x402f5b
mov ecx, 1
mov eax, ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4177b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, ecx
and eax, 3
je 0x4177da
cmp eax, 2
jne 0x4177e8
shr ecx, 1
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
jmp 0x4178fd
shr ecx, 2
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
jmp 0x4178fd
test ecx, ecx
je 0x4178fd
cmp ecx, 8
jb 0x41783e
mov eax, edi
sub eax, edx
cmp eax, 0x10
jb 0x417844
xor ebp, ebp
cmp ecx, 0x10
jae 0x417848
mov ebx, ecx
and ebx, 0xfffffff8
add edx, ebx
lea esi, [edi + ebx]
mov eax, ecx
mov ecx, dword [esp + 0x18]
and eax, 7
nop dword [eax + eax]
movsd xmm0, qword [ecx + ebp]
movsd qword [edi + ebp], xmm0
add ebp, 8
cmp ebx, ebp
jne 0x417820
cmp ebx, dword [esp + 0x1c]
mov edi, eax
jne 0x41787a
jmp 0x4178fd
mov esi, dword [esp + 0x14]
jmp 0x417878
mov esi, edi
jmp 0x417878
mov ebp, ecx
and ebp, 0xfffffff0
xor eax, eax
nop
movups xmm0, xmmword [edx + eax]
movups xmmword [edi + eax], xmm0
add eax, 0x10
cmp ebp, eax
jne 0x417850
cmp ebp, ecx
je 0x4178fd
test cl, 8
mov edi, dword [esp + 0x14]
jne 0x417805
and ecx, 0xf
lea esi, [edi + ebp]
add edx, ebp
mov edi, ecx
lea ebp, [edi - 1]
mov ebx, edi
and ebx, 7
je 0x4178a2
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, byte [edx + eax]
mov byte [esi + eax], cl
inc eax
cmp ebx, eax
jne 0x417890
add edx, eax
add esi, eax
sub edi, eax
cmp ebp, 7
jb 0x4178fd
xor ecx, ecx
nop dword [eax]
movzx eax, byte [edx + ecx]
mov byte [esi + ecx], al
movzx eax, byte [edx + ecx + 1]
mov byte [esi + ecx + 1], al
movzx eax, byte [edx + ecx + 2]
mov byte [esi + ecx + 2], al
movzx eax, byte [edx + ecx + 3]
mov byte [esi + ecx + 3], al
movzx eax, byte [edx + ecx + 4]
mov byte [esi + ecx + 4], al
movzx eax, byte [edx + ecx + 5]
mov byte [esi + ecx + 5], al
movzx eax, byte [edx + ecx + 6]
mov byte [esi + ecx + 6], al
movzx eax, byte [edx + ecx + 7]
mov byte [esi + ecx + 7], al
add ecx, 8
cmp edi, ecx
jne 0x4178b0
mov eax, dword [esp + 0x14]
pop esi
pop edi
pop ebx
pop ebp
ret