joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423880
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45db58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x46c2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x14]
xor ecx, ecx
mov edx, 2
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00445286
mov ebx, eax
mov dword [ebp - 0x20], edi
mov eax, edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x14]
inc eax
add eax, eax
push eax
push dword [esi + 0x10]
push ebx
call fcn.00446d70
add esp, 0x10
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
cmp dword [eax + 4], ecx
jbe 0x423a1d
mov esi, edi
mov eax, dword [eax]
mov ecx, dword [eax + ecx*4]
mov eax, esi
sub eax, edi
mov dword [ebp - 0x14], ecx
mov edx, dword [ecx + 4]
cmp edx, eax
jbe 0x42398d
lea ecx, [edi + edx]
mov eax, ecx
shr eax, 1
add eax, 0x10
add eax, ecx
and eax, 0xfffffff0
dec eax
cmp eax, edi
jb 0x423931
cmp eax, 0x3ffffffe
jbe 0x423936
mov eax, 0x3ffffffe
cmp eax, edi
jbe 0x423a3a
mov ecx, eax
sub ecx, edi
cmp ecx, edx
jb 0x423a3a
dec eax
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00445286
lea ecx, [edi*2 + 2]
mov esi, eax
push ecx
push ebx
push esi
call fcn.00446d70
push ebx
call fcn.004453be
mov ecx, dword [ebp - 0x14]
mov ebx, esi
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx + 4]
lea eax, [eax*2 + 2]
push eax
push dword [ecx]
lea eax, [ebx + edi*2]
push eax
call fcn.00446d70
mov eax, dword [ebp - 0x14]
add esp, 0xc
add edi, dword [eax + 4]
cmp byte [0x46ec01], 0
mov dword [ebp - 0x20], edi
jne 0x4239d9
mov edx, ebx
lea ecx, [ebp - 0x30]
call fcn.00409a80
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x30]
call fcn.004453be
add esp, 4
jmp 0x4239e2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp esi, edi
jne 0x4239f7
lea ecx, [ebp - 0x24]
call fcn.004092b0
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov eax, 0x5c
mov word [ebx + edi*2], ax
inc ecx
inc edi
mov dword [ebp - 0x18], ecx
xor eax, eax
mov dword [ebp - 0x20], edi
mov word [ebx + edi*2], ax
mov eax, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jb 0x423903
push ebx
call fcn.004453be
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x46ad28
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x13329ac
push eax
call fcn.0044a39d
int3
Function at 0x424160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45dc39
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x46c2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi], 0x4669dc
mov dword [edi + 8], 0
push 8
mov dword [edi + 0xc], 0
call fcn.00445286
xor ecx, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
add esp, 4
mov dword [edi + 0x14], 3
mov word [eax], cx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x44], ecx
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 2
call fcn.00408980
mov word [edi + 0x60], 0
mov dword [edi + 0x68], 1
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
push 0
push 0
push 1
mov byte [ebp - 4], 3
push 0
mov dword [edi + 0x78], 0xffffffff
mov dword [edi + 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x44], eax
test eax, eax
jne 0x424252
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
je 0x424252
push 0x46ad28
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x145ecb
push eax
call fcn.0044a39d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424e80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45df1d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46c2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi], 0x466a10
mov dword [esi + 4], 0x466a30
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
push 8
mov dword [esi + 0x10], 0
call fcn.00445286
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 3
mov word [eax], cx
mov byte [ebp - 4], 1
push 8
mov dword [esi + 0x1c], ecx
call fcn.00445286
xor ecx, ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 3
mov word [eax], cx
mov byte [ebp - 4], 2
push 8
mov dword [esi + 0x28], ecx
call fcn.00445286
xor ecx, ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 3
mov word [eax], cx
mov dword [esi + 0x4c], ecx
mov byte [ebp - 4], 4
push 8
mov dword [esi + 0x50], ecx
call fcn.00445286
xor ecx, ecx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0
add esp, 0x10
mov dword [esi + 0x58], 3
mov word [eax], cx
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 5
call fcn.00424160
mov byte [ebp - 4], 6
push 8
mov dword [esi + 0xec], 0
call fcn.00445286
add esp, 4
mov dword [esi + 0xec], eax
xor ecx, ecx
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 3
mov word [eax], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4259a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x46c2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp - 0x84], 0x420041
xor edx, edx
mov dword [ebp - 0x80], 0x440043
mov dword [ebp - 0x7c], 0x460045
mov dword [ebp - 0x78], 0x480047
mov dword [ebp - 0x74], 0x4a0049
mov dword [ebp - 0x70], 0x4c004b
mov dword [ebp - 0x6c], 0x4e004d
mov dword [ebp - 0x68], 0x50004f
mov dword [ebp - 0x64], 0x520051
mov dword [ebp - 0x60], 0x540053
mov dword [ebp - 0x5c], 0x560055
mov dword [ebp - 0x58], 0x580057
mov dword [ebp - 0x54], 0x5a0059
mov dword [ebp - 0x50], 0x620061
mov dword [ebp - 0x4c], 0x640063
mov dword [ebp - 0x48], 0x660065
mov dword [ebp - 0x44], 0x680067
mov dword [ebp - 0x40], 0x6a0069
mov dword [ebp - 0x3c], 0x6c006b
mov dword [ebp - 0x38], 0x6e006d
mov dword [ebp - 0x34], 0x70006f
mov dword [ebp - 0x30], 0x720071
mov dword [ebp - 0x2c], 0x740073
mov dword [ebp - 0x28], 0x760075
mov dword [ebp - 0x24], 0x780077
mov dword [ebp - 0x20], 0x7a0079
mov dword [ebp - 0x1c], 0x310030
mov dword [ebp - 0x18], 0x330032
mov dword [ebp - 0x14], 0x350034
mov dword [ebp - 0x10], 0x370036
mov dword [ebp - 0xc], 0x390038
mov dword [ebp - 8], 0x2f002b
test esi, esi
jle 0x425add
lea esp, [esp]
movzx ecx, word [edi + edx*2]
xor eax, eax
cmp word [ebp + eax*2 - 0x84], cx
je 0x425ad8
inc eax
cmp eax, 0x40
jb 0x425ab6
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444258
mov esp, ebp
pop ebp
ret
inc edx
cmp edx, esi
jl 0x425ab0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00444258
mov esp, ebp
pop ebp
ret
Function at 0x425bc0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45dff0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x46c2f0]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
push edi
mov eax, dword [0x46c2f0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ecx
lea esi, [ecx + 0x80]
mov dword [esp + 0x18], 0
push esi
push 0x465ba8
mov dword [esp + 0x34], esi
call dword [0x465ba8]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x425c4b
push 0x46ad28
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
call fcn.0044a39d
mov dword [esp + 0x18], esi
mov dword [esp + 0x78], 0
lea esi, [edi + 0x80]
push dword [esp + 0xc]
push dword [esp + 0x2c]
push esi
call fcn.00446d70
mov eax, dword [0x465bbc]
add esp, 0xc
mov dword [edi], eax
mov edx, esi
mov dword [edi + 8], 0
mov ecx, edi
mov dword [edi + 0xc], 0
push dword [esp + 0xc]
mov dword [edi + 0x20], 0x6a09e667
mov dword [edi + 0x24], 0xbb67ae85
mov dword [edi + 0x28], 0x3c6ef372
mov dword [edi + 0x2c], 0xa54ff53a
mov dword [edi + 0x30], 0x510e527f
mov dword [edi + 0x34], 0x9b05688c
mov dword [edi + 0x38], 0x1f83d9ab
mov dword [edi + 0x3c], 0x5be0cd19
call fcn.00408770
xorps xmm0, xmm0
mov byte [esp + 0x48], 0
lea edx, [esp + 0x48]
movq qword [esp + 0x59], xmm0
mov ecx, edi
mov dword [esp + 0x61], 0
movdqu xmmword [esp + 0x49], xmm0
mov word [esp + 0x65], 0
mov byte [esp + 0x67], 0
call fcn.00408820
push dword [esp + 0x10]
lea eax, [esp + 0x6c]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x28], 0
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], 0
call fcn.00441740
push dword [esp + 0x2c]
mov byte [esp + 0x7c], 1
push 0
push edi
call fcn.0044dc50
add esp, 0xc
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x30]
call fcn.00425b30
cmp dword [eax + 0x14], 0x10
jb 0x425d53
mov eax, dword [eax]
cmp dword [esp + 0x44], 0x10
movdqu xmm0, xmmword [eax]
mov ecx, dword [esp + 0x10]
movdqu xmmword [ecx], xmm0
movdqu xmm0, xmmword [eax + 0x10]
movdqu xmmword [ecx + 0x10], xmm0
movdqu xmm0, xmmword [eax + 0x20]
movdqu xmmword [ecx + 0x20], xmm0
movdqu xmm0, xmmword [eax + 0x30]
movdqu xmmword [ecx + 0x30], xmm0
jb 0x425d90
push dword [esp + 0x30]
call fcn.004453d0
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x425da1
push eax
call fcn.004453d0
add esp, 4
push edi
push 0x465ba8
mov dword [esp + 0x80], 0xffffffff
call dword [0x465bac]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00444258
mov esp, ebp
pop ebp
ret 8
Function at 0x425de0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x46c2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x214], ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov esi, edx
lea eax, [ebp - 0x20a]
push eax
call fcn.0044dc50
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x425ec8
push ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x425e7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x425e91
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add ecx, ebx
mov dword [esi], ecx
adc eax, 0
mov dword [esi + 4], eax
push dword [esi]
mov dword [ebp - 0x218], 0
call fcn.00445286
mov ecx, dword [ebp - 0x214]
add esp, 4
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x218]
push ecx
push dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00444258
mov esp, ebp
pop ebp
ret
Function at 0x4417f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e17a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x46c2f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0045967e
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x441896
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.00446590
push 0x46ae48
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0044a39d
push edi
push esi
call fcn.004585bc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444258
mov esp, ebp
pop ebp
ret 4

Function at 0x441e20
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e208
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x46c2f0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00440fe0
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00441d50
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x441e91
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.00446590
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x441eba
push dword [esp + 0xc]
call fcn.004453d0
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45253c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46c2f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00449cf8
mov dword [ebp - 0x14], eax
cmp dword [0x46e85c], esi
jne 0x45262f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4525bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x45270f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x45270f
push 0x464090
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45270f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x46e85c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x46e860], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x46e864], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46e86c], eax
test eax, eax
je 0x45262c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46e868], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x452654
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x452647
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x452669
push 4
pop eax
jmp 0x452711
cmp dword [ebp - 0x14], esi
je 0x452669
push dword [0x46e85c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x45264e
mov eax, dword [0x46e868]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4526c7
cmp dword [0x46e86c], edi
je 0x4526c7
push eax
call ebx
push dword [0x46e86c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4526c7
test eax, eax
je 0x4526c7
call ecx
test eax, eax
je 0x4526bc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4526bc
test byte [ebp - 8], 1
jne 0x4526c7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4526f7
mov eax, dword [0x46e860]
cmp eax, edi
je 0x4526f4
push eax
call ebx
test eax, eax
je 0x4526f4
call eax
mov esi, eax
test esi, esi
je 0x4526f4
mov eax, dword [0x46e864]
cmp eax, edi
je 0x4526f4
push eax
call ebx
test eax, eax
je 0x4526f4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x46e85c]
call ebx
test eax, eax
je 0x45270f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x452711
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00444258
mov esp, ebp
pop ebp
ret
Function at 0x402610
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x402711
test edx, edx
je 0x402711
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x402664
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x40266b
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 0x402640
jmp 0x40266d
mov esi, 0x1505
jmp 0x40266d
mov esi, ecx
mov edi, dword [esp]
mov ebp, dword [edi + 0x20]
test ebp, ebp
je 0x402711
mov dword [esp + 4], edx
mov eax, ebp
or eax, 0xfffffffe
mov ecx, ebp
and ecx, 0xfffffffe
lea ebx, [eax + ecx]
inc ebx
and ebx, esi
lea eax, [ebp - 1]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc], eax
mov edx, edi
jmp 0x4026b4
inc ebx
dec ebp
je 0x40270f
mov eax, ebx
and eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edi, dword [ecx + eax*4]
cmp edi, 0xffffffff
je 0x40270f
mov eax, dword [edx + 8]
cmp dword [eax + edi*4], esi
jne 0x4026b0
mov eax, dword [edx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408f70
mov edx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4026b0
push dword [esp + 0x28]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00408f90
mov edx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4026b0
mov eax, dword [edx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x402711
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4034c0
Capabilities:
Compute adler32 checksum
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x403676
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, ecx
not eax
or eax, 0xffff
lea edi, [ecx + eax]
inc edi
shr ecx, 0x10
test ebx, ebx
je 0x40366f
mov edx, 0x5e6ea9af
mov eax, ebx
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov esi, ebx
sub esi, eax
jmp 0x403553
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 0x40366f
xor edx, edx
cmp esi, 8
mov dword [esp + 4], esi
jb 0x4035d4
and esi, 0x1ff8
mov dword [esp], esi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
movzx esi, byte [ebp + edx]
add esi, edi
movzx edx, byte [ebp + edx + 1]
movzx edi, byte [ebp + eax + 2]
add ecx, esi
add edx, esi
movzx esi, byte [ebp + eax + 3]
add ecx, edx
add edx, edi
add ecx, edx
mov edi, edx
xor edi, esi
and edx, esi
mov esi, dword [esp + 4]
lea edx, [edi + edx*2]
movzx edi, byte [ebp + eax + 4]
add ecx, edx
add edi, edx
movzx edx, byte [ebp + eax + 5]
add ecx, edi
add edi, edx
movzx edx, byte [ebp + eax + 6]
add ecx, edi
add edi, edx
movzx edx, byte [ebp + eax + 7]
add ecx, edi
add edi, edx
add ecx, edi
lea edx, [eax + 8]
add eax, 0xf
cmp eax, esi
jb 0x403570
add ebp, edx
mov edx, dword [esp]
mov eax, esi
sub eax, edx
mov dword [esp + 0x10], ebx
jbe 0x403518
mov dword [esp], edx
not edx
add edx, esi
mov dword [esp + 8], edx
and esi, 3
mov dword [esp + 0xc], eax
je 0x403623
neg esi
xor edx, edx
mov ebx, ebp
nop
nop
nop
nop
movzx eax, byte [ebx]
inc ebx
add edi, eax
add ecx, edi
dec edx
cmp esi, edx
jne 0x403600
mov eax, dword [esp]
sub eax, edx
mov edx, eax
mov eax, dword [esp + 8]
cmp eax, 3
jb 0x403510
jmp 0x403635
mov ebx, ebp
mov eax, dword [esp + 8]
mov edx, dword [esp]
cmp eax, 3
jb 0x403510
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 0x403640
jmp 0x403510
shl ecx, 0x10
add ecx, edi
jmp 0x40367b
mov ecx, 1
mov eax, ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4036f7
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
not ecx
test edx, edx
je 0x4036ee
xor esi, esi
nop
nop
nop
nop
movzx edi, byte [eax + esi]
mov ebx, ecx
shr ebx, 4
and ecx, 0xf
mov ebp, edi
not ebp
or ebp, 0xf
add ebp, edi
inc ebp
xor ebp, ecx
xor ebx, dword [ebp*4 + 0x43da18]
mov ecx, ebx
shr ecx, 4
mov ebp, ebx
and ebp, 0xf
shr edi, 4
and ebx, edi
or edi, ebp
xor edi, ebx
xor ecx, dword [edi*4 + 0x43da18]
inc esi
cmp edx, esi
jne 0x4036b0
lea eax, [ecx + ecx]
not eax
add eax, ecx
jmp 0x4036f9
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x409490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20c
mov dword [esp], ecx
mov edi, dword [esp + 0x220]
movzx ecx, word [edi]
test cx, cx
je 0x4095ba
lea eax, [edi + 2]
xor ebx, ebx
jmp 0x4094cd
add ebx, esi
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0x4094f1
movzx ebp, cx
xor ecx, ecx
cmp ebp, 0x800
setb dl
mov esi, 1
cmp ebp, 0x80
jb 0x4094c0
mov cl, dl
xor ecx, 3
mov esi, ecx
jmp 0x4094c0
lea esi, [ebx + 1]
push esi
call fcn.00408d40
add esp, 4
mov ebp, eax
test ebx, ebx
jle 0x4095c8
add ebx, ebp
add esi, ebp
mov eax, ebp
mov dword [esp + 8], esi
jmp 0x409538
mov byte [eax], dl
mov esi, 1
add edi, 2
add eax, esi
cmp eax, ebx
mov esi, dword [esp + 8]
jae 0x4095ca
movzx edx, word [edi]
test dx, dx
je 0x4095ca
cmp dx, 0x7f
jbe 0x409520
mov ecx, eax
not ecx
add ecx, esi
movzx esi, dx
cmp ecx, 2
jb 0x409580
cmp esi, 0x7ff
ja 0x409580
mov ecx, edx
shr ecx, 6
add cl, 0xc0
mov byte [eax], cl
and dl, 0x3f
or dl, 0x80
mov byte [eax + 1], dl
mov esi, 2
jmp 0x409527
mov dword [esp + 4], esi
xor esi, esi
cmp ecx, 3
jb 0x409527
mov esi, dword [esp + 4]
mov ecx, esi
shr ecx, 0xc
or cl, 0xe0
mov byte [eax], cl
mov ecx, esi
shr ecx, 6
and cl, 0x3f
or cl, 0x80
mov byte [eax + 1], cl
and dl, 0x3f
or dl, 0x80
mov byte [eax + 2], dl
mov esi, 3
jmp 0x409527
push 1
call fcn.00408d40
add esp, 4
mov ebp, eax
jmp 0x4095ca
mov eax, ebp
mov edi, dword [esp + 0x228]
mov edx, dword [esp + 0x224]
mov byte [eax], 0
xor ecx, ecx
jmp 0x4095e7
mov ebx, eax
mov byte [esp + ecx + 0xc], bl
inc ecx
movzx eax, byte [ebp + ecx]
mov bl, 0x2f
cmp eax, 0x5c
je 0x4095e2
test eax, eax
jne 0x4095e0
mov byte [esp + ecx + 0xc], 0
lea eax, [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0xc]
push dword [ecx + 8]
add ecx, 0x10
push 0
push 0
push edi
push edx
push eax
push ecx
call fcn.00405930
add esp, 0x28
test eax, eax
setne al
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc