joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422740
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44432c
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4531c4]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4531c4]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x26c]
xor ebx, ebx
mov eax, 1
mov dword [esp + 0x30], ebx
test byte [0x4596d0], al
jne 0x4227c0
or dword [0x4596d0], eax
xor eax, eax
push 0x445b80
mov dword [0x4596cc], 7
mov dword [0x4596c8], ebx
mov word [0x4596b8], ax
call fcn.0042c189
add esp, 4
cmp dword [0x4596c8], ebx
je 0x4227e0
xor ecx, ecx
push 0xffffffffffffffff
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], cx
push ebx
jmp 0x42297d
push ebx
push 0x1a
lea edx, [esp + 0x58]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4227f6
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x54]
mov esi, 0x4596b4
call fcn.00401bb0
mov edi, esi
lea eax, [esp + 0x14]
call fcn.004224f0
push 0xffffffffffffffff
push ebx
mov ecx, esi
mov dword [esp + 0x26c], ebx
call fcn.00401a20
mov edi, 8
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x422853
mov eax, dword [esp + 0x18]
push eax
call fcn.0042a3f0
add esp, 4
push 0x4596b4
mov ebx, 0x44ad64
lea esi, [esp + 0x18]
call fcn.00405870
add esp, 4
push 0xffffffffffffffff
push 0
mov ecx, 0x4596b4
mov dword [esp + 0x26c], 1
call fcn.00401a20
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x4228a0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042a3f0
add esp, 4
push 0x4596b4
mov ebx, str.zjzr
lea esi, [esp + 0x18]
call fcn.00405870
add esp, 4
push 0xffffffffffffffff
push 0
mov ecx, 0x4596b4
mov dword [esp + 0x26c], 2
call fcn.00401a20
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], edi
jb 0x4228ed
mov edx, dword [esp + 0x18]
push edx
call fcn.0042a3f0
add esp, 4
push 0x4596b4
mov ebx, 0x44acdc
lea esi, [esp + 0x38]
call fcn.00405870
add esp, 4
push 0xffffffffffffffff
push 0
mov ecx, 0x4596b4
mov dword [esp + 0x26c], 3
call fcn.00401a20
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x4c], edi
jb 0x42293a
mov eax, dword [esp + 0x38]
push eax
call fcn.0042a3f0
add esp, 4
xor ecx, ecx
cmp dword [0x4596cc], edi
mov edi, dword [0x4596b8]
mov esi, 7
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], 0
mov word [esp + 0x38], cx
jae 0x422965
mov edi, 0x4596b8
call fcn.004229c0
xor edx, edx
push 0xffffffffffffffff
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], 0
mov word [ebp + 4], dx
push edx
mov eax, 0x4596b4
mov ecx, ebp
call fcn.00401a20
mov eax, ebp
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0042a3fb
add esp, 0x254
ret
Function at 0x4229c0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x443758
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4531c4]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
mov eax, dword [0x4531c4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor ebx, ebx
cmp edi, ebx
je 0x422a7d
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebp
xor eax, eax
mov word [esp + 0x30], ax
mov eax, edi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422a20
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x30]
call fcn.00401bb0
mov dword [esp + 0x54], ebx
push 0x44acdc
mov ebx, 1
xor eax, eax
mov edx, esi
call fcn.00401ad0
mov esi, eax
cmp esi, 0xffffffff
jne 0x422a84
push edi
call ebp
test eax, eax
jne 0x422b10
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x422b10
lea esi, [esp + 0x2c]
call fcn.00401980
xor al, al
jmp 0x422b3d
lea ecx, [esp + 0x2c]
lea ebp, [esi + 1]
push ecx
mov ecx, ebp
xor edx, edx
lea esi, [esp + 0x14]
call fcn.004056d0
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x422aac
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422ad6
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
jae 0x422ac5
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x422b5b
push 0x44acdc
mov ebx, 1
mov eax, ebp
lea edx, [esp + 0x30]
call fcn.00401ad0
cmp dword [esp + 0x28], 8
mov esi, eax
jb 0x422b01
mov edx, dword [esp + 0x14]
push edx
call fcn.0042a3f0
add esp, 4
cmp esi, 0xffffffff
jne 0x422a84
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebp
test eax, eax
jne 0x422b27
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x422a74
cmp dword [esp + 0x44], 8
jb 0x422b3b
mov eax, dword [esp + 0x30]
push eax
call fcn.0042a3f0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0042a3fb
add esp, 0x48
ret
cmp dword [esp + 0x28], esi
jb 0x422b6e
mov eax, dword [esp + 0x14]
push eax
call fcn.0042a3f0
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
cmp dword [esp + 0x44], esi
jb 0x422b98
mov edx, dword [esp + 0x30]
push edx
call fcn.0042a3f0
add esp, 4
xor al, al
jmp 0x422b3d
Function at 0x422c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444c61
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x4531c4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x38], 0
mov esi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
call fcn.00422ba0
mov dword [esp + 0x38], 0
push edi
mov ebx, str.LastUpgrade.ini
lea esi, [esp + 0x18]
mov dword [esp + 0x10], 1
call fcn.00405870
add esp, 4
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [esp + 0x40], 1
call fcn.00401a20
cmp dword [esp + 0x2c], 8
jb 0x422ca9
mov eax, dword [esp + 0x18]
push eax
call fcn.0042a3f0
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret

Function at 0x422cc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444c61
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x4531c4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x38], 0
mov esi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
call fcn.00422ba0
mov dword [esp + 0x38], 0
push edi
mov ebx, str.37LanderUpgrade.exe
lea esi, [esp + 0x18]
mov dword [esp + 0x10], 1
call fcn.00405870
add esp, 4
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [esp + 0x40], 1
call fcn.00401a20
cmp dword [esp + 0x2c], 8
jb 0x422d49
mov eax, dword [esp + 0x18]
push eax
call fcn.0042a3f0
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x422dd0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x444c0b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4531c4]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
mov eax, dword [0x4531c4]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov ebx, 3
mov dword [esp + 0x244], ebx
cmp dword [esp + 0x2b4], ebp
jne 0x422e66
lea esi, [esp + 0x14]
call fcn.00422d60
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x2a8]
mov byte [esp + 0x24c], 4
call fcn.00401a20
mov byte [esp + 0x244], bl
mov ebx, 8
cmp dword [esp + 0x2c], ebx
jb 0x422e6b
mov eax, dword [esp + 0x18]
push eax
call fcn.0042a3f0
add esp, 4
jmp 0x422e6b
mov ebx, 8
push 0x206
lea edx, [esp + 0x36]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x3c], cx
call fcn.0042dee0
mov esi, dword [esp + 0x2b0]
add esp, 0xc
cmp dword [esp + 0x2b8], ebx
jae 0x422e9c
lea esi, [esp + 0x2a4]
mov edx, dword [esp + 0x288]
cmp dword [esp + 0x29c], ebx
jae 0x422eb3
lea edx, [esp + 0x288]
mov ecx, dword [esp + 0x26c]
cmp dword [esp + 0x280], ebx
jae 0x422eca
lea ecx, [esp + 0x26c]
mov eax, dword [esp + 0x250]
cmp dword [esp + 0x264], ebx
jae 0x422ee1
lea eax, [esp + 0x250]
push esi
push 0x104
lea esi, [esp + 0x38]
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, 7
xor eax, eax
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], ebp
mov word [edi + 4], ax
mov eax, esi
lea edx, [eax + 2]
jmp 0x422f10
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x422f10
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x34]
mov esi, edi
call fcn.00401bb0
mov esi, 8
cmp dword [esp + 0x264], esi
jb 0x422f49
mov ecx, dword [esp + 0x250]
push ecx
call fcn.0042a3f0
add esp, 4
xor edx, edx
mov dword [esp + 0x264], ebx
mov dword [esp + 0x260], ebp
mov word [esp + 0x250], dx
cmp dword [esp + 0x280], esi
jb 0x422f7a
mov eax, dword [esp + 0x26c]
push eax
call fcn.0042a3f0
add esp, 4
xor ecx, ecx
mov dword [esp + 0x280], ebx
mov dword [esp + 0x27c], ebp
mov word [esp + 0x26c], cx
cmp dword [esp + 0x29c], esi
jb 0x422fab
mov edx, dword [esp + 0x288]
push edx
call fcn.0042a3f0
add esp, 4
xor eax, eax
mov dword [esp + 0x29c], ebx
mov dword [esp + 0x298], ebp
mov word [esp + 0x288], ax
cmp dword [esp + 0x2b8], esi
jb 0x422fdc
mov ecx, dword [esp + 0x2a4]
push ecx
call fcn.0042a3f0
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0042a3fb
add esp, 0x238
ret
Function at 0x423180
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x444b70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4531c4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x30], 2
cmp dword [esp + 0x88], 0
mov edi, 8
jne 0x4231ea
lea esi, [esp + 0xc]
call fcn.00422d60
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x38], 3
call fcn.00401a20
cmp dword [esp + 0x24], edi
jb 0x4231ea
mov eax, dword [esp + 0x10]
push eax
call fcn.0042a3f0
add esp, 4
mov edx, dword [esp + 0x78]
cmp dword [esp + 0x8c], edi
jae 0x4231fb
lea edx, [esp + 0x78]
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0x6c], edi
jae 0x423209
lea ecx, [esp + 0x58]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], edi
jae 0x423217
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x74]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp dword [esp + 0x50], edi
jb 0x42323a
mov eax, dword [esp + 0x3c]
push eax
call fcn.0042a3f0
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], cx
cmp dword [esp + 0x6c], edi
jb 0x423264
mov edx, dword [esp + 0x58]
push edx
call fcn.0042a3f0
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
cmp dword [esp + 0x8c], edi
jb 0x423291
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0042a3f0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x423b40
Capabilities:
Get system information on windows

Disassembly:
lea eax, [esp - 0x24]
sub esp, 0x24
test eax, eax
je 0x423b78
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x423b6e
lea ecx, [esp]
push ecx
call eax
jmp 0x423b78
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [esp]
cmp ax, 9
je 0x423b8d
cmp ax, 6
mov eax, 0x20
jne 0x423b92
mov eax, 0x40
add esp, 0x24
ret
Function at 0x428bcf
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x456044], 0
push esi
jne 0x428b42
call fcn.00428a68
test eax, eax
je 0x428b85
mov eax, dword [0x456044]
cmp eax, 1
jne 0x428b63
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x428b85
pop esi
ret
push eax
call dword [0x45604c]
test eax, eax
jne 0x428bcd
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x428b89
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x456044]
call dword [0x45604c]
mov edi, eax
test edi, edi
je 0x428bae
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x428bca
mov edi, esi
add esi, 0xff0
push edi
push dword [0x456044]
call dword [0x456048]
add edi, 0x10
cmp edi, esi
jb 0x428bb6
mov eax, edi
pop edi
pop esi
ret
jmp 0x428b2f

Function at 0x42a3fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4531c4]
jne 0x42a405
repz ret
jmp fcn.004307dc

Function at 0x43d3e5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00431ebf
and dword [ebp - 4], 0
cmp dword [0x456e80], 0
mov ebx, eax
jne 0x43d496
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43d547
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43d547
push eax
call fcn.00431e4d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x456e80], eax
call esi
push eax
call fcn.00431e4d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x456e84], eax
call esi
push eax
call fcn.00431e4d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x456e88], eax
call esi
push eax
call fcn.00431e4d
pop ecx
mov dword [0x456e90], eax
test eax, eax
je 0x43d496
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00431e4d
pop ecx
mov dword [0x456e8c], eax
mov eax, dword [0x456e8c]
cmp eax, ebx
je 0x43d4ee
cmp dword [0x456e90], ebx
je 0x43d4ee
push eax
call fcn.00431ec8
push dword [0x456e90]
mov esi, eax
call fcn.00431ec8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43d4ee
test edi, edi
je 0x43d4ee
call esi
test eax, eax
je 0x43d4e5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43d4e5
test byte [ebp - 0xc], 1
jne 0x43d4ee
or dword [ebp + 0x10], 0x200000
jmp 0x43d527
mov eax, dword [0x456e84]
cmp eax, ebx
je 0x43d527
push eax
call fcn.00431ec8
pop ecx
test eax, eax
je 0x43d527
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43d527
mov eax, dword [0x456e88]
cmp eax, ebx
je 0x43d527
push eax
call fcn.00431ec8
pop ecx
test eax, eax
je 0x43d527
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x456e80]
call fcn.00431ec8
pop ecx
test eax, eax
je 0x43d547
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43d549
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43b63d
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
and ebx, ebx
dec ebx
add eax, 0x5bf2b264
call fcn.0043b66f
or ebx, ebx
xor dword [ecx], esi
sub ebx, 0x829f8cf6
inc ecx
mov eax, 0x4f61214a
cmp ecx, edx
jne fcn.0043b63d
sub ebx, ebx
ret
Function at 0x404510
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 0x4045fc
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4045fc
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x40455a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404561
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404540
jmp 0x404563
mov esi, 0x1505
jmp 0x404563
mov esi, ecx
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x20]
lea edi, [ecx - 1]
mov dword [esp + 8], ecx
sub ecx, 1
mov dword [esp + 0xc], ecx
jb 0x4045fc
and edi, esi
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
xor ebp, ebp
jmp 0x404597
inc ebp
cmp dword [esp + 8], ebp
je 0x4045fa
mov eax, ebp
and eax, edi
mov ecx, ebp
xor ecx, edi
lea eax, [ecx + eax*2]
and eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov ebx, dword [ecx + eax*4]
cmp ebx, 0xffffffff
je 0x4045fa
mov eax, dword [edx + 8]
cmp dword [eax + ebx*4], esi
jne 0x404590
mov eax, dword [edx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp], eax
push eax
call fcn.0040ca30
mov edx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 0x2c]
jne 0x404590
push dword [esp + 0x2c]
push dword [esp + 4]
push dword [esp + 0x30]
call fcn.0040ca50
mov edx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404590
mov eax, dword [edx + 0x10]
mov eax, dword [eax + ebx*4]
jmp 0x4045fc
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4058a0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, 0xffffffff
cmp dword [esp + 0x2c], 0
je 0x405a8e
mov esi, dword [esp + 0x30]
test esi, esi
je 0x405a8e
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x405a8e
cmp dword [ecx], 0
jne 0x405a8e
push esi
call fcn.0040ca30
add esp, 4
test eax, eax
je 0x40590a
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0x405911
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x4058f0
jmp 0x405913
mov edi, 0x1505
jmp 0x405913
mov edi, ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x20]
lea esi, [edx - 1]
mov dword [esp + 0xc], edx
sub edx, 1
mov dword [esp + 0x10], edx
jae 0x4059e6
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x405973
call fcn.00405b70
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x30]
jne 0x405a8e
push esi
call fcn.0040ca30
add esp, 4
mov edx, esi
lea esi, [esp + 0x14]
mov ecx, dword [esp + 0x2c]
push esi
push edi
push eax
call fcn.00405aa0
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x30]
push esi
call fcn.0040ca30
add esp, 4
mov ebx, eax
inc eax
push eax
call dword [0x44f008]
add esp, 4
test eax, eax
je 0x405a89
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0040c950
add esp, 0xc
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov dword [eax + ebp*4], ecx
mov eax, dword [edx + 0x10]
mov esi, dword [esp + 0x34]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], ebp
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], edi
inc dword [edx + 0x18]
mov eax, dword [edx]
mov dword [esi], eax
xor eax, eax
jmp 0x405a8e
mov dword [esp], eax
and esi, edi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
xor ebx, ebx
mov dword [esp + 4], esi
jmp 0x405a0f
inc ebx
cmp dword [esp + 0xc], ebx
mov esi, dword [esp + 4]
je 0x40592e
mov eax, ebx
and eax, esi
mov edx, ebx
xor edx, esi
lea ebp, [edx + eax*2]
and ebp, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov esi, dword [eax + ebp*4]
cmp esi, 0xffffffff
je 0x405933
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], edi
jne 0x405a00
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + esi*4]
push ebp
call fcn.0040ca30
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x405a00
push dword [esp]
push ebp
push dword [esp + 0x38]
call fcn.0040ca50
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x405a00
mov eax, dword [ecx + 0x10]
push dword [eax + esi*4]
call fcn.00404940
mov edx, dword [esp + 0x30]
add esp, 4
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x34]
mov dword [eax + esi*4], ecx
mov esi, ecx
jmp 0x4059db
mov eax, 0xffffffff
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406bc0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x406d76
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test ebp, ebp
je 0x406d6f
mov edx, 0x5e6ea9af
mov eax, ebp
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov esi, ebp
sub esi, eax
jmp 0x406c60
mov esi, dword [esp + 4]
mov eax, esi
sub eax, dword [esp]
add ebx, eax
mov ebp, dword [esp + 0xc]
mov eax, edi
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov eax, ecx
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
mov eax, esi
not eax
and eax, ebp
not ebp
and ebp, esi
mov esi, 0x15b0
sub eax, ebp
mov ebp, eax
je 0x406d6f
xor eax, eax
cmp esi, 8
mov dword [esp + 4], esi
jb 0x406cdc
and esi, 0x1ff8
mov dword [esp], esi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
movzx edx, byte [ebx + edx]
add edx, edi
add ecx, edx
movzx esi, byte [ebx + eax + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 2]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 3]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 6]
add edx, esi
mov esi, dword [esp + 4]
add ecx, edx
movzx edi, byte [ebx + eax + 7]
add edi, edx
add ecx, edi
lea edx, [eax + 8]
add eax, 0xf
cmp eax, esi
jb 0x406c80
add ebx, edx
mov eax, dword [esp]
mov edx, eax
sub edx, esi
jae 0x406c1f
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov ebp, esi
and ebp, 3
mov dword [esp], eax
je 0x406d1f
neg ebp
xor eax, eax
mov edx, ebx
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec eax
cmp ebp, eax
jne 0x406d00
mov ebp, dword [esp]
sub ebp, eax
cmp dword [esp + 8], 0xfffffffc
ja 0x406c10
jmp 0x406d2e
mov ebp, eax
mov edx, ebx
cmp dword [esp + 8], 0xfffffffc
ja 0x406c10
mov eax, dword [esp + 4]
sub eax, ebp
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + ebp]
add esi, edi
add ecx, esi
movzx edi, byte [edx + ebp + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + ebp + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + ebp + 3]
add edi, esi
add ecx, edi
add ebp, 4
cmp eax, ebp
jne 0x406d40
jmp 0x406c10
shl ecx, 0x10
or ecx, edi
jmp 0x406d7b
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x406d90
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x406dec
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test edx, edx
je 0x406dee
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 + 0x44cc50]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
mov edi, dword [edi*4 + 0x44cc50]
mov ebx, eax
and ebx, edi
add eax, edi
add ebx, ebx
sub eax, ebx
inc esi
cmp edx, esi
jne 0x406db0
not eax
jmp 0x406dee
xor eax, eax
pop esi
pop edi
pop ebx
ret