joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c11a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
cmp dword [ebp - 4], eax
jae 0x4c11fb
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
sub eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
add eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c11f9
mov dword [ebp - 8], 0x19c00af
jmp 0x4c11fb
jmp 0x4c11b4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4cdc20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x52e400]
push esi
push edi
mov dword [esp + 0x21c], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x1c]
push str.APConfig.ini
push edx
mov word [eax + 2], si
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
push 0x4ee858
push str.Replaced
push str.AutoRepair
mov word [esp + 0x24], si
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll__wtoi]
mov ecx, dword [esp + 0x220]
add esp, 4
call fcn.004d1da7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4cdce0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x52e400]
push esi
push edi
mov dword [esp + 0x21c], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x1c]
push str.APConfig.ini
push edx
mov word [eax + 2], si
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
push 0x4ee858
push str.Restored
push str.AutoRepair
mov word [esp + 0x24], si
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll__wtoi]
mov ecx, dword [esp + 0x220]
add esp, 4
call fcn.004d1da7
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4cdda0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x52e400]
push edi
mov dword [esp + 0x21c], eax
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x1c]
push str.APConfig.ini
push edx
mov word [eax + 2], 0
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
push 5
lea edx, [esp + 0xc]
push edx
push 0x4ee858
xor eax, eax
push str.CrashTimes
mov dword [esp + 0x1a], eax
push str.AutoRepair
mov word [esp + 0x1c], 0
mov dword [esp + 0x22], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 4]
push eax
call dword [sym.imp.MSVCR71.dll__wtoi]
xor ecx, ecx
add esp, 4
cmp eax, 3
setge cl
mov eax, ecx
mov ecx, dword [esp + 0x21c]
call fcn.004d1da7
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4cde70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
mov eax, dword [0x52e400]
push esi
push edi
mov dword [esp + 0x234], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x28], si
mov ecx, 0x81
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x28]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xc
lea edx, [esp + 0x34]
push str.APConfig.ini
push edx
mov word [eax + 2], si
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0x14
lea eax, [esp + 0x28]
push eax
push 8
lea ecx, [esp + 0x18]
push ecx
push str.ReplaceTime
push str.AutoRepair
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
je 0x4cdf4e
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
sub ecx, esi
sbb eax, edx
cmp eax, 0x580
jl 0x4cdf4e
jg 0x4cdf37
cmp ecx, 0x28e44000
jbe 0x4cdf4e
mov eax, 1
mov ecx, dword [esp + 0x234]
call fcn.004d1da7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x234]
xor eax, eax
call fcn.004d1da7
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4cdf70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x52e400]
push esi
push edi
mov dword [esp + 0x424], eax
call fcn.004cdc20
test eax, eax
jne 0x4cdfa5
mov ecx, dword [esp + 0x424]
call fcn.004d1da7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004cdda0
test eax, eax
jne 0x4ce06a
call fcn.004cde70
test eax, eax
jne 0x4ce06a
xor esi, esi
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x218], si
mov ecx, 0x81
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...ServerConfig.ini
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x218]
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
push 0x4ee858
push str.Restore
push str.ServerConfig
mov word [esp + 0x24], si
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll__wtoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x424]
call fcn.004d1da7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x424]
mov eax, 1
call fcn.004d1da7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ce200
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa14
mov eax, dword [0x52e400]
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.004cdc20
test eax, eax
je 0x4ce2b7
call fcn.004cdce0
test eax, eax
jne 0x4ce2b7
push eax
push eax
push 0x4ce090
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
mov ecx, dword [esp + 0xa14]
call fcn.004d1da7
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4ce2d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x52e400]
mov dword [esp + 0x410], eax
call fcn.004cdce0
test eax, eax
jne 0x4ce343
call fcn.004cdf70
test eax, eax
je 0x4ce35b
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.004d1da7
add esp, 0x414
ret
mov ecx, dword [esp + 0x410]
xor eax, eax
call fcn.004d1da7
add esp, 0x414
ret
Function at 0x4cf817
Capabilities:
Create thread

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

Function at 0x4d16d8
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 0x4d1841
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 0x4d172d
cmp ebx, 0x80
je 0x4d172d
xor eax, eax
jmp 0x4d183f
push dword [ebp + 0x14]
push dword [esi + 4]
call edi
test ebx, ebx
je 0x4d1745
cmp ebx, 0x80
jne 0x4d1833
cmp dword [ebp + 0x18], 1
jne 0x4d178d
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 0x4d1833
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 0x4d17cf
cmp eax, 0x80
jne 0x4d1835
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 0x4d182c
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 0x4d182c
cdq
sub eax, edx
sar eax, 1
shl eax, 1
push eax
call fcn.004d1949
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 0x4d1835
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 0x4d2108
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x506818
call fcn.004d1eb4
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 0x4d2148
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4d2148
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4d2160
cmp eax, 0x20b
je 0x4d214d
mov dword [ebp - 0x1c], edi
jmp 0x4d2174
cmp dword [ecx + 0x84], 0xe
jbe 0x4d2148
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4d216e
cmp dword [ecx + 0x74], 0xe
jbe 0x4d2148
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 [0x535064], 0xffffffff
or dword [0x535068], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x535048]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x535044]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x535060], eax
call fcn.004d2492
call fcn.00407aca
cmp dword [0x52e420], edi
jne 0x4d21d4
push fcn.00407aca
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004d2520
push 0x5290f8
push 0x5290f4
call sub.MSVCR71.dll__initterm
push 0x4d24d6
call fcn.004d1e5c
mov eax, dword [0x535040]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x53503c]
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 0x4d2228
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x5290f0
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 0x4d2252
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x4d230c
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x4d22c1
cmp ax, di
je 0x4d2268
cmp dword [ebp - 0x20], edi
jne 0x4d22c1
mov ax, word [esi]
cmp ax, di
je 0x4d227d
cmp ax, 0x20
ja 0x4d227d
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4d2268
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x4d2299
movzx eax, word [ebp - 0x54]
jmp 0x4d229c
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00419edd
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x4d22b9
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4d2306
cmp ax, 0x22
jne 0x4d22d2
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x4d2252
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004d1eef
ret

Function at 0x4d2949
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 0x4d3597
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x460]
sub esp, 0x4e0
mov eax, dword [0x52e400]
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 0x4d3666
cmp word [eax], 0
je 0x4d3666
push 0x4ec828
push eax
call dword [sym.imp.MSVCR71.dll__wfopen]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x4d35eb
inc eax
jmp 0x4d3669
push esi
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.004d2949
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 0x4d362b
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004d32f9
push ebx
push edi
lea eax, [ebp + 0x5c]
push 1
push eax
call esi
add esp, 0x1c
test eax, eax
ja 0x4d3610
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call fcn.004d3398
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 0x4d3658
push 2
pop esi
push ebx
call dword [sym.imp.MSVCR71.dll_fclose]
pop ecx
pop edi
mov eax, esi
pop esi
jmp 0x4d3669
push 3
pop eax
mov ecx, dword [ebp + 0x45c]
xor ecx, ebp
pop ebx
call fcn.004d1da7
add ebp, 0x460
leave
ret
Function at 0x4d367f
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x52e400]
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 0x4d37af
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4d37ae
cmp edi, 0x40
jbe 0x4d36c9
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
call fcn.004d352e
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 0x4d3701
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 0x4d36f3
push esi
call fcn.004d2949
add esp, 4
lea eax, [esi + 0x58]
test eax, eax
push 0x40
pop ebx
mov dword [ebp - 0x18], eax
je 0x4d379d
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 0x4d3734
inc dword [esi + 4]
test edi, edi
je 0x4d376a
cmp eax, 0x40
ja 0x4d376a
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.004d2971
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
push 0x40
pop ebx
sub ebx, eax
xor edi, edi
cmp ebx, 0x40
jb 0x4d3788
mov eax, ebx
shr eax, 6
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, esi
call fcn.004d2971
add dword [ebp - 0x18], 0x40
sub ebx, 0x40
dec dword [ebp - 0x1c]
jne 0x4d3772
test ebx, ebx
jbe 0x4d379d
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.004d1da7
leave
ret
Function at 0x4d6c2e
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x4d6c72
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 0x4d6c05
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp byte [esp + 0xc], bl
mov dword [esi + 8], eax
jne 0x4d6c72
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ebx
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x52e400]
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 0x4d77fd
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4d77fc
cmp edi, 0x40
jbe 0x4d7717
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
call fcn.004d7664
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 0x4d774f
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 0x4d7741
push esi
call fcn.004d2949
add esp, 4
lea eax, [esi + 0x58]
test eax, eax
push 0x40
pop ebx
mov dword [ebp - 0x18], eax
je 0x4d77eb
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 0x4d7782
inc dword [esi + 4]
test edi, edi
je 0x4d77b8
cmp eax, 0x40
ja 0x4d77b8
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.004d6c77
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
push 0x40
pop ebx
sub ebx, eax
xor edi, edi
cmp ebx, 0x40
jb 0x4d77d6
mov eax, ebx
shr eax, 6
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, esi
call fcn.004d6c77
add dword [ebp - 0x18], 0x40
sub ebx, 0x40
dec dword [ebp - 0x1c]
jne 0x4d77c0
test ebx, ebx
jbe 0x4d77eb
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.004d1da7
leave
ret

Function at 0x4d7a06
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 0x4d9651
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x52e400]
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 0x4d9781
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4d9780
cmp edi, 0x40
jbe 0x4d969b
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
call fcn.004d95e8
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 0x4d96d3
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 0x4d96c5
push esi
call fcn.004d7a06
add esp, 4
lea eax, [esi + 0x5c]
test eax, eax
push 0x40
pop ebx
mov dword [ebp - 0x1c], eax
je 0x4d976f
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 0x4d9706
inc dword [esi + 4]
test edi, edi
je 0x4d973c
cmp eax, 0x40
ja 0x4d973c
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.004d7a35
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x1c], eax
push 0x40
pop ebx
sub ebx, eax
xor edi, edi
cmp ebx, 0x40
jb 0x4d975a
mov eax, ebx
shr eax, 6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, esi
call fcn.004d7a35
add dword [ebp - 0x1c], 0x40
sub ebx, 0x40
dec dword [ebp - 0x20]
jne 0x4d9744
test ebx, ebx
jbe 0x4d976f
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.004d1da7
leave
ret