joyce8/EMBER2024-capa huggingface dataset:
Function at 0x512a9c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x512b10
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
fild qword [ebp - 0x2c]
fdiv dword [0x512b1c]
call fcn.004035ec
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.0040b2f8
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov ecx, 0x512b28
call fcn.00405274
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512b17
lea eax, [ebp - 0x24]
call fcn.00404f5c
ret

Function at 0x512d78
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x512da9
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.004051cc
jmp 0x512db0
mov eax, ebx
call fcn.00404f5c
add esp, 0x104
pop ebx
ret

Function at 0x512db8
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x512e32
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405680
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x512e10
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405458
jmp 0x512e1c
mov eax, ebx
mov edx, 0x512e48
call fcn.00404fb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512e39
lea eax, [ebp - 4]
call fcn.00404f5c
ret

Function at 0x5130dc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, edx
push esp
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004051cc
add esp, 0x10c
pop ebx
ret
Function at 0x515b2c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push ebx
mov ebx, edx
push 0
push 0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0x400
lea eax, [ebp - 0x401]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ReadFile
mov edx, ebx
lea eax, [ebp - 0x401]
call fcn.0040c318
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x515b84
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x515d4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 8]
add eax, 0x144
call fcn.00404f5c
mov eax, dword [ebp - 8]
cmp byte [eax + 0x124], 0
je 0x515bcd
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x98]
jmp 0x515bd6
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x88]
lea ecx, [ebp - 0x14]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.005156b0
test al, al
je 0x515d2f
imul eax, dword [ebp - 0x14], 0x3d
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x130]
mov edx, dword [edx + eax]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x130]
sub edx, dword [ecx + eax + 8]
mov dword [ebp - 0x18], edx
mov esi, ebx
sub esi, dword [ebp - 0x18]
push 0
push 0
push esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push 0x14
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ReadFile
jmp 0x515cfe
push ebp
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x18]
call fcn.00515b2c
pop ecx
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
call fcn.00404ff4
cmp dword [ebp - 0xc], 0
je 0x515d2f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x138]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov ebx, eax
test ebx, ebx
jge 0x515cb3
mov ecx, dword [0x513ce0]
mov dl, 1
mov eax, dword [0x513da0]
call fcn.004232dc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x18
mov edx, dword [ebp - 0xc]
call fcn.00404fb0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x138]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x138]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
push eax
lea edx, [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00515d80
add esi, 0x14
push 0
push 0
push esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push 0x14
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 0x24], 0
je 0x515d2f
mov eax, esi
cdq
push edx
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x128]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x515d27
cmp eax, dword [esp]
pop edx
pop eax
ja 0x515c3e
jmp 0x515d2f
pop edx
pop eax
jg 0x515c3e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515d54
lea eax, [ebp - 0x34]
call fcn.00404f5c
lea eax, [ebp - 0xc]
call fcn.00404f5c
ret
Function at 0x515d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 4], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x515f1a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edx]
test eax, eax
jne 0x515db8
mov eax, dword [edx + 0x10]
sub eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x515dbe
sub eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_ReadFile
mov ebx, dword [ebp - 8]
add ebx, 4
jmp 0x515ed7
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x10], 0
jge 0x515e2e
mov ebx, dword [ebp - 8]
push 0
push 0
push ebx
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp + 8]
call fcn.00516088
mov dword [ebp - 0x18], eax
movzx eax, word [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x18]
add eax, 0xc
call fcn.00404f5c
jmp 0x515eae
mov ebx, dword [ebp - 0x10]
sub ebx, dword [ebp - 4]
push 0
push 0
push ebx
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x14]
push eax
push 0x102
lea eax, [ebp - 0x11a]
push eax
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp + 8]
call fcn.00516088
mov edi, eax
movsx eax, word [ebp - 0x11a]
mov dword [edi + 0x10], eax
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x118]
call fcn.0040c318
mov edx, dword [ebp - 0x120]
lea eax, [edi + 0xc]
call fcn.00404fb0
push dword [esi + 0x144]
push dword [edi + 0xc]
push 0x515f34
lea eax, [esi + 0x144]
mov edx, 3
call fcn.004052f0
mov ebx, dword [ebp - 0xc]
push 0
push 0
push ebx
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_ReadFile
add ebx, 4
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [esi + 0x128]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x515ef3
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x515f01
jmp 0x515ef7
pop edx
pop eax
jle 0x515f01
cmp dword [ebp - 0x10], 0
jne 0x515def
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515f21
lea eax, [ebp - 0x120]
call fcn.00404f5c
ret

Function at 0x5160d4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle
pop ebp
ret
Function at 0x5160f8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 4
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xc]
mov dword [edx], eax
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp dword [eax], 0
setne al
pop ebp
ret

Function at 0x5161d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov edx, dword [ebp + 8]
add eax, dword [edx - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_SetEndOfFile
pop ebp
ret

Function at 0x516498
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x51657e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x516508
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.004051cc
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x516594
call fcn.00405274
jmp 0x51650f
mov eax, ebx
call fcn.00404f5c
push dword [ebx]
push 0x5165a0
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 8
call fcn.005175ec
push dword [ebp - 0x110]
lea eax, [ebp - 0x114]
push eax
mov cl, 0x30
mov edx, 1
mov eax, esi
call fcn.005175ec
push dword [ebp - 0x114]
push 0x5165b4
mov eax, ebx
mov edx, 5
call fcn.004052f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516585
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00404f80
ret
Function at 0x5165b8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x516669
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x516649
mov eax, dword [esi]
add eax, 8
call fcn.005165b8
mov ebx, dword [esi]
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esi], eax
cmp byte [ebx + 0x14], 0
jne 0x51663c
cmp dword [ebx + 0x1d], 0
je 0x51663c
mov eax, dword [ebx + 0x1d]
push eax
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00516498
mov eax, dword [ebp - 0xc]
call fcn.004053ec
mov edx, eax
lea eax, [ebp - 8]
call fcn.00405154
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
call fcn.004053ec
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov edx, dword [0x516098]
mov eax, ebx
call fcn.00406278
cmp dword [esi], 0
jne 0x5165db
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516670
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404f80
ret
Function at 0x516918
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x516a8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1d], 0
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
lea edi, [esi + ebx]
mov eax, edi
mov edx, 4
call fcn.005160c0
mov dword [ebp - 0x10], eax
mov eax, edi
add eax, dword [ebp + 8]
test eax, eax
jbe 0x516a6a
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
call fcn.00516498
mov eax, dword [ebp - 0x30]
call fcn.004053ec
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x516a4a
push 0
push 0
mov eax, edi
mov edx, 4
call fcn.005160c0
add eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_SetEndOfFile
push 0
push 0
push 0
push 4
push 0
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x516a41
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x516a38
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, edi
mov edx, 4
call fcn.005160c0
add eax, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
xchg edx, eax
call fcn.00403830
push ebp
mov eax, dword [ebp - 0x1c]
call fcn.005166f8
pop ecx
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x18]
call fcn.004053ec
mov edx, eax
lea eax, [ebp - 0x34]
call fcn.00405154
mov eax, dword [ebp - 0x34]
call fcn.004053ec
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516a94
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404f80
lea eax, [ebp - 0x18]
call fcn.00404f5c
ret
Function at 0x516c48
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
mov eax, 0x14
call fcn.00403010
mov esi, eax
mov eax, esi
xor ecx, ecx
mov edx, 0x14
call fcn.00403830
mov ebx, esi
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp + 8]
call fcn.00516b84
mov edi, eax
mov dword [ebx], edi
cmp edi, 0xffffffff
je 0x516d31
push 0
push 0
push 0
push 2
push 0
push edi
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebx + 4], eax
cmp dword [ebx + 4], 0
je 0x516d31
push 0
push 0
push 0
push 4
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
je 0x516d31
mov eax, dword [ebx + 8]
call fcn.005173e4
mov edi, eax
mov dword [ebx + 0xc], edi
test edi, edi
je 0x516d31
push 2
call sub.kernel32.dll_SetLastError
mov eax, dword [ebx + 0xc]
add eax, 0xf8
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0xc]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x516d31
inc eax
xor edi, edi
lea edx, [edi + edi*4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + edx*8 + 0xc]
mov ecx, dword [ebx + 0xc]
cmp edx, dword [ecx + 0x88]
jne 0x516d2d
lea eax, [edi + edi*4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 0xc]
lea eax, [edi + edi*4]
mov edx, dword [ebp - 8]
mov edx, dword [edx + eax*8 + 0x14]
mov eax, dword [ebx + 8]
call fcn.00516474
mov dword [ebx + 0x10], eax
mov dword [ebp - 4], esi
jmp 0x516d31
inc edi
dec eax
jne 0x516cf4
cmp dword [ebp - 4], 0
jne 0x516d4c
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0xffffffffffffffff
push esi
call fcn.00516db4
push ebx
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x5173e4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
xor edx, edx
push ebp
push 0x51741c
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [eax], 0x5a4d
jne 0x517412
lea edx, [eax + 0x3c]
mov ebx, dword [edx]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x517412
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x517428
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x51b63c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51b710
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404ff4
lea eax, [ebp - 4]
call fcn.00405444
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x51b6fa
mov eax, ebx
call fcn.00403010
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x51b6f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x51b6dd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x51b720
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x51b6dd
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51b6fa
mov eax, dword [ebp - 0x10]
call fcn.0040302c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51b717
lea eax, [ebp - 4]
call fcn.00404f5c
ret
Function at 0x51ee74
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x51ee9e
cmp dword [ebx + 0x64], 0
jne 0x51ee9e
cmp dword [ebx + 0x6c], 0
jne 0x51ee9e
mov edi, esi
jmp 0x51ef25
cmp edi, 0xffffffff
jne 0x51eea6
dec edi
jmp 0x51ef25
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x51ef25
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0051e270
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x51eef3
mov cx, word [esp]
sub cx, si
jmp 0x51eef5
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x51eedc
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x51ef1b
mov cx, word [esp]
sub cx, si
jmp 0x51ef1d
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x51ef04
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x51ef82
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.0051ec10
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x51ef6d
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x51ef82
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x51ee7e
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x52517c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x60b760
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x52519e
shr eax, 1
xor eax, 0xedb88320
jmp 0x5251a0
shr eax, 1
dec edx
jne 0x52518c
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x525185
mov byte [0x60bb60], 1
pop esi
pop ebx
ret

Function at 0x5251bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x60bb60], 0
jne 0x5251d3
call fcn.0052517c
mov eax, edi
dec eax
test eax, eax
jl 0x5251fb
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x60b760]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x5251dd
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x5278c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x45d]
movzx ecx, dl
cmp ecx, 6
ja case.0x52795a.0
jmp dword [ecx*4 + 0x5278f3]
movzx edx, byte [eax + 0x45c]
sub dl, 8
je 0x527925
sub dl, 8
je 0x527934
jmp case.0x52795a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x527650
jmp case.0x52795a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x52769c
jmp case.0x52795a.0
movzx ecx, byte [eax + 0x45c]
cmp ecx, 0x10
ja case.0x52795a.0
movzx ecx, byte [ecx + 0x527961]
jmp dword [ecx*4 + 0x527972]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5276ec
jmp case.0x52795a.0
cmp dl, 3
jne 0x52799f
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x527740
jmp case.0x52795a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5276fc
jmp case.0x52795a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x527784
jmp case.0x52795a.0
movzx edx, byte [eax + 0x45c]
sub dl, 8
je 0x5279ca
sub dl, 8
je 0x5279d6
jmp case.0x52795a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5277a0
jmp case.0x52795a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x527804
jmp case.0x52795a.0
movzx edx, byte [eax + 0x45c]
sub dl, 8
je 0x5279f5
sub dl, 8
je 0x527a01
jmp case.0x52795a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x52786c
jmp case.0x52795a.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x527894
mov esi, dword [eax + 0x448]
mov edx, dword [ebx + 0x1c]
dec edx
imul esi, edx
add esi, dword [eax + 0x44c]
mov dword [ebp - 0xc], esi
mov eax, dword [eax + 0x450]
mov dword [ebp - 8], eax
mov esi, edx
test esi, esi
jb 0x527a91
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00526c6c
test eax, eax
je 0x527a91
mov eax, ebx
call fcn.00527a9c
mov eax, dword [ebp - 8]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x448]
sub dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x527a31
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8