joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fe1f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x828
mov eax, dword [0x5b3720]
xor eax, esp
mov dword [esp + 0x824], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
lea eax, [esp + 0x10]
push eax
xor esi, esi
push 0x108
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionMMDevicesAudioRender
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], esi
call ebx
test eax, eax
jne 0x4fe3fb
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x20], esi
lea ebp, [esi + 4]
mov eax, dword [esp + 0x20]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x448]
push edx
push eax
push ecx
mov dword [esp + 0x50], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4fe3ca
lea edx, [esp + 0x434]
push edx
lea eax, [esp + 0x38]
push 0x200
push eax
call fcn.00525931
push str.Properties
lea ecx, [esp + 0x44]
push 0x200
push ecx
call fcn.0052599d
mov ecx, dword [esp + 0x30]
add esp, 0x18
lea edx, [esp + 0x10]
push edx
push 0x101
push 0
lea eax, [esp + 0x40]
push eax
push ecx
call ebx
test eax, eax
jne 0x4fe3d2
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push str.b3f8fa53_0004_438e_9003_51a46e139bfc_6
push edx
mov dword [esp + 0x2c], 0x400
call edi
test eax, eax
jne 0x4fe30b
lea eax, [esp + 0x34]
push 0x581370
push eax
call fcn.005258d3
add esp, 8
test eax, eax
je 0x4fe30b
mov esi, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4fe3d2
push str.FXProperties
lea edx, [esp + 0x438]
push 0x200
push edx
call fcn.0052599d
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x101
push 0
lea ecx, [esp + 0x440]
push ecx
push edx
call ebx
test eax, eax
jne 0x4fe3d2
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push str.082C429A_5A10_48ea_BE3D_DBC80F014519_6
push eax
mov dword [esp + 0x2c], ebp
call edi
test eax, eax
jne 0x4fe3bd
mov ecx, dword [esp + 0x1c]
or dword [0x5c479c], ecx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push str.082C429A_5A10_48ea_BE3D_DBC80F014519_0
push edx
mov dword [esp + 0x44], 1
mov dword [esp + 0x2c], ebp
call edi
test eax, eax
jne 0x4fe3bd
mov eax, dword [esp + 0x1c]
or dword [0x5c47a0], eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4fe3d2
mov dword [esp + 0x28], 1
add dword [esp + 0x20], 1
xor esi, esi
cmp dword [esp + 0x28], esi
je 0x4fe248
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x2c], esi
pop edi
pop ebp
je 0x4fe3fb
call fcn.004fdca0
mov ecx, dword [esp + 0x82c]
pop esi
pop ebx
xor ecx, esp
call fcn.00524c67
add esp, 0x828
ret
Function at 0x4fe420
Capabilities:
Create thread
Resume thread

Disassembly:
cmp dword [0x5c4824], 0
jne 0x4fe495
push 0
push 4
push 0x5c4798
push 0x4fdee0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x5c4820], eax
jne 0x4fe455
mov dword [0x5c4808], 1
ret
push 0
push 0
push 1
push 0
mov dword [0x5c4808], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x5c4824], eax
mov eax, dword [0x5c4820]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0x5c4820]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
ret

Function at 0x5024c1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x5024fa
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.00502484
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00417160
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x504162
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 0x5041a5
call fcn.00506c00
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5041a5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5041c0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00503d1c
test ebx, ebx
mov esi, eax
je 0x5041be
test edi, edi
je 0x5041be
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x50496e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x53f76e
call fcn.005270ea
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.00506c00
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x5049b9
call fcn.00506c00
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 0x5049ca
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x5049d7
or eax, 0xffffffff
jmp 0x504b33
mov ecx, esi
call fcn.005044b5
mov dword [ebp - 0x14], eax
call fcn.00501363
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x504a55
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x504a55
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x504a55
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00404540
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x504a55
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x504a55
mov ecx, ebx
call fcn.00505435
test eax, eax
je 0x504a55
push 0
mov ecx, ebx
call fcn.00505450
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00502ec6
push dword [ebp - 0x14]
call fcn.005012bb
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00504776
xor edi, edi
cmp eax, edi
je 0x504ab2
test byte [esi + 0x3c], 0x10
je 0x504a9c
push 4
pop edi
mov ecx, esi
call fcn.005052f2
test ax, 0x100
je 0x504a92
push 5
pop edi
push edi
mov ecx, esi
call fcn.00500e83
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x504ab2
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00505623
or dword [ebp - 4], 0xffffffff
jmp 0x504add
cmp dword [ebp - 0x28], edi
je 0x504aeb
push 1
mov ecx, ebx
call fcn.00505450
cmp dword [ebp - 0x2c], edi
je 0x504afb
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x504b14
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x504b14
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.005044ef
cmp dword [esi + 0x58], edi
je 0x504b30
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0052718f
ret
Function at 0x505932
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x53f805
call fcn.005270b7
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x505957
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x5059a3
call fcn.005081a0
push eax
lea ecx, [ebp - 0x10]
call fcn.004025f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00504c54
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401610
mov eax, esi
call fcn.0052718f
ret 8

Function at 0x50a5dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x50a5f3
mov edi, dword [esi + 0xc]
jmp 0x50a633
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x50a60c
call fcn.005071a6
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x50a621
call fcn.005071a6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x50a633
call fcn.005071a6
call fcn.00506c00
cmp dword [eax + 0x3c], 0
je 0x50a648
push edi
mov ecx, ebx
call fcn.005095cf
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0050a4f7
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x50a666
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x50a672
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x50def0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.00506c00
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x50df1b
xor eax, eax
jmp 0x50dfbf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x50df14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x50df14
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fe8de
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x50df70
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x50df5f
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0050cceb
push edi
mov ebx, eax
call fcn.004fe90e
test ebx, ebx
pop ecx
je 0x50dfb2
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0050d3d6
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0050d488
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x50f273
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x5b3720]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x50f311
push 0x560e3c
push 4
push eax
call fcn.00525931
push eax
call fcn.00406190
add esp, 0x10
push ebx
push edi
call fcn.0052746d
mov edi, dword [eax]
call fcn.0052746d
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00526c18
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0052746d
cmp dword [eax], ebx
je 0x50f328
call fcn.0052746d
push dword [eax]
call fcn.004fe913
pop ecx
jmp 0x50f32f
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x50f2c2
jmp 0x50f3a1
call fcn.0052746d
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x50f39d
cmp dword [ebp - 0x40], esi
jae 0x50f39d
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00526c60
add esp, 0xc
push 0x55e8fc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x50f38f
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x50f38f
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x50f38f
push ebx
push ebx
push esi
jmp 0x50f395
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x50f39f
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.00524c67
add ebp, 0x1f4
leave
ret
Function at 0x50fb48
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5b3720]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x50fb7b
xor eax, eax
jmp 0x50fbce
lea eax, [ebp - 0x210]
push eax
call fcn.00526cda
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x50fbac
push 0x56a3d4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0052599d
add esp, 0xc
test eax, eax
jne 0x50fb77
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0052599d
add esp, 0xc
test eax, eax
jne 0x50fb77
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00524c67
leave
ret

Function at 0x5129b5
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 0x5129fb
call fcn.00506c00
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5129fb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x512a3e
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 0x512a27
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 0x512a27
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x512a3b
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 0x524c67
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5b3720]
jne 0x524c71
repz ret
jmp fcn.0052b12e
Function at 0x529d87
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 + 0x5b38b0]
je 0x529da2
inc edi
cmp edi, 0x17
jb 0x529d93
cmp edi, 0x17
jae 0x529f22
push ebp
push 3
call fcn.00533fd0
cmp eax, 1
pop ecx
je 0x529eee
push 3
call fcn.00533fd0
test eax, eax
pop ecx
jne 0x529dd6
cmp dword [0x5b3678], 1
je 0x529eee
cmp ebx, 0xfc
je 0x529f21
push 0x5633e8
mov ebx, 0x314
push ebx
mov ebp, 0x5be1c0
push ebp
call fcn.00533f6b
add esp, 0xc
test eax, eax
je 0x529e0c
push esi
push esi
push esi
push esi
push esi
call fcn.0052614f
add esp, 0x14
push 0x104
mov esi, 0x5be1d9
push esi
push 0
mov byte [0x5be2dd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x529e50
push 0x5633d0
push 0x2fb
push esi
call fcn.00533f6b
add esp, 0xc
test eax, eax
je 0x529e50
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0052614f
add esp, 0x14
push esi
call fcn.00533ee0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x529e95
push esi
call fcn.00533ee0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5be4d4
push 0x5633cc
sub ecx, eax
push ecx
push eax
call fcn.00533e23
add esp, 0x14
test eax, eax
je 0x529e95
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0052614f
add esp, 0x14
jmp 0x529e97
xor esi, esi
push 0x5633c8
push ebx
push ebp
call fcn.00533db2
add esp, 0xc
test eax, eax
je 0x529eb7
push esi
push esi
push esi
push esi
push esi
call fcn.0052614f
add esp, 0x14
push dword [edi*8 + 0x5b38b4]
push ebx
push ebp
call fcn.00533db2
add esp, 0xc
test eax, eax
je 0x529ed9
push esi
push esi
push esi
push esi
push esi
call fcn.0052614f
add esp, 0x14
push 0x12010
push 0x5633a0
push ebp
call fcn.00533bf5
add esp, 0xc
jmp 0x529f21
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x529f21
cmp ebp, 0xffffffff
je 0x529f21
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5b38b4]
push dword [esi]
call fcn.00533ee0
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 0x533bf5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0052a94b
xor ebx, ebx
cmp dword [0x5becc4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x533ccb
push 0x5638c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x533dab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5638b8
push edi
call esi
cmp eax, ebx
je 0x533dab
push eax
call fcn.0052a8dd
mov dword [esp], 0x5638a8
push edi
mov dword [0x5becc4], eax
call esi
push eax
call fcn.0052a8dd
mov dword [esp], 0x563894
push edi
mov dword [0x5becc8], eax
call esi
push eax
call fcn.0052a8dd
mov dword [0x5beccc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00528fc4
test eax, eax
pop ecx
pop ecx
je 0x533c99
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0052614f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x533ccb
push 0x563878
push edi
call esi
push eax
call fcn.0052a8dd
cmp eax, ebx
pop ecx
mov dword [0x5becd4], eax
je 0x533ccb
push 0x563860
push edi
call esi
push eax
call fcn.0052a8dd
pop ecx
mov dword [0x5becd0], eax
mov eax, dword [0x5becd0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x533d50
cmp dword [0x5becd4], ecx
je 0x533d50
push eax
call fcn.0052a954
push dword [0x5becd4]
mov esi, eax
call fcn.0052a954
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x533d50
cmp edi, ebx
je 0x533d50
call esi
cmp eax, ebx
je 0x533d1d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x533d1d
test byte [ebp - 0x18], 1
jne 0x533d50
lea eax, [ebp - 0x10]
push eax
call fcn.00528ffb
test eax, eax
pop ecx
je 0x533d38
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0052614f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x533d47
or dword [ebp + 0x10], 0x200000
jmp 0x533d8b
or dword [ebp + 0x10], 0x40000
jmp 0x533d8b
mov eax, dword [0x5becc8]
cmp eax, dword [ebp - 8]
je 0x533d8b
push eax
call fcn.0052a954
cmp eax, ebx
pop ecx
je 0x533d8b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x533d8b
mov eax, dword [0x5beccc]
cmp eax, dword [ebp - 8]
je 0x533d8b
push eax
call fcn.0052a954
cmp eax, ebx
pop ecx
je 0x533d8b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5becc4]
call fcn.0052a954
cmp eax, ebx
pop ecx
je 0x533dab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x533dad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53c0ce
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5b3720]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0053c00d
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.00526c60
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 0x53c11d
cmp dword [ebp - 0x1c], 5
jb 0x53c135
jmp 0x53c131
cmp dword [ebp - 0x10], 1
jne 0x53c135
cmp dword [ebp - 0x1c], 4
ja 0x53c131
jne 0x53c135
cmp dword [ebp - 0x18], 0
jbe 0x53c135
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x5650c4
call fcn.0053bea3
test eax, eax
jge 0x53c156
mov byte [0x5c484c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00524c67
add ebp, 0x78
leave
ret
Function at 0x401320
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
jmp 0x401347
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
je 0x4013a9
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
add ecx, 0x14
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
lea ecx, [eax + ecx - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
add ecx, 8
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x14], 0x320033
jne 0x4013a7
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
jmp 0x4013ab
jmp 0x40133f
xor eax, eax
mov esp, ebp
pop ebp
ret