joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b7b7c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.005be3a0
add esp, 0xc
mov dword [ebp - 0x120], esi
call fcn.004775f0
test al, al
je 0x5b7bc9
pop edx
pop ebx
pop edx
push edx
pop edi
push ecx
pop edx
pop ebp
push edx
push esi
pop ecx
pop eax
pop edx
pop edi
pop edi
push edx
pop ebp
call fcn.00477bf0
test al, al
je 0x5b7bf1
push edx
pop ebp
pop ecx
push edi
push esi
pop esp
push esp
push ebx
pop ebx
pop esi
pop esp
pop eax
push esi
push eax
pop esp
pop edi
pop ecx
push ecx
pop edx
pop esp
pop esp
push esi
pop ebp
pop ebx
push ebp
push edx
pop edx
push edx
push esp
pop edi
push ecx
call fcn.004778f0
test al, al
je 0x5b7c10
push ecx
push edi
push ebx
push ebp
push esi
push esp
pop eax
push edx
pop edx
pop ebx
push eax
pop esi
pop esi
push edx
pop eax
pop esp
pop edx
push edi
push esp
push eax
pop ecx
push esp
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x5b7c34
cmp dword [ebp - 0x118], 2
jb 0x5b7c34
xor eax, eax
inc eax
jmp 0x5b7c89
call fcn.00477bf0
test al, al
je 0x5b7c58
push eax
push esi
push edi
pop ebp
pop esi
pop edi
pop ebx
push esi
pop ecx
pop esp
push edi
pop eax
pop ebp
push ebp
pop ecx
push edx
pop esp
pop esi
pop esp
push esp
pop eax
pop ebp
push edi
push ebx
pop ecx
push esi
push ecx
call fcn.00477a10
test al, al
je 0x5b7c7f
push edi
pop edi
push ebx
push eax
push ebp
push ecx
push edi
push edx
pop esp
push edi
pop edi
pop ecx
push esp
push eax
pop esi
pop edx
push ecx
pop esi
pop ecx
pop edi
pop ebx
push esi
pop edx
push esi
pop edx
pop ecx
pop ecx
pop eax
pop ebx
pop esp
cmp dword [ebp - 0x11c], 0xa
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ad281
mov esp, ebp
pop ebp
ret
Function at 0x5b7c9a
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.005be3a0
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.00477ef0
test al, al
je 0x5b7d0d
push ebx
pop eax
push ecx
pop ebp
push edi
pop ecx
push ecx
pop ecx
push eax
pop esi
push ebx
push ecx
push esi
push ebx
push esp
push ebp
pop ebp
push esi
push edi
pop esp
pop ebp
push eax
pop edx
push eax
push ebp
push edi
pop esp
pop ebx
pop ebx
call fcn.004775f0
test al, al
je 0x5b7d34
pop eax
pop edi
pop ecx
pop edi
push ebp
pop esp
pop ecx
push edi
pop ebp
push ebp
pop edx
push edi
push edi
push esi
push edi
push edi
push esi
push esi
pop esi
pop ebx
push esi
pop edx
push ecx
pop edx
pop eax
push ecx
push eax
pop ebp
pop esi
push ecx
mov edi, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x118]
call fcn.00477a10
test al, al
je 0x5b7d68
push esi
pop ebx
pop ecx
push ebp
pop ecx
push ecx
push esi
pop eax
pop ebp
pop eax
push edi
push edx
push esi
push edi
push edi
pop edx
pop ebx
push eax
push edi
push ebp
push edx
pop ebp
pop ebp
push ebx
pop eax
push edx
push ebp
push ebp
push edx
push esp
push edi
cmp edi, 5
jg 0x5b7d77
cmp esi, 2
jg 0x5b7d77
xor eax, eax
inc eax
jmp 0x5b7d79
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ad281
mov esp, ebp
pop ebp
ret

Function at 0x5b839b
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfe0
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xfa4]
push edi
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0xfa4]
push esi
push eax
call fcn.005c5a4b
push 0x3c
xor edi, edi
lea eax, [ebp - 0xfe0]
push edi
push eax
call fcn.005be3a0
add esp, 0x14
mov dword [ebp - 0xfdc], 0x200
xor eax, eax
mov dword [ebp - 0xfcc], esi
inc eax
mov ecx, str.open
mov dword [ebp - 0xfd4], ecx
push eax
push edi
push edi
push esi
push ecx
push edi
mov dword [ebp - 0xfc4], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x5b842d
push edi
push edi
lea eax, [ebp - 0xfa4]
push edi
push eax
call fcn.005b843d
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005ad281
mov esp, ebp
pop ebp
ret
Function at 0x5b843d
Capabilities:
Create process on windows

Disassembly:
push 0x88
mov eax, 0x5ec34b
call fcn.005ae057
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x94]
mov edi, dword [ebp + 0xc]
push 0x44
pop ebx
push ebx
push 0
push eax
call fcn.005be3a0
push 0x10
lea eax, [ebp - 0x50]
mov dword [ebp - 0x94], ebx
push 0
push eax
call fcn.005be3a0
add esp, 0x18
xor edx, edx
xor eax, eax
mov dword [ebp - 0x18], edx
mov word [ebp - 0x28], ax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov word [ebp - 0x40], ax
or ebx, 0xffffffff
mov byte [ebp - 4], 1
test edi, edi
je 0x5b851b
cmp word [edi], dx
jne 0x5b84ac
mov eax, edx
jmp 0x5b84b3
push edi
call fcn.005c1d51
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.004028f0
cmp dword [ebp - 0x30], 0
je 0x5b851b
mov edi, 0x68832c
push edi
call fcn.005c1d51
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004028f0
xor edi, edi
cmp word [esi], di
jne 0x5b84e4
mov eax, edi
jmp 0x5b84eb
push esi
call fcn.005c1d51
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00404680
mov esi, 0x688330
push esi
call fcn.005c1d51
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00404680
push ebx
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004047b0
jmp 0x5b8537
xor edi, edi
cmp word [esi], di
jne 0x5b8526
mov eax, edi
jmp 0x5b852d
push esi
call fcn.005c1d51
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004028f0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push edi
push edi
push edi
push 1
push edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x5b8564
mov esi, edi
jmp 0x5b858f
cmp byte [ebp + 0x10], 0
je 0x5b857c
cmp dword [ebp + 0x14], 0
cmovg ebx, dword [ebp + 0x14]
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4c]
call esi
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.00402830
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00402830
mov eax, esi
call fcn.005ae012
ret
Function at 0x5b85ad
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x828]
push edi
mov edi, dword [ebp + 0xc]
push 0x44
pop ebx
push ebx
push 0
push eax
call fcn.005be3a0
mov dword [ebp - 0x828], ebx
lea eax, [ebp - 0x7e4]
push 0x10
xor ebx, ebx
push ebx
push eax
call fcn.005be3a0
push esi
lea eax, [ebp - 0x7d4]
push 0x6947e8
push eax
call fcn.005b3149
add esp, 0x24
mov dword [edi], ebx
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x828]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x7d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x5b8665
push dword [ebp + 0x10]
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x7e4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7e0]
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ad281
mov esp, ebp
pop ebp
ret
Function at 0x5b8676
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1604
call fcn.005ad780
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
push 0
push eax
call fcn.005be3a0
push esi
lea eax, [ebp - 0x20c]
push 0x6947e8
push eax
call fcn.005b3149
lea eax, [ebp - 0x20c]
push eax
call fcn.005c1d51
add esp, 0x1c
lea ecx, [eax - 1]
test ecx, ecx
jle 0x5b86e2
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x20e], cx
je 0x5b86e2
mov word [ebp + eax*2 - 0x20c], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xbe4]
push 0x687ec8
push eax
call fcn.005b3149
add esp, 0xc
lea eax, [ebp - 0x1604]
push eax
lea eax, [ebp - 0xbe4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5b87db
push ebx
push 0x2e
pop ebx
lea eax, [ebp - 0x1604]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x5b87da
cmp word [ebp - 0x15d8], bx
je 0x5b8720
cmp word [ebp - 0x15d6], 0
je 0x5b8720
cmp word [ebp - 0x15d6], bx
jne 0x5b875c
cmp word [ebp - 0x15d4], 0
je 0x5b8720
test byte [ebp - 0x1604], 0x10
je 0x5b87a6
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.005be3a0
lea eax, [ebp - 0x15d8]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x687efc
push eax
call fcn.005b3149
lea eax, [ebp - 0x414]
push eax
call fcn.005b8676
add esp, 0x20
lea eax, [ebp - 0x15d8]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x13b4]
push 0x687ed4
push eax
call fcn.005b3149
add esp, 0x10
lea eax, [ebp - 0x13b4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x5b8720
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005ad281
mov esp, ebp
pop ebp
ret
Function at 0x5b8ca2
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x5ec410
call fcn.005ae057
mov eax, dword [ebp + 8]
test eax, eax
je 0x5b8d9e
push eax
lea ecx, [ebp - 0x40]
call fcn.00402790
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.005b91a5
mov edi, 0x22c
lea eax, [ebp - 0x26c]
push edi
push ebx
push eax
call fcn.005be3a0
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x5b8d8f
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x5b8d84
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
jne 0x5b8d2e
mov eax, ebx
jmp 0x5b8d3b
lea eax, [ebp - 0x248]
push eax
call fcn.005c1d51
pop ecx
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.004028f0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.005b91a5
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408770
test eax, eax
je 0x5b8da4
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00402830
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x5b8d11
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00402830
mov eax, esi
call fcn.005ae012
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00402830
jmp 0x5b8d91
Function at 0x5b8f3b
Capabilities:
Enumerate processes

Disassembly:
push 0x678
mov eax, 0x5ec493
call fcn.005ae057
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x67c]
push 0x22c
xor ebx, ebx
push ebx
push eax
call fcn.005be3a0
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.005be3a0
add esp, 0x18
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x5b8f89
xor eax, eax
jmp 0x5b8fef
lea eax, [ebp - 0x67c]
mov dword [ebp - 0x67c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x5b8fe1
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005c5a4b
lea eax, [ebp - 0x218]
push eax
call fcn.005d6619
lea eax, [ebp - 0x218]
push eax
call fcn.005b8eb7
add esp, 0x10
test al, al
jne 0x5b8ff5
lea eax, [ebp - 0x67c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x5b8fa2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
call fcn.005ae012
ret
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.005be3a0
add esp, 0xc
push dword [ebp - 0x674]
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push ebx
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
sub esp, 0x18
lea eax, [ebp - 0x420]
mov ecx, esp
mov dword [ebp - 0x680], esp
push eax
call fcn.00402790
sub esp, 0x18
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
mov ecx, esp
push eax
call fcn.00402790
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.005b81f7
xor esi, esi
mov ecx, edi
inc esi
push eax
mov dword [ebp - 4], esi
call fcn.005b986d
lea ecx, [ebp - 0x450]
call fcn.005b827c
mov eax, esi
jmp 0x5b8fef
Function at 0x5b98da
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xe8
mov eax, 0x5ec533
call fcn.005ae057
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
xor eax, eax
mov dword [ebp - 0xf0], ebx
push 0x694738
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.004028f0
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], ebx
call fcn.0041e760
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5b9a29
push ebx
push 1
push 4
push ebx
push 1
push accept
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b995e
push 0x694738
mov ecx, esi
call fcn.00402790
jmp 0x5b9a34
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xe8], eax
inc eax
push eax
mov dword [ebp - 0xec], eax
call fcn.005ad7e9
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x5b9992
push 0x694738
mov ecx, esi
call fcn.00402790
push ebx
jmp 0x5b9a35
push dword [ebp - 0xec]
push 0
push ebx
call fcn.005be3a0
add esp, 0xc
lea eax, [ebp - 0xf4]
push 0
push eax
push dword [ebp - 0xe8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xe8]
lea ecx, [ebp - 0xe4]
push ebx
call fcn.0041e810
push ebx
call fcn.005ad7e4
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0041e960
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.005b64c1
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00422710
cmp dword [ebp - 0x30], ebx
jbe 0x5b9a1e
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402b60
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00402830
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00404ab0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402830
mov eax, esi
call fcn.005ae012
ret

Function at 0x5b9cec
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x160], ebx
jne 0x5b9d82
lea eax, [edi + 0x2c]
cmp dword [eax + 0x14], 8
jb 0x5b9d18
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x20c]
push str._sSkin_
push eax
call fcn.00409310
add esp, 0xc
cmp word [ebp - 0x20c], bx
je 0x5b9d45
lea eax, [ebp - 0x20c]
push eax
call fcn.005c1d51
pop ecx
mov ebx, eax
push esi
push ebx
lea eax, [ebp - 0x20c]
lea esi, [edi + 0x150]
push eax
mov ecx, esi
call fcn.004028f0
cmp dword [esi + 0x14], 8
jb 0x5b9d65
mov eax, dword [esi]
jmp 0x5b9d67
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5b9d81
cmp dword [esi + 0x14], 8
jb 0x5b9d7a
mov esi, dword [esi]
push esi
call fcn.005af566
pop ecx
pop esi
lea eax, [edi + 0x150]
cmp dword [eax + 0x14], 8
pop edi
pop ebx
jb 0x5b9d92
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret
Function at 0x5ba491
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
xor edi, edi
push edi
push eax
call fcn.005be3a0
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x5ba51b
cmp dword [ebp - 0x11c], 6
jb 0x5ba51b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.ChangeWindowMessageFilter
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5ba514
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
sete cl
inc ecx
push ecx
push dword [ebp + 8]
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
test edi, edi
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.005ad281
mov esp, ebp
pop ebp
ret

Function at 0x5ba9b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x6b1b50], 0
mov dword [ebp - 8], ecx
je 0x5bab0b
add ecx, 8
cmp dword [ecx + 0x14], 8
jb 0x5ba9d9
mov ecx, dword [ecx]
push esi
push 0x689530
push ecx
push dword [0x6a8ab4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x5bab0a
push ebx
push edi
push esi
push dword [0x6a8ab4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x6a8ab4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.005bd1e0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor esi, esi
push esi
push dword [ebp - 4]
call fcn.005bb1c8
pop ecx
pop ecx
test eax, eax
je 0x5bab08
mov ebx, dword [ebp - 8]
mov ecx, 0x6b1b54
mov dword [ebx + 4], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.005ba827
mov eax, dword [ebp - 0xc]
push esi
mov dword [eax + 0x14], ebx
push dword [0x6a8ab4]
push esi
push dword [ebp + 8]
push esi
push esi
push esi
push accept
push 0x80880000
push esi
push dword [0x6a8ab0]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [ebp + 8]
mov dword [ebx + 0x20], eax
call esi
test eax, 0x10000000
jne 0x5baac8
mov byte [ebx + 0x28], 1
jmp 0x5baaee
test eax, 0x21000000
je 0x5baad5
mov byte [ebx + 0x28], 5
jmp 0x5baaee
push 8
push dword [ebx + 0x20]
mov byte [ebx + 0x28], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, ebx
call fcn.005bb48a
push 0xfffffffffffffffc
push dword [ebp + 8]
call esi
push 0x5bb299
push 0xfffffffffffffffc
push dword [ebp + 8]
mov dword [ebx + 0x24], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x5bc79b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, 0x6a8ac8
cmp dword [esi], eax
je 0x5bc7d4
add esi, 0x50
cmp esi, 0x6a9338
jl 0x5bc7be
xor al, al
jmp 0x5bc89e
push 0x190
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.005be3a0
add edi, 4
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x5bc7f5
mov edi, dword [edi]
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
jb 0x5bc800
mov eax, dword [eax]
lea ecx, [esi + 0x20]
cmp dword [ecx + 0x14], 8
jb 0x5bc80b
mov ecx, dword [ecx]
lea edx, [esi + 8]
cmp dword [edx + 0x14], 8
jb 0x5bc816
mov edx, dword [edx]
push edi
push 0xc8
lea edi, [ebp - 0x194]
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x194], 0
jne 0x5bc83a
xor eax, eax
jmp 0x5bc847
lea eax, [ebp - 0x194]
push eax
call fcn.005c1d51
pop ecx
push eax
lea eax, [ebp - 0x194]
lea edi, [ebx + 8]
push eax
mov ecx, edi
call fcn.004028f0
mov eax, dword [esi + 4]
mov dword [ebx], eax
cmp dword [esi + 4], 1
jne 0x5bc87a
cmp dword [edi + 0x14], 8
jb 0x5bc86e
mov eax, dword [edi]
jmp 0x5bc870
mov eax, edi
push eax
call fcn.005c8490
pop ecx
mov dword [ebx + 4], eax
cmp dword [esi + 4], 3
jne 0x5bc89c
cmp dword [edi + 0x14], 8
jb 0x5bc888
mov edi, dword [edi]
push edi
call fcn.005c8490
pop ecx
xor ecx, ecx
mov dword [ebx + 4], eax
test eax, eax
setg cl
mov dword [ebx + 0x20], ecx
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ad281
mov esp, ebp
pop ebp
ret 8

Function at 0x5d97c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d9644

Function at 0x5de794
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005de454
Function at 0x401040
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push str.Executing_shellcode..._n
call fcn.00401010
add esp, 4
push 0x40
push 0x1000
push 0x173
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x40107a
push str.Error_allocating_memory_for_shellcode._n
call fcn.00401010
add esp, 4
lea eax, [ebx + 1]
pop ebx
ret
push esi
push edi
push str.hello
call fcn.00401010
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
xor esi, esi
push 0
call edi
mov al, byte [esi + 0x402190]
add al, 3
push esi
push 0x402158
mov byte [esi + 0x4034f0], al
call fcn.00401010
inc esi
add esp, 8
cmp esi, 0x173
jb 0x401091
xor esi, esi
nop dword [eax]
mov eax, esi
imul eax, esi
push eax
push 0x40215c
call fcn.00401010
inc esi
add esp, 8
cmp esi, 0x64
jl 0x4010c0
push 0x173
push 0x173
push 0x173
push str._d__d__d
call fcn.00401010
add esp, 0x10
xor esi, esi
push 0
call edi
mov al, byte [esi + 0x4034f0]
sub al, 3
push esi
push 0x402158
mov byte [esi + 0x403378], al
call fcn.00401010
inc esi
add esp, 8
cmp esi, 0x173
jb 0x4010f7
push 0x40216c
call fcn.00401010
mov ecx, 0x5c
mov esi, 0x403378
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call ebx
push str.Shellcode_execution_complete._n
call fcn.00401010
add esp, 8
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x401963
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4019a2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019a2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019a2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019a2
cmp dword [ecx + 0x74], 0xe
jbe 0x4019a2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret