joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53f1bc
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x53f327
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x53f2f5
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 4]
call fcn.00510474
lea eax, [ebp - 4]
mov edx, 0x53f340
call fcn.00405228
mov edx, dword [ebp - 4]
mov eax, 0x7d1
call fcn.00512740
xor eax, eax
push ebp
push 0x53f240
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00510448
lea eax, [ebp - 8]
mov edx, 0x53f350
call fcn.00405228
mov eax, dword [ebp - 8]
push eax
call fcn.00535ba0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53f24a
lea eax, [ebp - 0xc]
call fcn.00510448
lea eax, [ebp - 0xc]
mov edx, 0x53f350
call fcn.00405228
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0040ba60
lea eax, [ebp - 0x14]
call fcn.00510448
lea eax, [ebp - 0x14]
mov edx, 0x53f350
call fcn.00405228
mov eax, dword [ebp - 0x14]
call fcn.004053ec
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00405154
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x18]
call fcn.004053ec
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea eax, [ebp - 0x1c]
call fcn.00510448
lea eax, [ebp - 0x1c]
mov edx, 0x53f350
call fcn.00405228
mov eax, dword [ebp - 0x1c]
call fcn.004053ec
push eax
lea eax, [ebp - 0x20]
call fcn.00510474
lea eax, [ebp - 0x20]
mov edx, 0x53f340
call fcn.00405228
mov eax, dword [ebp - 0x20]
call fcn.004053ec
push eax
call sub.kernel32.dll_MoveFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53f2ff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53f32e
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404f80
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404f80
ret
Function at 0x53fc0c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 1
je 0x53fc33
push ebx
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x53fdbc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x53fdb5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 8], 2
je 0x53fc82
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
test edi, edi
je 0x53fc78
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, ebx
call edi
push esi
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.user32.dll_GetWindowRect
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.user32.dll_ClientToScreen
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test al, 4
je 0x53fd9a
mov edx, dword [ebp - 4]
test al, 8
je 0x53fcfe
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 2
je 0x53fce3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0045a8b0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
push 0x14
push ebx
call sub.user32.dll_SendMessageA
push esi
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SaveDC
mov esi, eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 2
je 0x53fd20
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0045a8b0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
push 0x318
push ebx
call sub.user32.dll_SendMessageA
push esi
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0045a8b0
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
test byte [eax + 8], 0x10
je 0x53fd78
mov byte [ebp - 0x34], 1
mov dword [ebp - 0x28], 0x1e
lea eax, [ebp - 0x34]
push eax
push 0x53fb48
push ebx
call sub.user32.dll_EnumChildWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test al, 0x20
je 0x53fd9a
mov byte [ebp - 0x34], 0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 0x53fb48
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53fdbc
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_RestoreDC
ret
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x54010c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x5401c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x190
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x5401d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5401ad
mov dword [ebp - 0xc], 0x20
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x5401ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp esi, 2
je 0x5401ad
test esi, esi
jne 0x540184
cmp dword [ebp - 8], 1
je 0x540188
xor ebx, ebx
jmp 0x5401ad
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov ecx, 0x20
call fcn.004051cc
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x10]
call fcn.00403938
mov ebx, eax
cmp dword [ebp - 0x10], 0
je 0x5401ad
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5401ca
lea eax, [ebp - 0x34]
call fcn.00404f5c
ret

Function at 0x5409b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x14], edx
mov esi, eax
xor eax, eax
push ebp
push 0x540a73
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x603cbc]
cmp dword [eax], 5
jl 0x5409e5
mov eax, dword [0x604594]
cmp dword [eax], 2
je 0x5409e9
mov bl, 1
jmp 0x540a5d
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x540a8c
push esi
push 0x540ab8
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004052f0
mov eax, dword [ebp - 0x14]
call fcn.004053ec
push eax
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x540a5d
mov dword [ebp - 0x10], 8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x540a4b
cmp word [ebp - 0xc], 0
jne 0x540a52
cmp eax, 0xea
jne 0x540a54
mov bl, 1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x540a7a
lea eax, [ebp - 0x14]
call fcn.00404f5c
ret

Function at 0x541288
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, eax
push 0
push 0x12
call sub.user32.dll_MapVirtualKeyA
mov ebx, eax
shl ebx, 0x10
test ebx, ebx
je 0x5412c8
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextA
test eax, eax
jle 0x5412c8
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004051cc
jmp 0x5412d4
mov eax, esi
mov edx, 0x5412e8
call fcn.00404fb0
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x577f64
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov edi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test ebp, ebp
je 0x57804b
mov ebx, eax
mov eax, ebp
mov esi, 3
xor edx, edx
div esi
lea eax, [eax + eax*2]
mov dword [esp], eax
mov esi, ebx
add esi, dword [esp]
jmp 0x577fe0
movzx eax, byte [ebx]
shl eax, 8
movzx edx, byte [ebx + 1]
or eax, edx
shl eax, 8
movzx edx, byte [ebx + 2]
or eax, edx
add ebx, 3
mov edx, eax
and edx, 0x3f
movzx edx, byte [edi + edx]
mov byte [ecx + 3], dl
shr eax, 6
mov edx, eax
and edx, 0x3f
movzx edx, byte [edi + edx]
mov byte [ecx + 2], dl
shr eax, 6
mov edx, eax
and edx, 0x3f
movzx edx, byte [edi + edx]
mov byte [ecx + 1], dl
shr eax, 6
movzx eax, byte [edi + eax]
mov byte [ecx], al
add ecx, 4
cmp esi, ebx
ja 0x577f92
sub ebp, dword [esp]
dec ebp
je 0x577fef
dec ebp
je 0x578014
jmp 0x57804b
movzx eax, byte [ebx]
shl eax, 4
mov edx, eax
and edx, 0x3f
movzx edx, byte [edi + edx]
mov byte [ecx + 1], dl
shr eax, 6
movzx eax, byte [edi + eax]
mov byte [ecx], al
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
jmp 0x57804b
movzx eax, byte [ebx]
shl eax, 8
movzx edx, byte [ebx + 1]
or eax, edx
shl eax, 2
mov edx, eax
and edx, 0x3f
movzx edx, byte [edi + edx]
mov byte [ecx + 2], dl
shr eax, 6
mov edx, eax
and edx, 0x3f
movzx edx, byte [edi + edx]
mov byte [ecx + 1], dl
shr eax, 6
movzx eax, byte [edi + eax]
mov byte [ecx], al
mov byte [ecx + 3], 0x3d
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5991a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
xor eax, eax
push ebp
push 0x599239
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x59924c
call fcn.00404ff4
push 0
push 0x599254
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x599260
call fcn.00405274
mov eax, dword [ebp - 0xc]
call fcn.004053ec
push eax
push 0x599270
push dword [ebp - 8]
push 0x59927c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004052f0
mov eax, dword [ebp - 0x10]
call fcn.004053ec
push eax
push 0x599284
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x599240
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404f80
ret
Function at 0x59928c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x59933c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, edi
call fcn.00535470
cmp byte [eax + 0x24], 2
jne 0x599326
mov edx, esi
mov eax, edi
call fcn.00535470
mov edx, dword [eax + 8]
lea eax, [ebp - 4]
call fcn.00404ff4
mov eax, dword [ebp - 4]
call fcn.00510178
test al, al
je 0x599311
xor eax, eax
push ebp
push 0x599303
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005991a0
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x599326
mov edx, esi
mov eax, edi
call fcn.00535470
mov edx, dword [eax + 4]
mov eax, edi
call fcn.0059934c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x599343
lea eax, [ebp - 4]
call fcn.00404f5c
ret

Function at 0x599444
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
xor eax, eax
push ebp
push 0x5994d3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x5994e8
call fcn.00404ff4
push 0
push 0x5994f0
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x5994fc
call fcn.00405274
mov eax, dword [ebp - 0xc]
call fcn.004053ec
push eax
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, 0x59950c
call fcn.00405274
mov eax, dword [ebp - 0x10]
call fcn.004053ec
push eax
push 0x599518
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5994da
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404f80
ret

Function at 0x5a3274
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push ecx
mov eax, dword [0x604594]
cmp dword [eax], 2
jne 0x5a32bd
xor edx, edx
mov eax, 5
call fcn.005a2a00
test al, al
je 0x5a32bd
push esp
push 4
push 0
push 0x5a3260
push 0x10
push 0
call sub.kernel32.dll_CreateThread_1
mov ebx, eax
test ebx, ebx
je 0x5a32bd
push 0xfffffffffffffffe
push ebx
call sub.kernel32.dll_SetThreadPriority
push ebx
call sub.kernel32.dll_ResumeThread
push ebx
call sub.kernel32.dll_CloseHandle
pop edx
pop ebx
ret

Function at 0x5b43e4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5b4455
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x6035f4]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x5b443f
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.005b43d4
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x5b41d4]
call fcn.005b447c
mov dword [0x603658], eax
mov eax, dword [ebp - 4]
call fcn.005b4384
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b445c
lea eax, [ebp - 8]
call fcn.004071c8
ret
Function at 0x5bb8bc
Capabilities:
Find taskbar

Disassembly:
push 0
push 0x5bb8e0
call sub.user32.dll_FindWindowA
test eax, eax
je 0x5bb8dc
push 0
push 0x5bb8f0
push 0
push eax
call sub.user32.dll_FindWindowExA
ret
xor eax, eax
ret

Function at 0x5c33a8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
lea eax, [ebx + 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
lea eax, [ebx + 8]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x10]
sbb edx, dword [ebx + 0x14]
push edx
push eax
mov eax, 0xf4240
xor edx, edx
call fcn.00406320
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
fild qword [esp + 8]
fild qword [ebx + 8]
fdivp st(1)
call fcn.004035ec
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0x10
pop ebx
ret

Function at 0x5c3410
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x5d595c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x5d5a2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x278]
call fcn.004964a0
test eax, eax
je 0x5d5a13
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x278]
call fcn.004964a0
mov esi, eax
dec esi
test esi, esi
jl 0x5d5a05
inc esi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x278]
mov edx, ebx
call fcn.004964d8
mov eax, dword [eax + 8]
lea ecx, [ebp - 8]
mov edx, 2
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 8]
call fcn.0040b8c8
test al, al
je 0x5d5a01
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x278]
mov edx, ebx
call fcn.004964d8
mov eax, dword [eax + 8]
lea ecx, [ebp - 0xc]
mov edx, 2
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.004053ec
push eax
call sub.kernel32.dll_DeleteFileA
inc ebx
dec esi
jne 0x5d59a7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x278]
call fcn.004965c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d5a35
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404f80
ret
Function at 0x5e13d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
test ebx, ebx
je 0x5e1429
mov eax, ebx
call fcn.005e1398
mov ebx, eax
push esp
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x5e1429
mov eax, dword [ebx]
mov dword [edi], eax
mov al, byte [ebx + 4]
mov byte [edi + 4], al
mov byte [ebx], 0xe9
mov eax, ebx
add eax, 5
sub esi, eax
mov dword [ebx + 1], esi
push esp
mov eax, dword [esp + 4]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
push 5
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5f1894
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
add esp, 0xfffffbf0
mov ebx, 0x62c1d4
lea eax, [esp + 0xc]
xor ecx, ecx
mov edx, 0x402
call fcn.00403830
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0
mov ecx, esp
lea edx, [esp + 0xc]
xor eax, eax
call fcn.005e19dc
mov eax, dword [esp]
mov dword [ebx], eax
mov eax, esp
call fcn.005e1a04
mov eax, dword [ebx]
cmp byte [eax], 0x50
jne 0x5f19cb
mov eax, dword [ebx]
cmp byte [eax + 1], 0x51
jne 0x5f19cb
mov eax, dword [ebx]
cmp byte [eax + 2], 0x52
jne 0x5f19cb
mov eax, dword [ebx]
cmp word [eax + 3], 0xe289
jne 0x5f19cb
mov eax, dword [ebx]
cmp dword [eax + 0xa], 0x4244489
jne 0x5f19cb
mov eax, dword [ebx]
cmp byte [eax + 0xe], 0x58
jne 0x5f19cb
mov eax, dword [ebx]
cmp byte [eax + 0xf], 0x58
jne 0x5f19cb
mov eax, dword [ebx]
cmp byte [eax + 0x10], 0x59
jne 0x5f19cb
mov eax, dword [ebx]
cmp word [eax + 0x11], 0x498d
jne 0x5f19cb
mov eax, dword [ebx]
cmp word [eax + 0x14], 0xe1ff
jne 0x5f19cb
lea eax, [esp + 8]
push eax
push 0x40
push 5
mov eax, dword [ebx]
add eax, 0x11
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x5f19cf
mov eax, 0x5f19e0
call fcn.005f0ca4
mov edx, 0x62c1d8
mov eax, dword [ebx]
add eax, 0x11
mov ecx, 5
call fcn.00403230
mov eax, dword [ebx]
mov byte [eax + 0x11], 0xe9
mov eax, 0x5f1874
mov edx, dword [ebx]
add edx, 0x11
add edx, 5
sub eax, edx
mov edx, dword [ebx]
mov dword [edx + 0x12], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
push 5
mov eax, dword [ebx]
add eax, 0x11
push eax
call sub.kernel32.dll_VirtualProtect
push 5
mov eax, dword [ebx]
add eax, 0x11
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
jmp 0x5f19cf
xor eax, eax
mov dword [ebx], eax
add esp, 0x410
pop ebx
ret

Function at 0x5f19f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
cmp dword [0x62c1d4], 0
je 0x5f1a54
push esp
push 0x40
push 5
mov eax, dword [0x62c1d4]
add eax, 0x11
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x5f1a54
mov eax, dword [0x62c1d4]
lea edx, [eax + 0x11]
mov eax, 0x62c1d8
mov ecx, 5
call fcn.00403230
push esp
mov eax, dword [esp + 4]
push eax
push 5
mov eax, dword [0x62c1d4]
add eax, 0x11
push eax
call sub.kernel32.dll_VirtualProtect
push 5
mov eax, dword [0x62c1d4]
add eax, 0x11
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
ret
Function at 0x5f1b8c
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
lea edx, [esp + 4]
mov eax, esp
call fcn.005f1a58
cmp dword [esp], 0
je 0x5f1bab
cmp dword [esp + 4], 0
jne 0x5f1bba
push 0x5f1c64
call sub.kernel32.dll_OutputDebugStringA
jmp 0x5f1c5a
mov eax, dword [esp + 4]
mov ebx, dword [eax]
xor esi, esi
test ebx, ebx
je 0x5f1c16
mov edi, dword [ebx]
mov eax, dword [esp]
mov eax, dword [eax]
mov edx, ebx
call fcn.005f1b5c
mov ebp, eax
cmp ebp, 0x13a
jne 0x5f1c0e
mov ecx, ebx
add ecx, 0xffc
dec ecx
mov eax, dword [esp]
mov edx, ebx
call fcn.005f1b18
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
mov ebx, esi
test esi, esi
jne 0x5f1c0c
mov eax, dword [esp + 4]
mov dword [eax], edi
jmp 0x5f1c0e
mov dword [esi], edi
mov esi, ebx
mov ebx, edi
test ebx, ebx
jne 0x5f1bc6
mov eax, dword [esp + 4]
cmp dword [eax], 0
je 0x5f1c5a
cmp byte [0x62c1e5], 0
jne 0x5f1c5a
mov eax, fcn.004216e0
call fcn.005f0a84
call fcn.00406b54
cmp eax, dword [0x6077f8]
jne 0x5f1c5a
mov byte [0x62c1e5], 1
mov ecx, 0x62c1e0
mov edx, 0x5f1c9c
mov eax, fcn.004216e0
call fcn.005f0abc
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4487a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x4487a0
lcall 0x5de5, 0x8b10c483
jmp loc.00969670
Function at 0x401000
Capabilities:
Enumerate processes
Enumerate threads
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40113e
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4010a9
mov eax, 0x403180
lea ecx, [ebp - 0x20c]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x401086
test dx, dx
je 0x401082
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x401086
add ecx, 4
add eax, 4
test dx, dx
jne 0x401060
xor eax, eax
jmp 0x40108b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4010a3
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401052
jmp 0x4010a9
mov ebx, dword [ebp - 0x228]
push esi
call edi
test ebx, ebx
je 0x40113e
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x401138
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x40111f
cmp dword [ebp - 0x240], ebx
jne 0x40110d
push dword [ebp - 0x244]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x40110d
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x4010e1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401020
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401020