joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5767450c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x576746f3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, dword [0x5768ed08]
call fcn.5766ba7c
mov dword [0x576908e8], eax
xor edx, edx
mov eax, dword [0x5768ed0c]
call fcn.5766ba7c
mov dword [0x576908ec], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.57665a80
lea eax, [ebp - 8]
call fcn.576659f0
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.576659f0
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.576659f0
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.576659f0
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.576659f0
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, dword [0x5768ed80]
call fcn.57667e90
push dword [ebp - 0xc]
push 0x5767470c
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.57667b38
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 4
call fcn.57665858
mov eax, dword [ebp - 8]
call fcn.57665998
push eax
push 0
push 0
call fcn.57666a8c
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x576746d8
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x576908dc], esi
mov dword [0x576908e0], edi
cmp dword [0x576908e8], 0
je 0x57674628
cmp dword [0x576908ec], 0
jne 0x576746aa
mov dl, 1
mov eax, dword [0x5768ec84]
call fcn.5766bb90
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x576746bc
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x576746bc
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x576746bc
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x576746bc
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x576746bc
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x576746bc
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x576908e4], edx
mov edx, 0x576744bc
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 4]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
mov bl, 1
jmp 0x576746bc
push 0x57674468
push 1
call dword [0x576908e8]
test eax, eax
setne bl
test bl, bl
jne 0x576746d8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x576746fa
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.5766552c
ret
Function at 0x57674710
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x576908e8], 0
je 0x57674728
cmp dword [0x576908ec], 0
jne 0x57674781
mov dl, 1
mov eax, dword [0x5768ec84]
call fcn.5766bb90
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x57674767
mov eax, dword [0x576908e4]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
jmp 0x5767478c
push 0x57674468
call dword [0x576908ec]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x576771e0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.57665988
xor eax, eax
push ebp
push 0x576772a0
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
setne bl
xor eax, eax
mov dword [ebp - 8], eax
test bl, bl
jne 0x5767728a
cmp dword [ebp - 4], 0
jne 0x5767722d
lea edx, [ebp - 8]
mov eax, esi
call fcn.5766fa98
test al, al
je 0x5767728a
call sub.KERNEL32.dll_GetCurrentProcess
lea edx, [ebp - 0xc]
call fcn.5766fa98
test al, al
je 0x5767727b
cmp dword [ebp - 4], 0
je 0x5767725b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x57677272
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.ADVAPI32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_LocalFree
cmp dword [ebp - 8], 0
je 0x5767728a
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x576772a7
lea eax, [ebp - 4]
call fcn.57665508
ret

Function at 0x57677aec
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x57677b95
push 0
push esi
call sub.KERNEL32.dll_GetFileSize
mov ebx, eax
push ebx
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edi, eax
test edi, edi
je 0x57677b8f
push 0
lea eax, [esp + 4]
push eax
push ebx
push edi
push esi
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x57677b89
cmp ebx, dword [esp]
jne 0x57677b89
xor ebx, ebx
mov eax, dword [esp]
dec eax
shr eax, 1
test eax, eax
jl 0x57677b73
inc eax
xor edx, edx
movzx ecx, word [edi + edx*2]
add ebx, ecx
test ebx, 0xffff0000
je 0x57677b6f
mov ecx, ebx
and ecx, 0xffff
shr ebx, 0x10
add ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x57677b52
mov eax, ebx
and ax, 0xffff
shr ebx, 0x10
add ax, bx
movzx eax, ax
mov ebx, eax
mov ebp, dword [esp]
add ebp, ebx
push edi
call sub.KERNEL32.dll_LocalFree
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebp
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x57677ba0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x57677caf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [0x576906b8], 0
jne 0x57677c81
cmp byte [0x5768efb4], 0
je 0x57677be9
push ebx
push 0x104
call sub.KERNEL32.dll_GetTempPathW
jmp 0x57677bf4
push 0x104
push ebx
call sub.KERNEL32.dll_GetSystemDirectoryW
test eax, eax
jne 0x57677c03
mov word [ebx], 0x2e
mov word [ebx + 2], 0
push ebx
call sub.KERNEL32.dll_lstrlenW
cmp word [ebx + eax*2 - 2], 0x5c
je 0x57677c1c
push 0x57677cbc
push ebx
call sub.KERNEL32.dll_lstrcatW
lea edx, [ebp - 0x44]
mov eax, dword [0x5768edd8]
call fcn.57667e90
push dword [ebp - 0x44]
push 0x57677cc8
lea edx, [ebp - 0x48]
mov eax, dword [0x5768edd0]
call fcn.57667e90
push dword [ebp - 0x48]
push 0x57677cd4
lea edx, [ebp - 0x4c]
mov eax, dword [0x5768eddc]
call fcn.57667e90
push dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov edx, 5
call fcn.57665858
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
call fcn.57665998
push eax
call fcn.5766f648
lea eax, [ebp - 0x40]
push eax
push ebx
call sub.KERNEL32.dll_lstrcatW
jmp 0x57677c8c
push 0x576906b8
push ebx
call sub.KERNEL32.dll_lstrcpyW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57677cb6
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.5766552c
lea eax, [ebp - 4]
call fcn.57665508
ret

Function at 0x57677cd8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.57665988
xor eax, eax
push ebp
push 0x57677d5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 4]
mov al, byte [ebx]
mov byte [ebp - 5], al
inc ebx
mov edx, dword [ebx]
mov eax, edi
call fcn.57665a80
add ebx, 4
mov esi, dword [edi]
mov al, byte [ebx]
cmp al, byte [ebp - 5]
jne 0x57677d35
inc ebx
mov eax, ebx
inc eax
movzx eax, byte [eax]
test eax, eax
jle 0x57677d30
mov dl, byte [ebx]
xor dl, 0x55
mov byte [esi], dl
inc esi
dec eax
jne 0x57677d25
add ebx, 2
jmp 0x57677d3b
xor al, 0x55
mov byte [esi], al
inc esi
inc ebx
mov eax, dword [edi]
call fcn.57665798
add eax, dword [edi]
cmp eax, esi
ja 0x57677d13
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57677d65
lea eax, [ebp - 4]
call fcn.57665508
ret
Function at 0x57678600
Capabilities:
Delete file
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x5767882d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x224]
mov eax, dword [0x5768ee00]
call fcn.57667e90
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
call fcn.57665c80
push dword [ebp - 0x220]
push 0x57678844
lea eax, [ebp - 0x228]
mov edx, esi
call fcn.57665c2c
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
mov edx, 3
call fcn.57665cac
mov eax, dword [ebp - 0x21c]
call fcn.57665c90
push eax
push SysReAllocStringLen
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x57678749
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
lea edx, [ebp - 0x22c]
mov eax, dword [0x5768ede8]
call fcn.57667e90
mov eax, dword [ebp - 0x22c]
call fcn.57665998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x576786ff
cmp dword [ebp - 8], 4
je 0x57678706
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5767870f
cmp dword [ebp - 4], 0
jbe 0x5767870f
dec dword [ebp - 4]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea edx, [ebp - 0x230]
mov eax, dword [0x5768ede8]
call fcn.57667e90
mov eax, dword [ebp - 0x230]
call fcn.57665998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x5767874e
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x576787e6
call fcn.57678010
test al, al
je 0x576787e9
push 0xf003f
push 0
push 0
call dword [0x5769091c]
mov edi, eax
test edi, edi
je 0x576787e9
push 0x101ff
push esi
push edi
call dword [0x57690920]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x576787cc
mov eax, dword [ebp - 4]
push eax
call dword [0x57690918]
mov ebx, eax
test ebx, ebx
je 0x576787c0
mov word [ebp - 0x216], 0
lea eax, [ebp - 0x216]
call fcn.57677ba0
lea eax, [ebp - 0x216]
push eax
call sub.KERNEL32.dll_DeleteFileW
mov eax, dword [ebp - 4]
push eax
call dword [0x5769090c]
jmp 0x576787dd
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x424
sete al
neg al
sbb ebx, ebx
push edi
call dword [0x5769090c]
jmp 0x576787e9
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57678834
lea eax, [ebp - 0x230]
mov edx, 2
call fcn.5766552c
lea eax, [ebp - 0x228]
call fcn.57665b14
lea eax, [ebp - 0x224]
call fcn.57665508
lea eax, [ebp - 0x220]
mov edx, 2
call fcn.57665b2c
ret
Function at 0x57678848
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.57665988
xor eax, eax
push ebp
push 0x57678915
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.57665998
push eax
push esi
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x576788e5
xor ebx, ebx
jmp 0x576788c2
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.5766576c
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 8]
call fcn.57678848
pop ecx
inc ebx
push 0x104
lea eax, [ebp - 0x10d]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegEnumKeyA
test eax, eax
je 0x57678898
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [ebp - 4]
call fcn.57665998
push eax
push esi
call sub.ADVAPI32.dll_RegDeleteKeyA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5767891c
lea eax, [ebp - 0x114]
call fcn.57665508
lea eax, [ebp - 4]
call fcn.57665508
ret
Function at 0x57679264
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff8f8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x704], edx
mov dword [ebp - 0x708], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x57679439
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov edi, 1
mov bl, 1
lea edx, [ebp - 0x704]
mov eax, dword [0x5768edcc]
call fcn.57667e90
mov eax, dword [ebp - 0x704]
push eax
lea eax, [ebp - 0x708]
mov edx, edi
add dl, 0x30
call fcn.576656f0
mov ecx, dword [ebp - 0x708]
lea eax, [ebp - 0x14]
pop edx
call fcn.576657e4
mov eax, dword [ebp - 0x14]
call fcn.57665998
push eax
push 0
push 4
call sub.KERNEL32.dll_OpenFileMappingA
mov esi, eax
test esi, esi
je 0x576793f4
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x576793ee
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x57679325
cmp eax, dword [esp]
pop edx
pop eax
jne 0x576793e5
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x576793e5
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x57679399
imul eax, dword [ebp - 8], 0x8f
mov edx, dword [ebp - 0x10]
push esi
push edi
lea esi, [edx + eax*8 + 0xc]
lea edi, [ebp - 0x700]
mov ecx, 0x11e
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp word [ebp - 0x700], 0
jne 0x57679382
mov bl, 1
jmp 0x576793e5
lea eax, [ebp - 0x700]
push eax
call sub.KERNEL32.dll_GetModuleHandleW
cmp eax, dword [ebp - 4]
jne 0x576793d9
mov byte [ebp - 9], 1
jmp 0x576793e5
imul eax, dword [ebp - 8], 0x4e
mov edx, dword [ebp - 0x10]
push esi
push edi
lea esi, [edx + eax*8 + 0xc]
lea edi, [ebp - 0x288]
mov ecx, 0x9c
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp byte [ebp - 0x288], 0
jne 0x576793c2
mov bl, 1
jmp 0x576793e5
lea eax, [ebp - 0x288]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
cmp eax, dword [ebp - 4]
jne 0x576793d9
mov byte [ebp - 9], 1
jmp 0x576793e5
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x57679349
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
or bl, byte [ebp - 9]
jne 0x57679403
inc edi
cmp edi, 0xa
jne 0x5767929b
cmp byte [ebp - 9], 0
jne 0x57679413
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.57679128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57679440
lea eax, [ebp - 0x708]
mov edx, 2
call fcn.5766552c
lea eax, [ebp - 0x14]
call fcn.57665508
ret
Function at 0x57679b64
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x57679bb8
push esi
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x57679ba1
test ebx, ebx
je 0x57679b99
push ebx
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x57679b99
push ebx
push esi
call sub.ADVAPI32.dll_EqualSid
test eax, eax
jne 0x57679b9d
xor eax, eax
jmp 0x57679bba
mov al, 1
jmp 0x57679bba
test ebx, ebx
je 0x57679bb3
push ebx
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x57679bb3
xor eax, eax
jmp 0x57679bba
mov al, 1
pop esi
pop ebx
ret
mov al, 1
pop esi
pop ebx
ret
Function at 0x5767a360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.5767a0a4
pop ecx
test al, al
jne 0x5767a488
push 0x104
lea eax, [ebp - 0x111]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.5767a0a4
pop ecx
test al, al
jne 0x5767a488
push 0x104
lea eax, [ebp - 0x111]
push eax
mov eax, dword [0x57690658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x57690658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.5767a0a4
pop ecx
test al, al
jne 0x5767a488
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x31c]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.5767a0a4
pop ecx
test al, al
jne 0x5767a488
push 0x104
lea eax, [ebp - 0x111]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
push 0x104
lea eax, [ebp - 0x31c]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.5767a0a4
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5767ab20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 8], 0
je 0x5767ab4b
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x5767ab5f
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
jne 0x5767ab63
xor eax, eax
jmp 0x5767ab65
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x5767acd4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
je 0x5767ad6b
push 2
lea ecx, [ebp - 2]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.5767aaf4
test al, al
je 0x5767ad6b
cmp word [ebp - 2], 0x5a4d
jne 0x5767ad6b
push 4
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.5767aaf4
test al, al
je 0x5767ad6b
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.5767aaf4
test al, al
je 0x5767ad6b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x5767ad6b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x5767ad6f
xor eax, eax
jmp 0x5767ad71
mov al, 1
test al, al
je 0x5767ad8e
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
movzx ecx, word [ebp - 2]
add edx, ecx
add edx, 0x78
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx], edx
pop ecx
pop ecx
pop ebp
ret
Function at 0x5767c654
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, eax
mov byte [ebp - 1], 0
push ebx
mov eax, dword [esi]
push eax
call fcn.5766cb08
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x149
push esi
push edi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x5767c7a2
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
mov eax, edi
add eax, 0x149
push eax
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x5767c7a2
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
mov eax, edi
add eax, 0x149
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 0xc]
push eax
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x5767c7a2
cmp dword [esi + 0x20], 0
je 0x5767c71d
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
mov eax, dword [esi + 0x20]
push eax
push ebx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x5767c7a2
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
lea eax, [edi + 0x24]
push eax
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x5767c7a2
mov byte [ebp - 1], 1
cmp dword [esi + 0x145], 0
je 0x5767c7a2
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
mov eax, dword [esi + 0x145]
dec eax
push eax
push ebx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x5767c7a2
cmp byte [ebp - 0x16], 0xe8
jne 0x5767c7a2
lea eax, [edi + 0x3c]
sub eax, dword [esi + 0x145]
sub eax, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x5767c7a2
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5767d070
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edx
push 0xffffffffffffffff
push 1
push 1
mov ecx, dword [ebp - 0x10]
xor edx, edx
call fcn.5767c7b0
mov ebx, eax
test bl, bl
je 0x5767d0b5
test esi, 4
jne 0x5767d0c0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_ResumeThread
jmp 0x5767d0c0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_TerminateProcess
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8