joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce390
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa14
mov eax, dword [0x52f220]
push edi
mov dword [esp + 0xa14], eax
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 8]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xd
lea edx, [esp + 0x14]
push str.TDPRepair.exe
push edx
mov word [eax + 2], 0
call dword [sym.imp.MSVCR71.dll_wcsncat]
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x228]
push str.__dir_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
push 2
lea edx, [esp + 0x214]
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.XLBugHandler.dll__XL_AddCrashProcess_12]
call fcn.004cddb0
test eax, eax
je 0x4ce447
call fcn.004cde70
test eax, eax
jne 0x4ce447
push eax
push eax
push 0x4ce220
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
mov ecx, dword [esp + 0xa14]
call fcn.004d1f17
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4ce460
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x52f220]
mov dword [esp + 0x410], eax
call fcn.004cde70
test eax, eax
jne 0x4ce4d3
call fcn.004ce100
test eax, eax
je 0x4ce4eb
push 0x104
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str..TDPRepair.exe
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push 0
push 0
lea ecx, [esp + 0x214]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
mov ecx, dword [esp + 0x410]
call fcn.004d1f17
add esp, 0x414
ret
mov ecx, dword [esp + 0x410]
xor eax, eax
call fcn.004d1f17
add esp, 0x414
ret
Function at 0x4cf982
Capabilities:
Create thread

Disassembly:
push 0
push 0
call fcn.004d16fa
push eax
push 0x4d17a5
push 0
push 0
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4cf9a9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
ret

Function at 0x4d1841
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push str.GlobalCommunicate_Exist_MUTEX
push 0
push 0x1f0003
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
mov dword [esi + 0x10], eax
je 0x4d19aa
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi]
and dword [esi + 0x10], 0
call edi
mov ebx, eax
test ebx, ebx
je 0x4d1896
cmp ebx, 0x80
je 0x4d1896
xor eax, eax
jmp 0x4d19a8
push dword [ebp + 0x14]
push dword [esi + 4]
call edi
test ebx, ebx
je 0x4d18ae
cmp ebx, 0x80
jne 0x4d199c
cmp dword [ebp + 0x18], 1
jne 0x4d18f6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push 4
lea eax, [ebp + 0x18]
push eax
push dword [esi + 0x18]
mov dword [ebp - 8], ebx
call sub.MSVCR71.dll_memcpy
push 8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
call sub.MSVCR71.dll_memcpy
mov eax, dword [esi + 0x18]
push ebx
push dword [ebp + 8]
add eax, 0xc
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0x24
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call ebx
push dword [ebp + 0x14]
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x4d199c
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0x14]
push dword [esi + 4]
call edi
xor edi, edi
cmp eax, edi
je 0x4d1938
cmp eax, 0x80
jne 0x4d199e
push 4
push dword [esi + 0x18]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edi
call sub.MSVCR71.dll_memcpy
xor edi, edi
inc edi
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x4d1995
mov eax, dword [esi + 0x18]
add eax, 4
push 8
push eax
lea eax, [ebp - 0xc]
push eax
call sub.MSVCR71.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x4d1995
cdq
sub eax, edx
sar eax, 1
shl eax, 1
push eax
call fcn.004d1ab7
mov ecx, dword [ebp + 0x10]
push dword [ebp - 8]
mov dword [ecx], eax
mov ecx, dword [esi + 0x18]
add ecx, 0xc
push ecx
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0x10
push dword [esi + 4]
call ebx
jmp 0x4d199e
xor edi, edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 0x14
Function at 0x4d2278
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x504ec0
call fcn.004d2024
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x4d22b8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4d22b8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4d22d0
cmp eax, 0x20b
je 0x4d22bd
mov dword [ebp - 0x1c], edi
jmp 0x4d22e4
cmp dword [ecx + 0x84], 0xe
jbe 0x4d22b8
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4d22de
cmp dword [ecx + 0x74], 0xe
jbe 0x4d22b8
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x535ec4], 0xffffffff
or dword [0x535ec8], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x535ea8]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x535ea4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x535ec0], eax
call fcn.004d2602
call fcn.00407671
cmp dword [0x52f240], edi
jne 0x4d2344
push fcn.00407671
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004d2690
push 0x52a10c
push 0x52a108
call sub.MSVCR71.dll__initterm
push 0x4d2646
call fcn.004d1fcc
mov eax, dword [0x535ea0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x535e9c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x4d2398
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x52a104
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x4d23c2
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x4d247c
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x4d2431
cmp ax, di
je 0x4d23d8
cmp dword [ebp - 0x20], edi
jne 0x4d2431
mov ax, word [esi]
cmp ax, di
je 0x4d23ed
cmp ax, 0x20
ja 0x4d23ed
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4d23d8
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x4d2409
movzx eax, word [ebp - 0x54]
jmp 0x4d240c
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.0041cf5f
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x4d2429
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4d2476
cmp ax, 0x22
jne 0x4d2442
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x4d23c2
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004d205f
ret
Function at 0x4d36df
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x460]
sub esp, 0x4e0
mov eax, dword [0x52f220]
mov ecx, dword [ebp + 0x46c]
xor eax, ebp
mov dword [ebp + 0x45c], eax
mov eax, dword [ebp + 0x468]
test eax, eax
push ebx
mov dword [ebp - 0x80], ecx
je 0x4d37ae
cmp word [eax], 0
je 0x4d37ae
push 0x4eda00
push eax
call dword [sym.imp.MSVCR71.dll__wfopen]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x4d3733
inc eax
jmp 0x4d37b1
push esi
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.004d7d20
mov esi, dword [sym.imp.MSVCR71.dll_fread]
push ebx
mov edi, 0x400
push edi
lea eax, [ebp + 0x5c]
push 1
push eax
call esi
add esp, 0x14
jmp 0x4d3773
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004d3441
push ebx
push edi
lea eax, [ebp + 0x5c]
push 1
push eax
call esi
add esp, 0x1c
test eax, eax
ja 0x4d3758
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call fcn.004d34e0
push 0xd8
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call sub.MSVCR71.dll_memset
add esp, 0x14
test byte [ebx + 0xc], 0x20
je 0x4d37a0
push 2
pop esi
push ebx
call dword [sym.imp.MSVCR71.dll_fclose]
pop ecx
pop edi
mov eax, esi
pop esi
jmp 0x4d37b1
push 3
pop eax
mov ecx, dword [ebp + 0x45c]
xor ecx, ebp
pop ebx
call fcn.004d1f17
add ebp, 0x460
leave
ret
Function at 0x4d37c7
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x52f220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
je 0x4d38f7
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4d38f6
cmp edi, 0x40
jbe 0x4d3811
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
call fcn.004d3676
add esp, 0xc
push 0x10
lea eax, [ebp - 0x14]
pop edi
mov dword [ebp - 0x18], eax
push ebx
push 0x40
lea eax, [esi + 0x58]
push 0x36
push eax
call sub.MSVCR71.dll_memset
push 0x40
lea ebx, [esi + 0x98]
push 0x5c
push ebx
call sub.MSVCR71.dll_memset
add esp, 0x18
test edi, edi
jbe 0x4d3849
mov ecx, dword [ebp - 0x18]
mov eax, ebx
mov dl, byte [ecx]
xor byte [eax - 0x40], dl
mov dl, byte [ecx]
xor byte [eax], dl
inc ecx
inc eax
dec edi
jne 0x4d383b
push esi
call fcn.004d7d20
add esp, 4
lea eax, [esi + 0x58]
test eax, eax
push 0x40
pop ebx
mov dword [ebp - 0x18], eax
je 0x4d38e5
mov ecx, dword [esi]
mov edi, ecx
push ebx
and edi, 0x3f
pop eax
add ecx, ebx
sub eax, edi
cmp ecx, ebx
mov dword [ebp - 0x1c], eax
mov dword [esi], ecx
jae 0x4d387c
inc dword [esi + 4]
test edi, edi
je 0x4d38b2
cmp eax, 0x40
ja 0x4d38b2
push eax
push dword [ebp - 0x18]
lea eax, [edi + esi + 0x18]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
lea eax, [esi + 0x18]
mov ecx, esi
call fcn.004d2ab9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
push 0x40
pop ebx
sub ebx, eax
xor edi, edi
cmp ebx, 0x40
jb 0x4d38d0
mov eax, ebx
shr eax, 6
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, esi
call fcn.004d2ab9
add dword [ebp - 0x18], 0x40
sub ebx, 0x40
dec dword [ebp - 0x1c]
jne 0x4d38ba
test ebx, ebx
jbe 0x4d38e5
push ebx
push dword [ebp - 0x18]
lea eax, [edi + esi + 0x18]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004d1f17
leave
ret
Function at 0x4d3d7c
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [ebp + 0x10]
sub eax, 0x80
push edi
je 0x4d3db8
sub eax, 0x40
je 0x4d3dad
sub eax, 0x40
je 0x4d3da2
or eax, 0xffffffff
jmp 0x4d3e98
mov edi, dword [ebp + 8]
mov dword [edi], 0xe
jmp 0x4d3dc1
mov edi, dword [ebp + 8]
mov dword [edi], 0xc
jmp 0x4d3dc1
mov edi, dword [ebp + 8]
mov dword [edi], 0xa
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
push dword [ebp + 0xc]
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.004d3b00
mov eax, dword [ebp - 0x118]
shl eax, 4
add eax, dword [ebp - 0x114]
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi], ecx
push 4
pop ecx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
mov edi, dword [edi]
add esi, ecx
dec edi
sub eax, 0x1c
test edi, edi
jle 0x4d3e7b
mov dword [ebp + 0x10], edi
push ebx
mov edx, ecx
movzx edi, byte [eax + 3]
movzx edi, byte [edi + str.cw]
movzx ebx, byte [eax + 2]
movzx ebx, byte [ebx + str.cw]
mov edi, dword [edi*4 + 0x506d50]
xor edi, dword [ebx*4 + 0x506950]
movzx ebx, byte [eax + 1]
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x506550]
mov ebx, dword [eax]
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x506150]
add eax, ecx
mov dword [esi], edi
add esi, ecx
dec edx
jne 0x4d3e1d
sub eax, 0x20
dec dword [ebp + 0x10]
jne 0x4d3e1b
pop ebx
mov edx, dword [eax]
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add esi, ecx
add eax, ecx
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
xor eax, eax
pop esi
pop edi
leave
ret
Function at 0x4d7cd7
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x4d7d1b
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x4d7cae
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp byte [esp + 0xc], bl
mov dword [esi + 8], eax
jne 0x4d7d1b
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ebx
ret 4

Function at 0x4d7d20
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x4d879e
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x52f220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
je 0x4d88ce
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4d88cd
cmp edi, 0x40
jbe 0x4d87e8
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
call fcn.004d8735
add esp, 0xc
push 0x10
lea eax, [ebp - 0x14]
pop edi
mov dword [ebp - 0x18], eax
push ebx
push 0x40
lea eax, [esi + 0x58]
push 0x36
push eax
call sub.MSVCR71.dll_memset
push 0x40
lea ebx, [esi + 0x98]
push 0x5c
push ebx
call sub.MSVCR71.dll_memset
add esp, 0x18
test edi, edi
jbe 0x4d8820
mov ecx, dword [ebp - 0x18]
mov eax, ebx
mov dl, byte [ecx]
xor byte [eax - 0x40], dl
mov dl, byte [ecx]
xor byte [eax], dl
inc ecx
inc eax
dec edi
jne 0x4d8812
push esi
call fcn.004d7d20
add esp, 4
lea eax, [esi + 0x58]
test eax, eax
push 0x40
pop ebx
mov dword [ebp - 0x18], eax
je 0x4d88bc
mov ecx, dword [esi]
mov edi, ecx
push ebx
and edi, 0x3f
pop eax
add ecx, ebx
sub eax, edi
cmp ecx, ebx
mov dword [ebp - 0x1c], eax
mov dword [esi], ecx
jae 0x4d8853
inc dword [esi + 4]
test edi, edi
je 0x4d8889
cmp eax, 0x40
ja 0x4d8889
push eax
push dword [ebp - 0x18]
lea eax, [edi + esi + 0x18]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
lea eax, [esi + 0x18]
mov ecx, esi
call fcn.004d7d48
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
push 0x40
pop ebx
sub ebx, eax
xor edi, edi
cmp ebx, 0x40
jb 0x4d88a7
mov eax, ebx
shr eax, 6
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, esi
call fcn.004d7d48
add dword [ebp - 0x18], 0x40
sub ebx, 0x40
dec dword [ebp - 0x1c]
jne 0x4d8891
test ebx, ebx
jbe 0x4d88bc
push ebx
push dword [ebp - 0x18]
lea eax, [edi + esi + 0x18]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004d1f17
leave
ret
Function at 0x4d8ad7
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x4da722
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x52f220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
je 0x4da852
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4da851
cmp edi, 0x40
jbe 0x4da76c
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
call fcn.004da6b9
add esp, 0xc
push 0x14
lea eax, [ebp - 0x18]
pop edi
mov dword [ebp - 0x1c], eax
push ebx
push 0x40
lea eax, [esi + 0x5c]
push 0x36
push eax
call sub.MSVCR71.dll_memset
push 0x40
lea ebx, [esi + 0x9c]
push 0x5c
push ebx
call sub.MSVCR71.dll_memset
add esp, 0x18
test edi, edi
jbe 0x4da7a4
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
mov dl, byte [ecx]
xor byte [eax - 0x40], dl
mov dl, byte [ecx]
xor byte [eax], dl
inc ecx
inc eax
dec edi
jne 0x4da796
push esi
call fcn.004d8ad7
add esp, 4
lea eax, [esi + 0x5c]
test eax, eax
push 0x40
pop ebx
mov dword [ebp - 0x1c], eax
je 0x4da840
mov ecx, dword [esi]
mov edi, ecx
push ebx
and edi, 0x3f
pop eax
add ecx, ebx
sub eax, edi
cmp ecx, ebx
mov dword [ebp - 0x20], eax
mov dword [esi], ecx
jae 0x4da7d7
inc dword [esi + 4]
test edi, edi
je 0x4da80d
cmp eax, 0x40
ja 0x4da80d
push eax
push dword [ebp - 0x1c]
lea eax, [edi + esi + 0x1c]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
lea eax, [esi + 0x1c]
mov ecx, esi
call fcn.004d8b06
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x1c], eax
push 0x40
pop ebx
sub ebx, eax
xor edi, edi
cmp ebx, 0x40
jb 0x4da82b
mov eax, ebx
shr eax, 6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, esi
call fcn.004d8b06
add dword [ebp - 0x1c], 0x40
sub ebx, 0x40
dec dword [ebp - 0x20]
jne 0x4da815
test ebx, ebx
jbe 0x4da840
push ebx
push dword [ebp - 0x1c]
lea eax, [edi + esi + 0x1c]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
push 0x14
lea eax, [ebp - 0x18]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004d1f17
leave
ret
Function at 0x525820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b25e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.00520720
test eax, eax
jne 0x52588c
push ebp
push 0x500fac
mov ecx, edi
call fcn.00524aa0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.00520150
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.0050e680
push ebx
mov dword [esp + 0x4c], ebp
call fcn.005208d0
add esp, 4
test eax, eax
je 0x52592f
add esi, 0x18
push esi
call main
add esi, eax
push esi
call main
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x525c32
jmp dword [ecx*4 + 0x44b070]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.00524be0
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call main
add esi, eax
push esi
call main
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x525980
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.004b7560]
test eax, eax
je 0x525980
mov eax, 1
jmp 0x525982
xor eax, eax
cmp ebx, 8
jge 0x525be7
cmp ebx, 7
ja 0x525c32
jmp dword [ebx*4 + 0x44b080]
test eax, eax
jne 0x525bfa
mov ecx, dword [esp + 0x10]
push eax
push 0x500f98
call fcn.00524aa0
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.00526140
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x4e79a8
call fcn.0050e880
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x52e7a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5190e8]
xor edx, edx
cmp eax, edx
jne 0x52e7c6
xor eax, eax
mov byte [eax + 0x518fe8], al
inc eax
cmp eax, 0x100
jl 0x52e7ae
mov dword [0x5190e8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x518fe8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x52e857
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x52e82a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x52e7f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x52e8d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x52e923
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x52e90a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret