joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060b6
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.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4216d8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4216fc
movzx eax, word [esp]
jmp 0x4216fe
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x422b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x422c57
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00422938
mov esi, eax
mov eax, dword [0x4ac74c]
cmp byte [eax], 0
je 0x422bfd
mov eax, dword [0x4ac5a8]
call fcn.00407748
call fcn.004070bc
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x422b00]
call fcn.0040c664
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x422c70
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x422c39
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4ac578]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b0634]
call fcn.0040cbf8
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422c5e
lea eax, [ebp - 4]
mov edx, dword [0x422b00]
call fcn.0040c788
pop eax
jmp eax
Function at 0x4439a4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x4439b8
add esp, 0xfffffff0
call fcn.004082bc
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x43da40]
call fcn.0045e168
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x4429e0]
call fcn.0045f7c4
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x4429e0]
call fcn.0045f7c4
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x443a0d
call fcn.00408314
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4917c4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x491812
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004911bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49182b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x49bcbc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x49bd04
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0049bc50
mov eax, dword [ebp - 4]
call fcn.0040a494
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bd0b
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x49bf24
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x49bfbb
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x49bf6f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00409bd4
jmp 0x49bfa3
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x49bf86
lea eax, [ebp - 4]
call fcn.00409a3c
jmp 0x49bf99
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0049bddc
mov ebx, eax
test esi, esi
je 0x49bf99
dec esi
jmp 0x49bf76
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00409e2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bfc2
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax

Function at 0x49bfcc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041d3d8
add esp, 0x208
pop ebx
ret
Function at 0x49c02c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0041d3d8
add esp, 0x208
pop ebx
ret

Function at 0x49c180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x49c2b8
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x49c2a0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x49c1dd
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x49c2a0
cmp dword [ebp - 0x14], 0
jne 0x49c1f2
mov eax, dword [ebp - 0xc]
call fcn.00409a3c
mov bl, 1
jmp 0x49c2a0
cmp dword [ebp - 0x14], 0x70000000
jb 0x49c200
call fcn.00422c94
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00409bd4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00409fd0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x49c1a6
test eax, eax
jne 0x49c2a0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x49c24e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x49c2a0
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x49c256
dec esi
test esi, esi
je 0x49c265
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x49c255
cmp dword [ebp - 0x10], 7
jne 0x49c270
test esi, esi
je 0x49c270
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040a608
cmp dword [ebp - 0x10], 7
jne 0x49c293
test esi, esi
je 0x49c293
lea eax, [ebp - 4]
call fcn.00409fd0
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00409e2c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c2bf
lea eax, [ebp - 4]
call fcn.00409a3c
pop eax
jmp eax
Function at 0x403180
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x403260
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x403260
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4031ca
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x4031d1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4031b0
jmp 0x4031d3
mov esi, 0x1505
jmp 0x4031d3
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
lea edi, [ebx - 1]
mov edx, ebx
sub edx, 1
mov dword [esp + 8], edx
jb 0x403260
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x403204
inc edi
dec ebx
je 0x40325e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x40325e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x403200
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.00409b80
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x403200
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00409ba0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x403200
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x403260
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403270
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x403371
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x403371
push ebx
call fcn.00409b80
add esp, 4
test eax, eax
je 0x4032ca
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x4032d1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4032b0
jmp 0x4032d3
mov esi, 0x1505
jmp 0x4032d3
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x403371
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x403304
inc ebp
dec ebx
je 0x40336f
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x40336f
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x403300
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409b80
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x403300
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409ba0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x403300
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x40336f
cmp dword [eax + 4], 2
mov edi, 0
jne 0x403371
mov edi, dword [eax + 8]
jmp 0x403371
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4033a0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
fldz
fstp qword [esp + 0x10]
cmp dword [esp + 0x2c], 0
je 0x40340b
mov esi, dword [esp + 0x30]
test esi, esi
je 0x40340b
push esi
call fcn.00409b80
add esp, 4
test eax, eax
je 0x4033ea
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4033f1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x4033d0
jmp 0x4033f3
mov ebp, 0x1505
jmp 0x4033f3
mov ebp, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + 0x20]
lea ebx, [edi - 1]
mov eax, edi
sub eax, 1
mov dword [esp + 0xc], eax
jae 0x403417
fld qword [esp + 0x10]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x403434
inc ebx
dec edi
je 0x40340b
mov eax, ebx
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x40340b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x403430
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409b80
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x403430
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x38]
call fcn.00409ba0
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x403430
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x40340b
cmp dword [eax + 4], 3
jne 0x40340b
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x40340b

Function at 0x4034d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x4035d1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4035d1
push ebx
call fcn.00409b80
add esp, 4
test eax, eax
je 0x40352a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x403531
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x403510
jmp 0x403533
mov esi, 0x1505
jmp 0x403533
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x4035d1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x403564
inc ebp
dec ebx
je 0x4035cf
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4035cf
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x403560
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409b80
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x403560
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409ba0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x403560
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4035cf
cmp dword [eax + 4], 5
mov edi, 0
jne 0x4035d1
mov edi, dword [eax + 8]
jmp 0x4035d1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403600
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x403704
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x403704
push ebx
call fcn.00409b80
add esp, 4
test eax, eax
je 0x40365a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x403661
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x403640
jmp 0x403663
mov esi, 0x1505
jmp 0x403663
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x403704
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x403694
inc ebp
dec ebx
je 0x4036ff
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4036ff
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x403690
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409b80
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x403690
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409ba0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x403690
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4036ff
cmp dword [eax + 4], 6
mov edi, 0xffffffff
jne 0x403704
mov edi, dword [eax + 8]
jmp 0x403704
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403710
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push 0x2e
push ebp
call fcn.00409bf0
add esp, 8
test eax, eax
je 0x403774
mov esi, eax
jmp 0x403754
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.00409bf0
add esp, 8
mov esi, eax
test eax, eax
je 0x403774
mov eax, esi
sub eax, ebp
push eax
push ebp
push edi
call fcn.00403180
add esp, 0xc
xor edi, edi
test eax, eax
je 0x403740
cmp dword [eax + 4], 4
jne 0x403740
mov edi, dword [eax + 8]
jmp 0x403740
xor eax, eax
test edi, edi
je 0x4037db
test ebp, ebp
je 0x4037db
push ebp
call fcn.00409b80
add esp, 4
test eax, eax
je 0x4037bb
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebp + ebx]
test edx, edx
je 0x4037c2
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x4037a0
jmp 0x4037c4
mov esi, 0x1505
jmp 0x4037c4
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [edi + 0x20]
lea ebx, [ecx - 1]
mov eax, ecx
sub eax, 1
mov dword [esp + 0x14], eax
jae 0x4037e3
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, esi
mov dword [esp], edi
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
jmp 0x403804
inc ebx
dec ecx
je 0x4037d9
mov eax, ebx
and eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4037d9
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + edi*4], esi
jne 0x403800
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
mov dword [esp + 0xc], ecx
call fcn.00409b80
mov ecx, dword [esp + 0xc]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x403800
push dword [esp + 4]
push dword [esp + 0x10]
push ebp
call fcn.00409ba0
mov ecx, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x403800
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x4037db
Function at 0x403900
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 0x40396d
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40396d
push esi
call fcn.00409b80
add esp, 4
test eax, eax
je 0x40394a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x403951
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x403930
jmp 0x403953
mov ebx, 0x1505
jmp 0x403953
mov ebx, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
lea ebp, [edi - 1]
mov eax, edi
sub eax, 1
mov dword [esp + 0xc], eax
jae 0x403975
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
and ebp, ebx
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x403984
inc ebp
dec edi
je 0x40396b
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x40396b
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x403980
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409b80
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x403980
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409ba0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x403980
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x40396d
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x40396d

Function at 0x403a60
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403b89
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x403b7d
cmp ecx, 5
je 0x403b39
cmp ecx, 4
jne 0x403b89
mov esi, dword [eax + 8]
cmp dword [esi + 0x18], 0
je 0x403ac3
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 0xc]
push dword [eax + edi*4]
call dword [0x4468ac]
add esp, 4
mov eax, dword [esi + 0x10]
push dword [eax + edi*4]
call fcn.00403a60
add esp, 4
inc edi
cmp edi, dword [esi + 0x18]
jb 0x403aa0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
push dword [esi + 4]
call dword [0x4468ac]
add esp, 4
push dword [esi + 0xc]
call dword [0x4468ac]
add esp, 4
push dword [esi + 0x10]
call dword [0x4468ac]
add esp, 4
push dword [esi + 0x14]
call dword [0x4468ac]
add esp, 4
push dword [esi + 8]
call dword [0x4468ac]
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
jmp 0x403b7a
mov esi, dword [eax + 8]
cmp dword [esi + 8], 0
je 0x403b6e
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 4]
push dword [eax + edi*4]
call fcn.00403a60
add esp, 4
mov eax, edi
and eax, 1
xor edi, 1
lea edi, [edi + eax*2]
cmp edi, dword [esi + 8]
jb 0x403b50
push dword [esi + 4]
call dword [0x4468ac]
add esp, 4
push esi
jmp 0x403b80
push dword [eax + 8]
call dword [0x4468ac]
add esp, 4
pop esi
pop edi
jmp dword [0x4468ac]