joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cd699
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x507c08
call fcn.004c00c8
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x5408d4], edi
jne 0x4cd6dd
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4cd6c8
mov dword [0x5408d4], ebx
jmp 0x4cd6dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4cd6dd
mov dword [0x5408d4], 2
mov eax, dword [0x5408d4]
cmp eax, ebx
jne 0x4cd6fd
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4cd7bf
cmp eax, 2
je 0x4cd706
cmp eax, edi
jne 0x4cd72e
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4cd719
mov eax, dword [0x5407f8]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x4cd735
xor eax, eax
jmp 0x4cd7bf
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004b9690
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4cd768
cmp esi, edi
jne 0x4cd77d
mov ecx, dword [ebp - 0x20]
call fcn.004c2e32
mov esi, eax
cmp esi, edi
je 0x4cd72e
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4cd7b0
cmp dword [ebp + 0x14], edi
jne 0x4cd79a
push edi
push edi
jmp 0x4cd7a0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4cd7bc
push esi
call fcn.004b9a0d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004c0103
ret
Function at 0x4cd7c8
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x507c18
call fcn.004c00c8
xor esi, esi
cmp dword [0x5408d8], esi
jne 0x4cd80c
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4cd7f7
mov dword [0x5408d8], edi
jmp 0x4cd80c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4cd80c
mov dword [0x5408d8], 2
mov eax, dword [0x5408d8]
cmp eax, 2
je 0x4cd8eb
cmp eax, esi
je 0x4cd8eb
cmp eax, 1
jne 0x4cd851
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4cd83a
mov eax, dword [0x5407f8]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4cd858
xor eax, eax
jmp 0x4cd8fd
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004b9690
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4cd88e
cmp edi, esi
jne 0x4cd8a7
lea ecx, [ebx + ebx]
call fcn.004c2e32
mov edi, eax
cmp edi, esi
je 0x4cd851
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4cd8da
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4cd8c4
push esi
push esi
jmp 0x4cd8ca
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4cd8e6
push edi
call fcn.004b9a0d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4cd8fd
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004c0103
ret
Function at 0x4ce041
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x4ce0a9
push 0x3d
push esi
call fcn.004bbf9f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x4ce0a9
cmp esi, eax
je 0x4ce0a9
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x54013c]
sete cl
cmp eax, dword [0x540140]
mov dword [ebp - 4], ecx
jne 0x4ce08f
mov edi, eax
call fcn.004cdfe2
mov dword [0x54013c], eax
cmp eax, ebx
jne 0x4ce0e8
cmp dword [ebp + 0xc], ebx
je 0x4ce0b1
cmp dword [0x540144], ebx
je 0x4ce0b1
call fcn.004cd403
test eax, eax
je 0x4ce0e8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4ce1ec
push 4
pop ecx
call fcn.004c2e32
cmp eax, ebx
mov dword [0x54013c], eax
je 0x4ce0a9
mov dword [eax], ebx
cmp dword [0x540144], ebx
jne 0x4ce0e8
push 4
pop ecx
call fcn.004c2e32
cmp eax, ebx
mov dword [0x540144], eax
je 0x4ce0a9
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x54013c]
sub edi, esi
push esi
call fcn.004cdf95
mov edi, eax
test edi, edi
pop ecx
jl 0x4ce142
cmp dword [ebx], 0
je 0x4ce142
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004b9a0d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4ce129
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x4ce176
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4ce120
mov edx, edi
shl edx, 2
mov ecx, ebx
call fcn.004c2ea8
test eax, eax
mov esi, dword [ebp + 8]
je 0x4ce176
jmp 0x4ce171
cmp dword [ebp - 4], 0
jne 0x4ce1e5
test edi, edi
jge 0x4ce152
neg edi
lea edx, [edi*4 + 8]
mov ecx, ebx
call fcn.004c2ea8
test eax, eax
je 0x4ce0a9
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x54013c], eax
cmp dword [ebp + 0xc], 0
je 0x4ce1d0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ce181
sub eax, edx
lea ecx, [eax + 2]
call fcn.004c2e32
mov edi, eax
test edi, edi
je 0x4ce1d0
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x4ce19c
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
mov byte [eax], dl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4ce1c9
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.004b9a0d
pop ecx
cmp dword [ebp - 4], 0
je 0x4ce1dd
push esi
call fcn.004b9a0d
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x4ce0ac
push esi
call fcn.004b9a0d
pop ecx
xor eax, eax
jmp 0x4ce0ac
Function at 0x4d2150
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004b9690
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4d221b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4d221b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4d21ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4d21d9
or bh, 8
and edi, 0x8000000
je 0x4d21f4
mov eax, dword [0x541d1c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4d221b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d25f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4d261b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4d263f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4d265a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4d8a29
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4d8a4b
cmp dword [edi + 0x3c], 0
jne 0x4d8a4b
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004ea557
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004d8a8a
pop edi
pop esi
pop ebx
ret 8

Function at 0x4da1c6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4da1fe
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ddb68
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ddb40
jmp 0x4da20a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4da20e
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x53fa68
mov ecx, edi
call fcn.004dd84a
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x4da261
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4da274
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004ddb68
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004ddb40
jmp 0x4da274
mov ecx, esi
call fcn.004dc934
test eax, eax
je 0x4da274
push edi
mov ecx, eax
call fcn.004da1c6
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x4dbfc8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4dc00a
call fcn.004ea557
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4dc00a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4dc001
xor eax, eax
jmp 0x4dc012
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004dc018
pop edi
pop esi
pop ebx
ret 4
Function at 0x4f2bd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x4f2c4e
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x41f573
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f5b2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f5b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f5b2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f5b2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f5b2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x431790
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4317bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4317bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x6cc87b8d
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x7e620456
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x404510
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 0x404600
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x404600
mov ebp, dword [esp + 0x28]
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 ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x20]
test edi, edi
je 0x404600
mov eax, edi
not eax
and eax, 1
mov ebx, edi
and ebx, 0xfffffffe
sub ebx, eax
and ebx, esi
lea eax, [edi - 1]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x4045a4
inc ebx
dec edi
je 0x4045fe
mov eax, ebx
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x4045fe
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x4045a0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040c930
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4045a0
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040c950
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4045a0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x404600
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404940
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404a5f
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x404a53
cmp ecx, 5
je 0x404a23
cmp ecx, 4
jne 0x404a5f
mov esi, dword [eax + 8]
cmp dword [esi + 0x18], 0
je 0x4049ad
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 0xc]
push dword [eax + edi*4]
call dword [0x44b004]
add esp, 4
mov eax, dword [esi + 0x10]
push dword [eax + edi*4]
call fcn.00404940
add esp, 4
mov eax, edi
and eax, 1
xor edi, 1
lea edi, [edi + eax*2]
cmp edi, dword [esi + 0x18]
jb 0x404980
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
push dword [esi + 4]
call dword [0x44b004]
add esp, 4
push dword [esi + 0xc]
call dword [0x44b004]
add esp, 4
push dword [esi + 0x10]
call dword [0x44b004]
add esp, 4
push dword [esi + 0x14]
call dword [0x44b004]
add esp, 4
push dword [esi + 8]
call dword [0x44b004]
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 0x404a50
mov esi, dword [eax + 8]
cmp dword [esi + 8], 0
je 0x404a44
xor edi, edi
nop
nop
mov eax, dword [esi + 4]
push dword [eax + edi*4]
call fcn.00404940
add esp, 4
inc edi
cmp edi, dword [esi + 8]
jb 0x404a30
push dword [esi + 4]
call dword [0x44b004]
add esp, 4
push esi
jmp 0x404a56
push dword [eax + 8]
call dword [0x44b004]
add esp, 4
pop esi
pop edi
jmp dword [0x44b004]
Function at 0x404b70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
xor eax, eax
cmp dword [esp + 0x18], 0
je 0x404d87
cmp dword [esp + 0x1c], 0
jle 0x404d2e
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [edx + eax]
mov dword [esp], ecx
jmp 0x404bc8
cmp esi, 0xc0
jne 0x404d85
and ebx, 0x1ff800
cmp ebx, 0xd800
mov ecx, dword [esp]
je 0x404d85
add edx, ebp
cmp edx, ecx
jae 0x404d2e
movzx ebx, byte [edx]
cmp ebx, 0xf4
ja 0x404d85
mov eax, ebx
and al, 0xfe
cmp al, 0xc0
je 0x404d85
mov eax, ebx
and eax, 0xffffffc0
cmp eax, 0x80
je 0x404d85
mov ebp, 1
test bl, bl
jns 0x404bbe
mov esi, ebx
and esi, 0xffffffe0
cmp esi, 0xc0
jne 0x404c2a
movzx edi, byte [edx + 1]
mov eax, edi
and eax, 0xffffffc0
cmp eax, 0x80
jne 0x404d85
and ebx, 0x1f
shl ebx, 6
mov ebp, 2
jmp 0x404c80
mov eax, ebx
and eax, 0xfffffff0
cmp eax, 0xe0
jne 0x404c84
movzx eax, byte [edx + 1]
mov ecx, eax
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x404d85
movzx edi, byte [edx + 2]
mov ecx, edi
xor ecx, 0xffffff3f
mov ebp, edi
or ebp, 0xc0
and ebp, ecx
cmp ebp, 0x80
jne 0x404d85
and ebx, 0xf
shl ebx, 0xc
and eax, 0x3f
shl eax, 6
or ebx, eax
mov ebp, 3
xor ecx, ecx
jmp 0x404cf1
mov eax, ebx
and eax, 0xfffffff8
cmp eax, 0xf0
jne 0x404d85
movzx ecx, byte [edx + 1]
mov eax, ecx
and eax, 0xffffffc0
cmp eax, 0x80
jne 0x404d85
movzx eax, byte [edx + 2]
mov edi, eax
and edi, 0xffffffc0
cmp edi, 0x80
jne 0x404d85
movzx edi, byte [edx + 3]
mov ebp, edi
and ebp, 0xffffffc0
cmp ebp, 0x80
jne 0x404d85
and ebx, 7
shl ebx, 0xc
and ecx, 0x3f
shl ecx, 6
or ecx, ebx
and eax, 0x3f
or eax, ecx
shl eax, 6
mov cl, 1
mov ebp, 4
mov ebx, eax
and edi, 0x3f
or edi, ebx
cmp edi, 0x80
jb 0x404d85
cmp edi, 0x7ff
jbe 0x404b9d
cmp edi, 0xffff
ja 0x404d20
test cl, cl
je 0x404ba9
jmp 0x404d85
cmp edi, 0x10ffff
jbe 0x404ba9
jmp 0x404d85
mov edi, dword [esp + 0x1c]
lea eax, [edi + 1]
push eax
call dword [0x44b008]
add esp, 4
test eax, eax
je 0x404d85
mov esi, eax
mov byte [eax + edi], 0
push edi
push dword [esp + 0x1c]
push eax
call fcn.0040c850
add esp, 0xc
push 0x10
call dword [0x44b008]
add esp, 4
test eax, eax
je 0x404d7b
mov dword [eax], 0
mov dword [eax + 4], 2
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
jmp 0x404d87
push esi
call dword [0x44b004]
add esp, 4
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404d90
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x404ef3
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404ef3
cmp dword [esp + 0x2c], 0
je 0x404ef3
push esi
call fcn.0040c930
add esp, 4
test eax, eax
je 0x404dfa
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404e01
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404de0
jmp 0x404e03
mov ebx, 0x1505
jmp 0x404e03
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
test edi, edi
je 0x404e95
mov dword [esp], eax
mov eax, edi
not eax
and eax, 1
mov esi, edi
and esi, 0xfffffffe
sub esi, eax
and esi, ebx
lea eax, [edi - 1]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404e44
inc esi
dec edi
je 0x404e95
mov ebp, esi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404e9a
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404e40
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040c930
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404e40
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040c950
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404e40
mov eax, 0xffffffff
jmp 0x404ef3
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jae 0x404edf
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x28]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + ebp*4], edx
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebx
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
jmp 0x404ef3
call fcn.00405b00
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
je 0x404efb
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
call fcn.0040c930
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x20]
test edi, edi
je 0x404f9e
mov eax, edi
not eax
and eax, 1
mov esi, edi
and esi, 0xfffffffe
sub esi, eax
and esi, ebx
lea eax, [edi - 1]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x404f44
inc esi
dec edi
je 0x404f9e
mov ebp, esi
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404ea2
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404f40
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.0040c930
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404f40
push dword [esp]
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.0040c950
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404f40
jmp 0x404ea2
mov ebp, 0xffffffff
jmp 0x404ea2