joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce3c0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x104
mov eax, dword [0x5a8cf0]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 8]
push str.QTMLInitTermMutex_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x4ce40d
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x5aec08]
test eax, eax
jg 0x4ce422
mov dword [0x5aec08], 0
jmp 0x4ce445
sub eax, 1
test eax, eax
mov dword [0x5aec08], eax
jg 0x4ce445
call fcn.004ce070
call fcn.004ce2a0
mov edx, dword [0x5aec0c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x4ce457
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x104]
pop esi
xor ecx, esp
call fcn.0051674d
add esp, 0x104
ret

Function at 0x4d1610
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], eax
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d16b7
mov eax, dword [esp + 4]
test eax, eax
je 0x4d16c6
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d16b7
cmp byte [esi], al
je 0x4d16b7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4d1671
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x4d16b7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4d1688
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
je 0x4d16b7
add esi, 0xffffffff
lea ecx, [ecx]
mov al, byte [esi + 1]
add esi, 1
test al, al
jne 0x4d16a0
mov ax, word [0x55c760]
push edi
mov edi, esi
mov word [edi], ax
pop edi
mov eax, dword [esp + 4]
test eax, eax
je 0x4d16c6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
Function at 0x4d16d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x5a8cf0]
xor eax, esp
mov dword [esp + 0x104], eax
mov ecx, dword [esp + 0x114]
push esi
mov esi, dword [esp + 0x110]
xor eax, eax
test esi, esi
je 0x4d1854
test ecx, ecx
mov byte [esi], al
je 0x4d1705
mov dword [ecx], eax
push ebx
push edi
push str.QuickTime.qts
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov ebx, dword [esp + 0x11c]
je 0x4d1771
push 0x104
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x4d1771
lea eax, [esp + 0xc]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4d1740
sub eax, edx
lea edi, [eax - 0xd]
test edi, edi
jbe 0x4d1771
lea edx, [edi + 1]
cmp ebx, edx
jbe 0x4d1771
push edi
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00519e40
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x4d17f8
cmp byte [esi], 0
jne 0x4d17fd
push ebx
push esi
push str.QTSysDir
push str.SoftwareApple_Computer__Inc.QuickTime
call fcn.004d1610
add esp, 0x10
cmp byte [esi], 0
je 0x4d17a2
push 0
push esi
call fcn.0051c342
add esp, 8
test eax, eax
je 0x4d17a5
mov byte [esi], 0
cmp byte [esi], 0
jne 0x4d17fd
push ebx
push esi
push str.QuickTime.qts_folder
push str.SoftwareApple_Computer__Inc.QuickTime
call fcn.004d1610
add esp, 0x10
cmp byte [esi], 0
je 0x4d17d2
push 0
push esi
call fcn.0051c342
add esp, 8
test eax, eax
je 0x4d17d5
mov byte [esi], 0
cmp byte [esi], 0
jne 0x4d17fd
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x4d17f5
push 0
push esi
call fcn.0051c342
add esp, 8
test eax, eax
je 0x4d17f8
mov byte [esi], 0
cmp byte [esi], 0
je 0x4d184b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4d1802
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x4d184b
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4d1820
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
je 0x4d184b
mov edi, esi
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4d1837
mov cx, word [0x55c760]
mov word [edi], cx
xor eax, eax
cmp byte [esi], al
pop edi
setne al
pop ebx
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.0051674d
add esp, 0x108
ret
Function at 0x4d18a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5a8cf0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push esi
mov esi, dword [esp + 0x21c]
push esi
push ebx
push str.QTExtDir
push str.SoftwareApple_Computer__Inc.QuickTime
call fcn.004d1610
add esp, 0x10
cmp byte [ebx], 0
jne 0x4d19ef
add esi, 0xfffffff6
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10c]
push esi
push ecx
call fcn.004d1870
add esp, 8
cmp byte [esp + 0x10c], 0
je 0x4d19ef
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4d1916
sub eax, edx
cmp byte [esp + eax + 7], 0x5c
je 0x4d1965
lea eax, [esp + 8]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4d1930
sub eax, edx
cmp byte [esp + eax + 7], 0x2f
je 0x4d1965
push edi
lea edi, [esp + 0xc]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4d1950
mov dx, word [0x55c760]
mov word [edi], dx
pop edi
lea eax, [esp + 0x10c]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4d1972
lea edx, [esp + 0x10c]
lea ecx, [esp + 8]
lea esp, [esp]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4d19b0
test al, al
je 0x4d19ac
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4d19b0
add ecx, 2
add edx, 2
test al, al
jne 0x4d1990
xor eax, eax
jmp 0x4d19b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d19ef
mov eax, ebx
add eax, 0xffffffff
mov edi, edi
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4d19c0
mov edx, dword [str.QuickTime_]
mov dword [eax], edx
mov ecx, dword [0x57487c]
mov dword [eax + 4], ecx
mov dx, word [0x574880]
mov word [eax + 8], dx
mov cl, byte [0x574882]
mov byte [eax + 0xa], cl
mov eax, ebx
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4d19f6
mov ecx, dword [esp + 0x208]
xor ecx, esp
sub eax, edx
call fcn.0051674d
add esp, 0x20c
ret
Function at 0x4d5ae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541912
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x18], ecx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.004d37c0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0xc
call fcn.004da960
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
call fcn.004da960
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 0x18]
mov byte [ecx + 0x24], 0
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x25], 0
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x26], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x28], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x30], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x34
call fcn.004e1be0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x7c
call fcn.004da7f0
push SysReAllocString
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0x84
call fcn.004da940
mov edx, dword [ebp - 0x18]
fld qword [0x5542a8]
fstp qword [edx + 0x8c]
cmp dword [ebp + 0x18], 0
je 0x4d5c11
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
call fcn.00517778
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x14], 0
je 0x4d5c11
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
call fcn.00518f10
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4d5c30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54192f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x18], ecx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.004d3860
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0xc
call fcn.004da960
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
call fcn.004da960
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 0x18]
mov byte [ecx + 0x24], 0
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x25], 0
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x26], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x28], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x30], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x34
call fcn.004e1be0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x7c
call fcn.004da7f0
push SysReAllocString
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0x84
call fcn.004da940
mov edx, dword [ebp - 0x18]
fld qword [0x5542a8]
fstp qword [edx + 0x8c]
cmp dword [ebp + 0x18], 0
je 0x4d5d61
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
call fcn.00517778
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x14], 0
je 0x4d5d61
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
call fcn.00518f10
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x51674d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5a8cf0]
jne 0x516757
repz ret
jmp fcn.0051dbf7

Function at 0x519275
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x5192a2
call fcn.0051e768
mov dword [eax], esi
call fcn.0051e755
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005181e7
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x51927e
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5192d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0051e77b
pop ecx
call fcn.0051e755
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x5192f8
test al, 1
je 0x5192f8
test byte [esp + 0xc], 2
je 0x5192f8
call fcn.0051e768
mov dword [eax], 5
call fcn.0051e755
mov dword [eax], 0xd
jmp 0x5192c8
xor eax, eax
pop esi
ret
Function at 0x51a08c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x51a0c9
cmp dword [ebp + 0x14], edi
je 0x51a0c9
cmp ecx, edi
jne 0x51a0d0
call fcn.0051e755
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.005181e7
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x51a0e4
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x51a105
cmp ebx, 0xffffffff
je 0x51a0f4
push ebx
push edi
push ecx
call fcn.00516810
add esp, 0xc
cmp esi, edi
je 0x51a0b1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x51a0b1
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x51a121
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x51a128
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x51a219
test word [esi + 0xc], 0x10c
je 0x51a17c
mov eax, dword [esi + 4]
test eax, eax
je 0x51a17c
jl 0x51a27a
cmp ebx, eax
mov edi, ebx
jb 0x51a14d
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x51a221
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00516a83
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x51a211
cmp ebx, dword [ebp - 0xc]
jb 0x51a1e9
cmp dword [ebp - 0xc], 0
je 0x51a1a6
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x51a19b
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x51a1a2
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x51a1b1
mov eax, SysReAllocString
cmp ebx, eax
ja 0x51a1b1
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x51a24d
push eax
push dword [ebp - 8]
push esi
call fcn.00522cd8
pop ecx
push eax
call fcn.00527511
add esp, 0xc
test eax, eax
je 0x51a28c
cmp eax, 0xffffffff
je 0x51a27a
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x51a211
push esi
call fcn.00526e30
cmp eax, 0xffffffff
pop ecx
je 0x51a27e
cmp dword [ebp - 4], 0
je 0x51a24d
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x51a130
mov eax, dword [ebp + 0x14]
jmp 0x51a0cb
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x51a238
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00516810
add esp, 0xc
call fcn.0051e755
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x51a0c1
cmp dword [ebp + 0xc], 0xffffffff
je 0x51a263
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00516810
add esp, 0xc
call fcn.0051e755
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x51a0c1
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x51a0cb
or dword [esi + 0xc], 0x10
jmp 0x51a27e
Function at 0x51c2bb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x51c2e8
call fcn.0051e768
mov dword [eax], esi
call fcn.0051e755
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005181e7
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x51c2c4
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x51c317
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0051e77b
pop ecx
call fcn.0051e755
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x51c33e
test al, 1
je 0x51c33e
test byte [esp + 0xc], 2
je 0x51c33e
call fcn.0051e768
mov dword [eax], 5
call fcn.0051e755
mov dword [eax], 0xd
jmp 0x51c30e
xor eax, eax
pop esi
ret

Function at 0x51f843
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5a9388]
je 0x51f85e
inc edi
cmp edi, 0x17
jb 0x51f84f
cmp edi, 0x17
jae 0x51f9de
push ebp
push 3
call fcn.005326bb
cmp eax, 1
pop ecx
je 0x51f9aa
push 3
call fcn.005326bb
test eax, eax
pop ecx
jne 0x51f892
cmp dword [0x5a9050], 1
je 0x51f9aa
cmp ebx, 0xfc
je 0x51f9dd
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5af1e8
push ebp
call fcn.00519f64
add esp, 0xc
test eax, eax
je 0x51f8c8
push esi
push esi
push esi
push esi
push esi
call fcn.005180eb
add esp, 0x14
push 0x104
mov esi, 0x5af201
push esi
push 0
mov byte [0x5af305], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x51f90c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00519f64
add esp, 0xc
test eax, eax
je 0x51f90c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.005180eb
add esp, 0x14
push esi
call fcn.00521fd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x51f951
push esi
call fcn.00521fd0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5af4fc
push 0x576108
sub ecx, eax
push ecx
push eax
call fcn.00528e66
add esp, 0x14
test eax, eax
je 0x51f951
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.005180eb
add esp, 0x14
jmp 0x51f953
xor esi, esi
push 0x561a24
push ebx
push ebp
call fcn.00528daa
add esp, 0xc
test eax, eax
je 0x51f973
push esi
push esi
push esi
push esi
push esi
call fcn.005180eb
add esp, 0x14
push dword [edi*8 + 0x5a938c]
push ebx
push ebp
call fcn.00528daa
add esp, 0xc
test eax, eax
je 0x51f995
push esi
push esi
push esi
push esi
push esi
call fcn.005180eb
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005324fe
add esp, 0xc
jmp 0x51f9dd
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x51f9dd
cmp ebp, 0xffffffff
je 0x51f9dd
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5a938c]
push dword [esi]
call fcn.00521fd0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x5324fe
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00520a3f
xor ebx, ebx
cmp dword [0x5af800], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x5325d4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5326b4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x5326b4
push eax
call fcn.005209d1
mov dword [esp], 0x57ef54
push edi
mov dword [0x5af800], eax
call esi
push eax
call fcn.005209d1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5af804], eax
call esi
push eax
call fcn.005209d1
mov dword [0x5af808], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0051b960
test eax, eax
pop ecx
pop ecx
je 0x5325a2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005180eb
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x5325d4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.005209d1
cmp eax, ebx
pop ecx
mov dword [0x5af810], eax
je 0x5325d4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005209d1
pop ecx
mov dword [0x5af80c], eax
mov eax, dword [0x5af80c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x532659
cmp dword [0x5af810], ecx
je 0x532659
push eax
call fcn.00520a48
push dword [0x5af810]
mov esi, eax
call fcn.00520a48
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x532659
cmp edi, ebx
je 0x532659
call esi
cmp eax, ebx
je 0x532626
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x532626
test byte [ebp - 0x18], 1
jne 0x532659
lea eax, [ebp - 0x10]
push eax
call fcn.0051b997
test eax, eax
pop ecx
je 0x532641
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005180eb
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x532650
or dword [ebp + 0x10], 0x200000
jmp 0x532694
or dword [ebp + 0x10], 0x40000
jmp 0x532694
mov eax, dword [0x5af804]
cmp eax, dword [ebp - 8]
je 0x532694
push eax
call fcn.00520a48
cmp eax, ebx
pop ecx
je 0x532694
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x532694
mov eax, dword [0x5af808]
cmp eax, dword [ebp - 8]
je 0x532694
push eax
call fcn.00520a48
cmp eax, ebx
pop ecx
je 0x532694
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5af800]
call fcn.00520a48
cmp eax, ebx
pop ecx
je 0x5326b4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5326b6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5384f4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5af8e4], 0
push esi
jne 0x538467
call fcn.00538392
test eax, eax
je 0x5384aa
mov eax, dword [0x5af8e4]
cmp eax, 1
jne 0x538488
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5384aa
pop esi
ret
push eax
call dword [0x5af8ec]
test eax, eax
jne 0x5384f2
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x5384ae
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5af8e4]
call dword [0x5af8ec]
mov edi, eax
test edi, edi
je 0x5384d5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x5384f1
lea edi, [esi + 0xff0]
push esi
push dword [0x5af8e4]
call dword [0x5af8e8]
add esi, 0x10
cmp esi, edi
jb 0x5384db
mov eax, esi
pop edi
pop esi
ret
jmp 0x538454

Function at 0x53868a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5a8cf0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0053861f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00516810
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x5386d9
cmp dword [ebp - 0x1c], 5
jb 0x5386f1
jmp 0x5386ed
cmp dword [ebp - 0x10], 1
jne 0x5386f1
cmp dword [ebp - 0x1c], 4
ja 0x5386ed
jne 0x5386f1
cmp dword [ebp - 0x18], 0
jbe 0x5386f1
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x57f090
call fcn.004015e0
test eax, eax
jge 0x538712
mov byte [0x5aa998], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0051674d
add ebp, 0x78
leave
ret