joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403170
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ecx]
push edi
cmp al, 4
jne 0x403191
mov eax, str.ipv4
jmp 0x40319e
cmp al, 6
jne 0x403298
mov eax, str.ipv6
cmp dword [ecx + 4], 0x240
jae 0x4031ae
mov dword [ecx + 4], 0x240
push dword [ecx + 4]
push edx
push eax
lea eax, [ebp - 0x108]
push str.C:Windows_system32_netsh.exe_interface__s_set_interface_interface__s__mtu_u
push eax
call fcn.00401050
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
push str.QCMTU_SetMTU:_calling___s__n
call fcn.00404060
push 0x44
lea eax, [ebp - 0x168]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x11c], xmm0
call fcn.004050d0
add esp, 0x14
mov dword [ebp - 0x168], 0x44
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x168]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
test edi, edi
jne 0x40323b
push str.QCMTU_SetMTU:_CreateProcess_failure_n
call fcn.00404060
add esp, 4
push 0xffffffffffffffff
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10c]
push str.QCMTU_SetMTU:_exit_0x_X_n
call fcn.00404060
add esp, 8
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004040bd
mov esp, ebp
pop ebp
ret
push str.QCMTU_SetMTU:_error:_invalid_IP_version_n
call fcn.00404060
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
call fcn.004040bd
mov esp, ebp
pop ebp
ret
Function at 0x404060
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x408
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x404], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0xc]
push 0xffffffffffffffff
push 0x400
push eax
call fcn.00401000
push dword [eax + 4]
push dword [eax]
call fcn.00407ae7
add esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.004040bd
mov esp, ebp
pop ebp
ret

Function at 0x40d36c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040d00e

Function at 0x40e37f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
stosd dword es:[edi], eax
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0040e11a
sbb al, 4
cmp eax, 0xa8458d0a
push eax
call fcn.0040e12a
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0040e0df
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40e408
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040e11a
sbb ebx, dword [edx]
sti
sbb ecx, dword [ebp - 0x17af3fbb]
push eax
invalid
invalid
Function at 0x40e45f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.0040e12a
push eax
push esi
push dword [ebp + 8]
call fcn.0040e0df
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0040e11a
or dword [esi + 0x458d87c1], 0xe85d88e8
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0040e12a
push eax
push esi
push dword [ebp + 8]
call fcn.0040e0df
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040e12a
push eax
push esi
push dword [ebp + 8]
call fcn.0040e0df
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040e12a
push eax
push esi
push dword [ebp + 8]
call fcn.0040e0df
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040e11a
mov ebp, dword [edi + esi*2 - 0x4b]
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.0040e11a
fadd qword [ebx - 0x7a72ee4d]
jl 0x40e605
invalid
invalid
Function at 0x4017c0
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 0x4018ad
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4018ad
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40180a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x401811
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4017f0
jmp 0x401813
mov esi, 0x1505
jmp 0x401813
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x20]
lea edi, [edx - 1]
mov ebx, edx
sub ebx, 1
mov dword [esp + 8], ebx
jb 0x4018ad
and edi, esi
mov eax, dword [ecx + 4]
lea ebp, [eax + edi*4]
add ebp, 4
not edi
jmp 0x401847
add ebp, 4
dec edi
dec edx
je 0x4018ab
mov eax, dword [esp + 8]
or eax, edi
mov ebx, dword [ebp + eax*4]
cmp ebx, 0xffffffff
je 0x4018ab
mov eax, dword [ecx + 8]
cmp dword [eax + ebx*4], esi
jne 0x401840
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp + 4], eax
push eax
mov dword [esp + 4], edx
call fcn.004088d0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401840
push dword [esp + 0x28]
push dword [esp + 8]
push dword [esp + 0x2c]
call fcn.004088f0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x401840
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
jmp 0x4018ad
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4018c0
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 0x4019cc
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4019cc
push ebx
call fcn.004088d0
add esp, 4
test eax, eax
je 0x40191a
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 0x401921
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401900
jmp 0x401923
mov esi, 0x1505
jmp 0x401923
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x20]
lea ebp, [edx - 1]
mov eax, edx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x4019cc
and ebp, esi
mov eax, dword [ecx + 4]
lea edi, [eax + ebp*4]
add edi, 4
not ebp
jmp 0x401957
add edi, 4
dec ebp
dec edx
je 0x4019ca
mov eax, dword [esp + 0xc]
or eax, ebp
mov ebx, dword [edi + eax*4]
cmp ebx, 0xffffffff
je 0x4019ca
mov eax, dword [ecx + 8]
cmp dword [eax + ebx*4], esi
jne 0x401950
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp + 8], eax
push eax
mov dword [esp + 8], edx
call fcn.004088d0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401950
push dword [esp]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.004088f0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401950
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
test eax, eax
mov edi, 0
je 0x4019cc
cmp dword [eax + 4], 2
jne 0x4019cc
mov edi, dword [eax + 8]
jmp 0x4019cc
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401a00
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 0x401a68
mov esi, dword [esp + 0x30]
test esi, esi
je 0x401a68
push esi
call fcn.004088d0
add esp, 4
test eax, eax
je 0x401a4a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x401a51
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x401a30
jmp 0x401a53
mov ebp, 0x1505
jmp 0x401a53
mov ebp, ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x20]
lea ebx, [edx - 1]
mov esi, edx
sub esi, 1
mov dword [esp + 0xc], esi
jae 0x401a74
fld qword [esp + 0x10]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
and ebx, ebp
mov eax, dword [ecx + 4]
lea esi, [eax + ebx*4]
add esi, 4
not ebx
jmp 0x401a97
add esi, 4
dec ebx
dec edx
je 0x401a68
mov eax, dword [esp + 0xc]
or eax, ebx
mov edi, dword [esi + eax*4]
cmp edi, 0xffffffff
je 0x401a68
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], ebp
jne 0x401a90
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
mov dword [esp + 8], edx
call fcn.004088d0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp]
jne 0x401a90
push dword [esp]
push dword [esp + 0xc]
push dword [esp + 0x38]
call fcn.004088f0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x401a90
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x401a68
cmp dword [eax + 4], 3
jne 0x401a68
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x401a68
Function at 0x401b40
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 0x401c4c
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401c4c
push ebx
call fcn.004088d0
add esp, 4
test eax, eax
je 0x401b9a
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 0x401ba1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401b80
jmp 0x401ba3
mov esi, 0x1505
jmp 0x401ba3
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x20]
lea ebp, [edx - 1]
mov eax, edx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x401c4c
and ebp, esi
mov eax, dword [ecx + 4]
lea edi, [eax + ebp*4]
add edi, 4
not ebp
jmp 0x401bd7
add edi, 4
dec ebp
dec edx
je 0x401c4a
mov eax, dword [esp + 0xc]
or eax, ebp
mov ebx, dword [edi + eax*4]
cmp ebx, 0xffffffff
je 0x401c4a
mov eax, dword [ecx + 8]
cmp dword [eax + ebx*4], esi
jne 0x401bd0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp + 8], eax
push eax
mov dword [esp + 8], edx
call fcn.004088d0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401bd0
push dword [esp]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.004088f0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401bd0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
test eax, eax
mov edi, 0
je 0x401c4c
cmp dword [eax + 4], 5
jne 0x401c4c
mov edi, dword [eax + 8]
jmp 0x401c4c
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401c80
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 0x401d8f
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401d8f
push ebx
call fcn.004088d0
add esp, 4
test eax, eax
je 0x401cda
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x401ce1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401cc0
jmp 0x401ce3
mov esi, 0x1505
jmp 0x401ce3
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x20]
lea ebp, [edx - 1]
mov eax, edx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x401d8f
and ebp, esi
mov eax, dword [ecx + 4]
lea edi, [eax + ebp*4]
add edi, 4
not ebp
jmp 0x401d17
add edi, 4
dec ebp
dec edx
je 0x401d8a
mov eax, dword [esp + 0xc]
or eax, ebp
mov ebx, dword [edi + eax*4]
cmp ebx, 0xffffffff
je 0x401d8a
mov eax, dword [ecx + 8]
cmp dword [eax + ebx*4], esi
jne 0x401d10
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp + 8], eax
push eax
mov dword [esp + 8], edx
call fcn.004088d0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x401d10
push dword [esp]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.004088f0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401d10
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
test eax, eax
mov edi, 0xffffffff
je 0x401d8f
cmp dword [eax + 4], 6
jne 0x401d8f
mov edi, dword [eax + 8]
jmp 0x401d8f
mov edi, 0xffffffff
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401da0
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.00408940
add esp, 8
test eax, eax
je 0x401e0e
mov esi, eax
jmp 0x401de4
mov ebp, esi
inc ebp
push 0x2e
push ebp
call fcn.00408940
add esp, 8
mov esi, eax
test eax, eax
je 0x401e0e
mov eax, esi
xor eax, ebp
mov ecx, ebp
not ecx
and ecx, esi
add ecx, ecx
sub ecx, eax
push ecx
push ebp
push edi
call fcn.004017c0
add esp, 0xc
xor edi, edi
test eax, eax
je 0x401dd0
cmp dword [eax + 4], 4
jne 0x401dd0
mov edi, dword [eax + 8]
jmp 0x401dd0
xor eax, eax
test edi, edi
je 0x401e67
test ebp, ebp
je 0x401e67
push ebp
call fcn.004088d0
add esp, 4
test eax, eax
je 0x401e4b
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [ebp + ebx]
test edx, edx
je 0x401e52
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebx
mov ecx, esi
cmp eax, ebx
jne 0x401e30
jmp 0x401e54
mov esi, 0x1505
jmp 0x401e54
mov esi, ecx
mov ecx, dword [edi + 0x20]
lea edx, [ecx - 1]
mov ebx, ecx
sub ebx, 1
mov dword [esp + 0x14], ebx
jae 0x401e6f
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], eax
and edx, esi
mov dword [esp], edi
mov eax, dword [edi + 4]
lea edi, [eax + edx*4]
add edi, 4
not edx
jmp 0x401e97
add edi, 4
dec edx
dec ecx
je 0x401e65
mov eax, dword [esp + 0x14]
or eax, edx
mov ebx, dword [edi + eax*4]
cmp ebx, 0xffffffff
je 0x401e65
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + ebx*4], esi
jne 0x401e90
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x10], eax
push eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
call fcn.004088d0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x401e90
push dword [esp + 4]
push dword [esp + 0x14]
push ebp
call fcn.004088f0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x401e90
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ebx*4]
jmp 0x401e67
Function at 0x401fa0
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 0x40200a
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40200a
push esi
call fcn.004088d0
add esp, 4
test eax, eax
je 0x401fea
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x401ff1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x401fd0
jmp 0x401ff3
mov ebx, 0x1505
jmp 0x401ff3
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x20]
lea ebp, [edx - 1]
mov esi, edx
sub esi, 1
mov dword [esp + 0xc], esi
jae 0x402012
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
and ebp, ebx
mov eax, dword [ecx + 4]
lea esi, [eax + ebp*4]
add esi, 4
not ebp
jmp 0x402037
add esi, 4
dec ebp
dec edx
je 0x402008
mov eax, dword [esp + 0xc]
or eax, ebp
mov edi, dword [esi + eax*4]
cmp edi, 0xffffffff
je 0x402008
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], ebx
jne 0x402030
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
mov dword [esp + 8], edx
call fcn.004088d0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402030
push dword [esp]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.004088f0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402030
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + edi*4]
test ecx, ecx
mov eax, 0
je 0x40200a
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x40200a
Function at 0x402be0
Capabilities:
Compute adler32 checksum
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x402d96
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x402d8f
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, esi
sub edx, eax
jmp 0x402c75
mov eax, dword [esp]
sub eax, dword [esp + 4]
add ebp, eax
mov esi, dword [esp + 8]
mov eax, ecx
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, edi
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub ecx, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
sub esi, dword [esp]
mov edx, 0x15b0
je 0x402d8f
xor ebx, ebx
cmp edx, 8
mov dword [esp], edx
mov dword [esp + 8], esi
jb 0x402cf5
mov ebx, edx
and ebx, 0x1ff8
xor eax, eax
nop
nop
nop
mov edx, eax
movzx eax, byte [ebp + eax]
add eax, edi
add ecx, eax
movzx esi, byte [ebp + edx + 1]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 2]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 3]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 4]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 5]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 6]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 7]
mov edi, eax
and edi, esi
xor eax, esi
lea edi, [eax + edi*2]
add ecx, edi
lea eax, [edx + 8]
add edx, 0xf
cmp edx, dword [esp]
mov edx, dword [esp]
jb 0x402c90
add ebp, eax
mov esi, dword [esp + 8]
mov eax, ebx
sub eax, edx
jae 0x402c3d
mov dword [esp + 0xc], eax
mov eax, edx
and eax, 3
mov dword [esp + 4], ebx
je 0x402d40
neg eax
xor ebx, ebx
mov edx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec ebx
cmp eax, ebx
jne 0x402d20
mov eax, dword [esp + 4]
sub eax, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402c30
jmp 0x402d4f
mov eax, ebx
mov edx, ebp
cmp dword [esp + 0xc], 0xfffffffc
ja 0x402c30
mov ebx, dword [esp]
sub ebx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + eax]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + eax + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 3]
add edi, esi
add ecx, edi
add eax, 4
cmp ebx, eax
jne 0x402d60
jmp 0x402c30
shl ecx, 0x10
or ecx, edi
jmp 0x402d9b
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x402e20
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x402e22
not eax
xor esi, esi
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 4
mov ebp, eax
not ebp
or ebp, 0xf
add eax, ebp
inc eax
mov ebp, edi
and ebp, 0xf
xor ebp, eax
xor ebx, dword [ebp*4 + 0x43f80c]
mov eax, ebx
shr eax, 4
mov ebp, ebx
and ebp, 0xf
shr edi, 4
and ebx, edi
add edi, ebp
add ebx, ebx
sub edi, ebx
mov edi, dword [edi*4 + 0x43f80c]
mov ebx, eax
and ebx, edi
add eax, edi
add ebx, ebx
sub eax, ebx
inc esi
cmp edx, esi
jne 0x402dd0
not eax
jmp 0x402e22
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408ee0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, dword [esp + 8]
mov dword [0x447da8], edx
mov eax, 0xfffffd92
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
mov edx, ecx
and edx, 0x93f8769a
mov esi, ecx
and esi, 0x6c078965
or ecx, 0x6c078965
imul ecx, esi
xor esi, 0x6c078965
imul esi, edx
add ecx, esi
lea edx, [eax + ecx]
add edx, 0x26f
mov dword [eax*4 + 0x448764], edx
test eax, eax
je 0x408f6f
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
mov edx, ecx
and edx, 0x93f8769a
mov esi, ecx
and esi, 0x6c078965
or ecx, 0x6c078965
imul ecx, esi
xor esi, 0x6c078965
imul esi, edx
add ecx, esi
lea edx, [eax + ecx]
add edx, 0x270
mov dword [eax*4 + 0x448768], edx
add eax, 2
jmp 0x408ef0
mov dword [0x447da4], 0x270
pop esi
ret