joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004df9
Capabilities:
Enumerate services

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x10004eeb
mov esi, eax
mov eax, esp
and dword [eax], 0
lea ebx, [esp + 4]
and dword [ebx], 0
sub esp, 0x28
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
movaps xmm0, xmmword [0x10007020]
and dword [esp + 0x24], 0
movups xmmword [esp + 4], xmm0
and dword [esp + 0x20], 0
mov dword [esp], esi
and dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
cmp eax, 0xea
jne 0x10004ebd
push dword [esp]
call sub.msvcrt.dll_malloc
pop ecx
test eax, eax
je 0x10004ebd
mov ebp, eax
push 0
push 0
push ebx
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push ebp
push 3
push 0x30
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
xor edi, edi
test eax, eax
je 0x10004eb6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [esp + 4]
mov ecx, ebp
sub edx, 1
jb 0x10004eb6
cmp dword [ecx + 0x24], eax
je 0x10004eac
add ecx, 0x2c
jmp 0x10004e9d
push dword [ecx]
call sub.msvcrt.dll__strdup
pop ecx
mov edi, eax
push ebp
call sub.msvcrt.dll_free
pop eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x10004eeb
push 0x10004dcd
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
mov dword [0x100088cc], eax
test eax, eax
jne 0x10004ef0
push edi
call sub.msvcrt.dll_free
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.100036d7
mov esi, 0x100088b0
push 0x1c
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [0x100088b0], 0x20
mov dword [0x100088b4], 4
mov dword [0x100088c4], 1
push esi
push dword [0x100088cc]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call fcn.100036d7
Function at 0x1000505a
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x190
mov ebx, edx
mov edi, ecx
mov ebp, 0xc000b0
push ebp
call sub.msvcrt.dll_malloc
pop ecx
mov esi, eax
push ebp
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
call sub.msvcrt.dll__strdup
pop ecx
mov dword [esi], eax
and dword [esi + 4], 0
push ebx
call sub.msvcrt.dll__strdup
pop ecx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1a4]
mov dword [esi + 0x10], eax
mov word [esi + 0x14], 0x35
mov ecx, edi
call fcn.100051bc
mov dword [esi + 0xc], eax
xorps xmm0, xmm0
movups xmmword [esi + 0x18], xmm0
and dword [esi + 0xc0009c], 0
and dword [esi + 0xc00098], 0
mov word [esi + 0xc000a0], 0x100
mov byte [esi + 0xc000a2], 0
mov dword [esi + 0xc00090], 8
mov dword [esi + 0xc000a4], 0x3e8
lea eax, [esi + 0x28]
mov edi, 0x400000
push edi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esi + 0x400028]
push edi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, esi
add eax, 0x800028
push edi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
cmp eax, 8
je 0x1000513e
and dword [esi + eax*8 + 0xc0004c], 0
mov dword [esi + eax*8 + 0xc00048], eax
inc eax
jmp 0x10005127
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 8
je 0x1000517c
push 8
call sub.msvcrt.dll_malloc
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
push 0
push 0
push eax
push 0x1000520d
push 0
push 0
call ebx
mov dword [esi + edi*4 + 0xc00028], eax
push 0xa
call ebp
inc edi
jmp 0x1000514c
mov eax, esp
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x100051b5
mov dword [esi + 0xc000a8], 1
mov dword [esi + 0xc000ac], eax
mov eax, esi
add esp, 0x190
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
call sub.msvcrt.dll_exit

Function at 0x10005967
Capabilities:
Terminate thread

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, ecx
mov edi, 0x30000a
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x300012
je 0x1000599e
push 0
push dword [esi + edi*4]
call ebx
mov byte [esi + 0xc000a0], 1
push 0x3e8
call ebp
inc edi
jmp 0x1000597e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edi, 0x10000a
cmp edi, 0x20000a
je 0x100059e0
mov eax, dword [esi + edi*4 - 0x400000]
test eax, eax
je 0x100059cb
push eax
call sub.msvcrt.dll_free
pop eax
and dword [esi + edi*4 - 0x400000], 0
mov eax, dword [esi + edi*4]
test eax, eax
je 0x100059dd
push eax
call sub.msvcrt.dll_free
pop eax
and dword [esi + edi*4], 0
inc edi
jmp 0x100059a9
mov eax, dword [esi + 4]
test eax, eax
je 0x100059f2
push eax
call sub.msvcrt.dll_free
pop eax
and dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x10005a02
push eax
call sub.msvcrt.dll_free
pop eax
and dword [esi], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x10005a14
push eax
call sub.msvcrt.dll_free
pop eax
and dword [esi + 8], 0
push esi
call sub.msvcrt.dll_free
pop eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10005a20
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [esp + 8], edx
mov edi, ecx
lea ebp, [ecx + 0xc000a8]
mov dword [esp + 4], 0
mov dword [esp], 0xfa
push 0xa
pop esi
xor ebx, ebx
test ebx, ebx
jne 0x10005ad1
xor ebx, ebx
test esi, esi
jle 0x10005ad1
cmp byte [edi + 0xc000a0], 0
jne 0x10005ad1
dec esi
push 0
lea ebx, [esp + 0x10]
push ebx
push ebp
push 0x18c8
push 5
push dword [esp + 0x1c]
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
je 0x10005a88
xor ebx, ebx
cmp byte [edi + 0xc000a0], 0
jne 0x10005a47
jmp 0x10005ab7
mov eax, ebx
mov eax, dword [eax]
test eax, eax
je 0x10005aa4
cmp word [eax + 8], 5
jne 0x10005a8a
push dword [eax + 0x18]
call sub.msvcrt.dll__strdup
pop ecx
mov ebx, eax
jmp 0x10005aa6
xor ebx, ebx
push 1
push dword [esp + 0x10]
call sub.DNSAPI.dll_DnsFree
test ebx, ebx
jne 0x10005a47
jmp 0x10005a7b
mov ebx, dword [esp]
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
shld dword [esp + 4], ebx, 1
add ebx, ebx
mov dword [esp], ebx
jmp 0x10005a45
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4026c0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x4027a7
test edx, edx
je 0x4027a7
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x40270a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x402711
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x4026f0
jmp 0x402713
mov esi, 0x1505
jmp 0x402713
mov esi, ecx
mov dword [esp + 8], edx
mov ecx, dword [esp]
mov ebp, dword [ecx + 0x20]
lea ebx, [ebp - 1]
mov edx, ebp
sub edx, 1
jb 0x4027a7
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
jmp 0x402744
inc ebx
dec ebp
je 0x4027a5
mov eax, ebx
and eax, edx
mov edi, dword [esp + 0x10]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x4027a5
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402740
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
call fcn.004095d0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x402740
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004095f0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402740
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x4027a7
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4027b0
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 0x4028b9
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4028b9
push ebx
call fcn.004095d0
add esp, 4
test eax, eax
je 0x40280a
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 0x402811
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x4027f0
jmp 0x402813
mov esi, 0x1505
jmp 0x402813
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov edx, ebx
sub edx, 1
jb 0x4028b9
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x402844
inc ebp
dec ebx
je 0x4028b7
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x4028b7
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402840
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.004095d0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402840
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.004095f0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402840
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4028b7
cmp dword [eax + 4], 2
mov edi, 0
jne 0x4028b9
mov edi, dword [eax + 8]
jmp 0x4028b9
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4028f0
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 0x402958
mov esi, dword [esp + 0x30]
test esi, esi
je 0x402958
push esi
call fcn.004095d0
add esp, 4
test eax, eax
je 0x40293a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x402941
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x402920
jmp 0x402943
mov ebp, 0x1505
jmp 0x402943
mov ebp, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + 0x20]
lea ebx, [edi - 1]
mov edx, edi
sub edx, 1
jae 0x402964
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 + 0xc], eax
mov dword [esp], edx
jmp 0x402984
inc ebx
dec edi
je 0x402958
mov eax, ebx
and eax, edx
mov esi, dword [esp + 0xc]
mov esi, dword [esi + eax*4]
cmp esi, 0xffffffff
je 0x402958
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebp
jne 0x402980
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 8], eax
push eax
call fcn.004095d0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402980
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x38]
call fcn.004095f0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x402980
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x402958
cmp dword [eax + 4], 3
jne 0x402958
fld qword [eax + 8]
fstp qword [esp + 0x10]
jmp 0x402958
Function at 0x402a30
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 0x402b39
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x402b39
push ebx
call fcn.004095d0
add esp, 4
test eax, eax
je 0x402a8a
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 0x402a91
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x402a70
jmp 0x402a93
mov esi, 0x1505
jmp 0x402a93
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov edx, ebx
sub edx, 1
jb 0x402b39
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x402ac4
inc ebp
dec ebx
je 0x402b37
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402b37
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402ac0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.004095d0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402ac0
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.004095f0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402ac0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x402b37
cmp dword [eax + 4], 5
mov edi, 0
jne 0x402b39
mov edi, dword [eax + 8]
jmp 0x402b39
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402c90
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
push 0x2e
push edi
call fcn.00409640
add esp, 8
test eax, eax
je 0x402cf6
mov ebx, eax
jmp 0x402cd4
mov edi, ebx
inc edi
push 0x2e
push edi
call fcn.00409640
add esp, 8
mov ebx, eax
test eax, eax
je 0x402cf6
mov eax, ebx
sub eax, edi
mov ecx, esi
mov edx, edi
push eax
call fcn.004026c0
add esp, 4
xor esi, esi
test eax, eax
je 0x402cc0
cmp dword [eax + 4], 4
jne 0x402cc0
mov esi, dword [eax + 8]
jmp 0x402cc0
xor eax, eax
test esi, esi
je 0x402d56
test edi, edi
je 0x402d56
push edi
call fcn.004095d0
add esp, 4
test eax, eax
je 0x402d3a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [edi + ebp]
test edx, edx
je 0x402d41
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc ebp
mov ecx, ebx
cmp eax, ebp
jne 0x402d20
jmp 0x402d43
mov ebx, 0x1505
jmp 0x402d43
mov ebx, ecx
mov dword [esp + 8], eax
mov ecx, dword [esi + 0x20]
lea ebp, [ecx - 1]
mov edx, ecx
sub edx, 1
jae 0x402d5e
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ebp, ebx
mov dword [esp], esi
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 4], edx
jmp 0x402d74
inc ebp
dec ecx
je 0x402d54
mov eax, ebp
and eax, edx
mov esi, dword [esp + 0x14]
mov esi, dword [esi + eax*4]
cmp esi, 0xffffffff
je 0x402d54
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp dword [eax + esi*4], ebx
jne 0x402d70
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x10], eax
push eax
mov dword [esp + 0x10], ecx
call fcn.004095d0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
add esp, 4
cmp eax, dword [esp + 8]
jne 0x402d70
push dword [esp + 8]
push dword [esp + 0x14]
push edi
call fcn.004095f0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x402d70
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi*4]
jmp 0x402d56
Function at 0x402e80
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 0x402eed
mov esi, dword [esp + 0x28]
test esi, esi
je 0x402eed
push esi
call fcn.004095d0
add esp, 4
test eax, eax
je 0x402eca
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x402ed1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x402eb0
jmp 0x402ed3
mov ebx, 0x1505
jmp 0x402ed3
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 0x402ef5
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 0x402f04
inc ebp
dec edi
je 0x402eeb
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov esi, dword [edx + eax*4]
cmp esi, 0xffffffff
je 0x402eeb
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], ebx
jne 0x402f00
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
push eax
call fcn.004095d0
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x402f00
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.004095f0
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x402f00
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4]
test ecx, ecx
mov eax, 0
je 0x402eed
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 4], edx
sete al
jmp 0x402eed
Function at 0x403110
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, 0xffffffff
test ecx, ecx
je 0x403218
mov esi, edx
test edx, edx
je 0x403218
mov dword [esp], ecx
cmp dword [esp + 0x2c], 0
je 0x403218
push esi
call fcn.004095d0
add esp, 4
test eax, eax
je 0x40316a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x403171
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x403150
jmp 0x403173
mov ebp, 0x1505
jmp 0x403173
mov ebp, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
lea ebx, [esi - 1]
mov edx, esi
sub edx, 1
mov dword [esp + 0x10], edx
jae 0x403220
mov edi, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x4031da
call fcn.00403310
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 8]
jne 0x403218
push ecx
call fcn.004095d0
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
lea ebx, [esi - 1]
mov eax, esi
sub eax, 1
mov dword [esp + 0x10], eax
jae 0x40328f
mov edi, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 8]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + edi*4], edx
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x18]
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], edi
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], eax
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x403238
inc ebx
dec esi
je 0x40318f
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x403194
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x403230
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx + eax*4]
push edi
call fcn.004095d0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x403230
push dword [esp + 4]
push edi
push dword [esp + 0x10]
call fcn.004095f0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x403230
mov eax, 0xffffffff
jmp 0x403218
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x4032a8
inc ebx
dec esi
je 0x4031d5
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x4031da
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x4032a0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
push eax
call fcn.004095d0
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4032a0
push dword [esp + 4]
push dword [esp + 0x18]
push dword [esp + 0x10]
call fcn.004095f0
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4032a0
jmp 0x4031da
Function at 0x403a30
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x403ba6
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test ebx, ebx
je 0x403b9f
mov edx, 0x5e6ea9af
mov eax, ebx
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebx
sub edx, eax
jmp 0x403abb
add ebp, dword [esp + 8]
mov eax, edi
mov esi, 0x80078071
mul esi
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mul esi
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
mov ebx, dword [esp + 0xc]
sub ebx, dword [esp]
mov edx, 0x15b0
je 0x403b9f
xor eax, eax
cmp edx, 8
mov dword [esp + 0xc], ebx
jb 0x403b2a
mov eax, edx
and eax, 0x1ff8
xor esi, esi
nop
mov ebx, edx
mov edx, esi
movzx esi, byte [ebp + esi]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + edx + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebp + edx + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + edx + 3]
add edi, esi
add ecx, edi
movzx esi, byte [ebp + edx + 4]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + edx + 5]
add edi, esi
add ecx, edi
movzx esi, byte [ebp + edx + 6]
add esi, edi
add ecx, esi
movzx edi, byte [ebp + edx + 7]
add edi, esi
add ecx, edi
lea esi, [edx + 8]
add edx, 0xf
cmp edx, ebx
mov edx, ebx
jb 0x403ad0
add ebp, esi
mov esi, edx
sub esi, eax
mov dword [esp], edx
jbe 0x403a84
mov dword [esp + 8], esi
mov esi, eax
not esi
add esi, edx
mov dword [esp + 4], esi
mov esi, edx
mov ebx, ebp
and esi, 3
je 0x403b5c
nop
nop
movzx edx, byte [ebx]
add edi, edx
inc eax
add ecx, edi
inc ebx
dec esi
jne 0x403b50
cmp dword [esp + 4], 3
jb 0x403a80
mov edx, dword [esp]
sub edx, eax
xor eax, eax
nop
nop
movzx esi, byte [ebx + eax]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + eax + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + eax + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + eax + 3]
add edi, esi
add ecx, edi
add eax, 4
cmp edx, eax
jne 0x403b70
jmp 0x403a80
shl ecx, 0x10
or ecx, edi
jmp 0x403bab
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x403c26
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x403c28
not eax
xor esi, esi
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
mov eax, dword [eax*4 + 0x43da18]
mov ebp, eax
and ebp, ebx
add ebx, eax
add ebp, ebp
sub ebx, ebp
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
mov edi, dword [edi*4 + 0x43da18]
mov ebx, eax
and ebx, edi
add eax, edi
add ebx, ebx
sub eax, ebx
inc esi
cmp edx, esi
jne 0x403be0
not eax
jmp 0x403c28
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x409d30
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 0x409e5b
lea eax, [edi + 2]
xor ebx, ebx
jmp 0x409d6d
add ebx, esi
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0x409d91
movzx ebp, cx
xor ecx, ecx
cmp ebp, 0x800
setb dl
mov esi, 1
cmp ebp, 0x80
jb 0x409d60
mov cl, dl
xor ecx, 3
mov esi, ecx
jmp 0x409d60
lea esi, [ebx + 1]
push esi
call fcn.00409390
add esp, 4
test ebx, ebx
jle 0x409e65
add ebx, eax
add esi, eax
mov dword [esp + 8], esi
mov ebp, eax
jmp 0x409dd5
mov byte [ebp], dl
mov esi, 1
add edi, 2
add ebp, esi
cmp ebp, ebx
jae 0x409e67
movzx edx, word [edi]
test dx, dx
je 0x409e67
cmp dx, 0x7f
jbe 0x409dc0
mov ecx, ebp
not ecx
add ecx, dword [esp + 8]
movzx esi, dx
cmp esi, 0x7ff
ja 0x409e20
xor esi, esi
cmp ecx, 2
jb 0x409dc8
mov ecx, edx
shr ecx, 6
add cl, 0xc0
mov byte [ebp], cl
and dl, 0x3f
or dl, 0x80
mov byte [ebp + 1], dl
mov esi, 2
jmp 0x409dc8
mov dword [esp + 4], esi
xor esi, esi
cmp ecx, 3
jb 0x409dc8
mov esi, dword [esp + 4]
mov ecx, esi
shr ecx, 0xc
or cl, 0xe0
mov byte [ebp], cl
mov ecx, esi
shr ecx, 6
and cl, 0x3f
or cl, 0x80
mov byte [ebp + 1], cl
and dl, 0x3f
or dl, 0x80
mov byte [ebp + 2], dl
mov esi, 3
jmp 0x409dc8
push 1
call fcn.00409390
add esp, 4
mov ebp, eax
mov edi, dword [esp + 0x228]
mov esi, dword [esp + 0x224]
mov byte [ebp], 0
movzx edx, byte [eax]
lea ecx, [esp + 0xc]
mov ebx, ecx
test dl, dl
je 0x409ea6
inc eax
lea ebx, [esp + 0xc]
jmp 0x409e9b
mov byte [ebx], dh
inc ebx
movzx edx, byte [eax]
inc eax
test dl, dl
je 0x409ea6
mov dh, 0x2f
cmp dl, 0x5c
je 0x409e90
mov dh, dl
jmp 0x409e90
mov byte [ebx], 0
push 0
push 0
push 0
mov eax, dword [esp + 0xc]
push dword [eax + 8]
add eax, 0x10
push 0
push 0
push edi
push esi
push ecx
push eax
call fcn.00405ea0
add esp, 0x28
test eax, eax
setne al
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc