joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e86e8
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x28
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, ecx
mov ecx, dword [0x5bf1e4]
test ecx, ecx
jne 0x4e8715
cmp dword [0x5bf1dc], ecx
jne 0x4e8715
push edx
push eax
mov eax, dword [esi + 4]
push 0x113
push ebp
push eax
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop esi
pop ebp
add esp, 0x28
ret
cmp eax, 0xfffffff2
jne 0x4e8876
cmp dword [esi + 0x6a0], 0
jne 0x4e886e
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
push eax
push 0x5bf1a8
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4e8792
mov ecx, dword [0x5bf1dc]
push ecx
push ebp
call dword [sym.imp.USER32.dll_KillTimer]
or eax, 0xffffffff
push 0
mov dword [0x5b1020], eax
mov dword [0x5b1028], eax
mov dword [0x5b1024], eax
push ebp
push esi
mov eax, 1
mov dword [0x5bf1dc], 0
call fcn.004e6ba0
add esp, 0xc
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret
cmp dword [0x5b1020], 0
push ebx
push edi
jne 0x4e87b8
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
add esi, 8
push edx
mov eax, 0x5bf1a8
call fcn.004e70f0
add esp, 4
jmp 0x4e87d5
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push eax
add esi, 0x354
push esi
mov ebx, 0x5bf1a8
call fcn.004e7190
add esp, 8
cmp dword [0x5b1028], eax
mov dword [0x5b1024], eax
je 0x4e8867
mov ecx, dword [0x5bf1a8]
mov eax, dword [0x5bf1b0]
mov edx, dword [0x5bf1ac]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x5bf1b4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x18]
mov eax, esi
mov dword [esp + 0x1c], edx
call fcn.004e7260
lea edx, [esp + 0x28]
push edx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
neg eax
push eax
neg ecx
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
push ebp
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
push esi
or edx, 0xffffffff
lea eax, [esp + 0x1c]
mov esi, ebx
mov edi, ebp
call fcn.004e6450
add esp, 4
push ebx
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x5b1024]
pop edi
mov dword [0x5b1028], eax
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret
cmp eax, 0xfffd
jne 0x4e88a2
push ecx
push ebp
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0x37
push 0xfffe
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
mov dword [0x5bf1e4], eax
xor eax, eax
pop ebp
add esp, 0x28
ret
cmp eax, 0xfffe
jne 0x4e8900
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea ecx, [esp + 8]
push ecx
push ebp
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx edx, word [esp + 0xc]
movzx eax, word [esp + 8]
shl edx, 0x10
or edx, eax
push edx
push 1
push ebp
push esi
call fcn.004e7f80
mov eax, dword [0x5b102c]
add esp, 0x10
cmp eax, 0xffffffff
je 0x4e88f8
mov edx, dword [0x5bf1e0]
push 0
push eax
push ebp
call fcn.004e54a0
add esp, 0xc
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret
mov ecx, dword [esi + 4]
push edx
push eax
push 0x113
push ebp
push ecx
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop esi
pop ebp
add esp, 0x28
ret
Function at 0x4ef121
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4ef15a
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ef0e4
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004edc59
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4f0dcd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4f0e10
call fcn.004f3785
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4f0e10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4f0e2b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004f0987
test ebx, ebx
mov esi, eax
je 0x4f0e29
test edi, edi
je 0x4f0e29
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4f5e6b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x543830
call fcn.00517415
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.004f3785
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4f5eb6
call fcn.004f3785
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4f5ec7
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4f5ed4
or eax, 0xffffffff
jmp 0x4f6030
mov ecx, esi
call fcn.004f59bd
mov dword [ebp - 0x14], eax
call fcn.004ede08
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4f5f52
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4f5f52
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4f5f52
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00418d40
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4f5f52
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4f5f52
mov ecx, ebx
call fcn.004f3a74
test eax, eax
je 0x4f5f52
push 0
mov ecx, ebx
call fcn.004f3a8f
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004efb05
push dword [ebp - 0x14]
call fcn.004edd60
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004f5c73
xor edi, edi
cmp eax, edi
je 0x4f5faf
test byte [esi + 0x3c], 0x10
je 0x4f5f99
push 4
pop edi
mov ecx, esi
call fcn.004f390e
test ax, 0x100
je 0x4f5f8f
push 5
pop edi
push edi
mov ecx, esi
call fcn.004ed903
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4f5faf
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004f3c62
or dword [ebp - 4], 0xffffffff
jmp 0x4f5fda
cmp dword [ebp - 0x28], edi
je 0x4f5fe8
push 1
mov ecx, ebx
call fcn.004f3a8f
cmp dword [ebp - 0x2c], edi
je 0x4f5ff8
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4f6011
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4f6011
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004f59f7
cmp dword [esi + 0x58], edi
je 0x4f602d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.005174ba
ret
Function at 0x4f6061
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004f3785
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4f6098
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004f5c73
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push 4
mov eax, 0x5438f1
call fcn.005173e2
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebx, eax
shl ebx, 0x10
cmp dword [ebp + 0x10], esi
je 0x4f6bee
or ebx, 0x1000000
mov ecx, dword [ebp + 8]
call fcn.00417a50
push 0x40
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
pop esi
mov ecx, dword [ebp + 8]
add esi, esi
push esi
call fcn.004ef0e4
lea ecx, [esi + 1]
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ecx, dword [ebp + 8]
mov edi, eax
push edi
call fcn.004edc59
cmp edi, esi
je 0x4f6c03
mov eax, dword [ebp + 8]
call fcn.005174ba
ret

Function at 0x4fe9b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5b2920]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x4fe9ed
push 0x560d08
push 4
push eax
call fcn.00511261
push eax
call fcn.00416440
add esp, 0x10
jmp 0x4fe9ff
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4fea6a
push edi
call fcn.00512b38
mov edi, dword [eax]
call fcn.00512b38
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0051470a
add esp, 0x18
mov ebx, eax
call fcn.00512b38
cmp dword [eax], 0
je 0x4fea4a
call fcn.00512b38
push dword [eax]
call fcn.004ce080
pop ecx
jmp 0x4fea51
call fcn.00512b38
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4fea6a
cmp ebx, esi
jae 0x4fea6a
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4fea6c
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0050fe87
leave
ret
Function at 0x500535
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x50057b
call fcn.004f3785
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x50057b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x5005be
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x5005a7
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x5005a7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x5005bb
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x503dce
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x503dfc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x503e1a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00503d38
jmp 0x503e1a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x503e1a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00503d38
test edi, edi
mov eax, edi
jne 0x503e04
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5c10f0]
test ecx, ecx
je 0x503edd
jmp 0x503dcd
ret 8

Function at 0x50fe87
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5b2920]
jne 0x50fe91
repz ret
jmp fcn.0051ae38
Function at 0x51247d
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 0x5124ba
cmp dword [ebp + 0x14], edi
je 0x5124ba
cmp ecx, edi
jne 0x5124c1
call fcn.00512b38
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0051024c
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x5124d5
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x5124f6
cmp ebx, 0xffffffff
je 0x5124e5
push ebx
push edi
push ecx
call fcn.00516c20
add esp, 0xc
cmp esi, edi
je 0x5124a2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x5124a2
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x512512
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x512519
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x51260a
test word [esi + 0xc], 0x10c
je 0x51256d
mov eax, dword [esi + 4]
test eax, eax
je 0x51256d
jl 0x51266b
cmp ebx, eax
mov edi, ebx
jb 0x51253e
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x512612
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0050fbcd
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 0x512602
cmp ebx, dword [ebp - 0xc]
jb 0x5125da
cmp dword [ebp - 0xc], 0
je 0x512597
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x51258c
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x512593
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x5125a2
mov eax, SysReAllocString
cmp ebx, eax
ja 0x5125a2
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x51263e
push eax
push dword [ebp - 8]
push esi
call fcn.00519528
pop ecx
push eax
call fcn.00520745
add esp, 0xc
test eax, eax
je 0x51267d
cmp eax, 0xffffffff
je 0x51266b
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x512602
push esi
call fcn.0051ef01
cmp eax, 0xffffffff
pop ecx
je 0x51266f
cmp dword [ebp - 4], 0
je 0x51263e
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 0x512521
mov eax, dword [ebp + 0x14]
jmp 0x5124bc
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x512629
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00516c20
add esp, 0xc
call fcn.00512b38
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x5124b2
cmp dword [ebp + 0xc], 0xffffffff
je 0x512654
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00516c20
add esp, 0xc
call fcn.00512b38
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x5124b2
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x5124bc
or dword [esi + 0xc], 0x10
jmp 0x51266f
Function at 0x5139d2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x5139ff
call fcn.00512b4b
mov dword [eax], esi
call fcn.00512b38
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0051024c
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x5139db
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x513a2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00512b5e
pop ecx
call fcn.00512b38
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x513a55
test al, 1
je 0x513a55
test byte [esp + 0xc], 2
je 0x513a55
call fcn.00512b4b
mov dword [eax], 5
call fcn.00512b38
mov dword [eax], 0xd
jmp 0x513a25
xor eax, eax
pop esi
ret

Function at 0x519ac6
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 + 0x5b2940]
je 0x519ae1
inc edi
cmp edi, 0x17
jb 0x519ad2
cmp edi, 0x17
jae 0x519c61
push ebp
push 3
call fcn.00529bce
cmp eax, 1
pop ecx
je 0x519c2d
push 3
call fcn.00529bce
test eax, eax
pop ecx
jne 0x519b15
cmp dword [0x5b2724], 1
je 0x519c2d
cmp ebx, 0xfc
je 0x519c60
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5c11c0
push ebp
call fcn.00514399
add esp, 0xc
test eax, eax
je 0x519b4b
push esi
push esi
push esi
push esi
push esi
call fcn.00510150
add esp, 0x14
push 0x104
mov esi, 0x5c11d9
push esi
push 0
mov byte [0x5c12dd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x519b8f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00514399
add esp, 0xc
test eax, eax
je 0x519b8f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00510150
add esp, 0x14
push esi
call fcn.005175d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x519bd4
push esi
call fcn.005175d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5c14d4
push 0x56301c
sub ecx, eax
push ecx
push eax
call fcn.00524c26
add esp, 0x14
test eax, eax
je 0x519bd4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00510150
add esp, 0x14
jmp 0x519bd6
xor esi, esi
push 0x563018
push ebx
push ebp
call fcn.00513072
add esp, 0xc
test eax, eax
je 0x519bf6
push esi
push esi
push esi
push esi
push esi
call fcn.00510150
add esp, 0x14
push dword [edi*8 + 0x5b2944]
push ebx
push ebp
call fcn.00513072
add esp, 0xc
test eax, eax
je 0x519c18
push esi
push esi
push esi
push esi
push esi
call fcn.00510150
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00529a11
add esp, 0xc
jmp 0x519c60
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x519c60
cmp ebp, 0xffffffff
je 0x519c60
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5b2944]
push dword [esi]
call fcn.005175d0
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 0x529a11
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0051a676
xor ebx, ebx
cmp dword [0x5c1cd8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x529ae7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x529bc7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x529bc7
push eax
call fcn.0051a608
mov dword [esp], 0x564538
push edi
mov dword [0x5c1cd8], eax
call esi
push eax
call fcn.0051a608
mov dword [esp], 0x564524
push edi
mov dword [0x5c1cdc], eax
call esi
push eax
call fcn.0051a608
mov dword [0x5c1ce0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00514e36
test eax, eax
pop ecx
pop ecx
je 0x529ab5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00510150
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x529ae7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0051a608
cmp eax, ebx
pop ecx
mov dword [0x5c1ce8], eax
je 0x529ae7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0051a608
pop ecx
mov dword [0x5c1ce4], eax
mov eax, dword [0x5c1ce4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x529b6c
cmp dword [0x5c1ce8], ecx
je 0x529b6c
push eax
call fcn.0051a67f
push dword [0x5c1ce8]
mov esi, eax
call fcn.0051a67f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x529b6c
cmp edi, ebx
je 0x529b6c
call esi
cmp eax, ebx
je 0x529b39
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x529b39
test byte [ebp - 0x18], 1
jne 0x529b6c
lea eax, [ebp - 0x10]
push eax
call fcn.00514e6d
test eax, eax
pop ecx
je 0x529b54
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00510150
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x529b63
or dword [ebp + 0x10], 0x200000
jmp 0x529ba7
or dword [ebp + 0x10], 0x40000
jmp 0x529ba7
mov eax, dword [0x5c1cdc]
cmp eax, dword [ebp - 8]
je 0x529ba7
push eax
call fcn.0051a67f
cmp eax, ebx
pop ecx
je 0x529ba7
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x529ba7
mov eax, dword [0x5c1ce0]
cmp eax, dword [ebp - 8]
je 0x529ba7
push eax
call fcn.0051a67f
cmp eax, ebx
pop ecx
je 0x529ba7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5c1cd8]
call fcn.0051a67f
cmp eax, ebx
pop ecx
je 0x529bc7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x529bc9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x54233e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5b2920]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0054227d
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.00516c20
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 0x54238d
cmp dword [ebp - 0x1c], 5
jb 0x5423a5
jmp 0x5423a1
cmp dword [ebp - 0x10], 1
jne 0x5423a5
cmp dword [ebp - 0x1c], 4
ja 0x5423a1
jne 0x5423a5
cmp dword [ebp - 0x18], 0
jbe 0x5423a5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x565ff4
call fcn.00470b40
test eax, eax
jge 0x5423c6
mov byte [0x5c3444], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0050fe87
add ebp, 0x78
leave
ret

Function at 0x5425e8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5c2130], 0
push esi
jne 0x54255b
call fcn.00542486
test eax, eax
je 0x54259e
mov eax, dword [0x5c2130]
cmp eax, 1
jne 0x54257c
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x54259e
pop esi
ret
push eax
call dword [0x5c2138]
test eax, eax
jne 0x5425e6
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 0x5425a2
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5c2130]
call dword [0x5c2138]
mov edi, eax
test edi, edi
je 0x5425c9
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x5425e5
lea edi, [esi + 0xff0]
push esi
push dword [0x5c2130]
call dword [0x5c2134]
add esi, 0x10
cmp esi, edi
jb 0x5425cf
mov eax, esi
pop edi
pop esi
ret
jmp 0x542548