joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51f140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5ad928
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x8c]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 4]
mov esi, dword [edi + 0x14]
sub eax, 2
mov ebx, 1
cmp esi, eax
ja 0x51f1aa
cmp dword [edi + 0x18], eax
je 0x51f1aa
push ebx
push eax
call 0x407220
test al, al
je 0x51f1aa
cmp dword [edi + 0x18], 0x10
mov dword [edi + 0x14], esi
jb 0x51f1a3
mov eax, dword [edi + 4]
jmp 0x51f1a6
lea eax, [edi + 4]
mov byte [eax + esi], 0
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
sub ecx, ebx
add esi, ebx
mov dword [esp + 0x18], ecx
cmp esi, ecx
je 0x51f37a
jmp 0x51f1c6
mov ecx, dword [esp + 0x18]
mov al, byte [esi]
add esi, ebx
mov byte [esp + 0x20], al
cmp al, 0x22
je 0x51f37a
cmp al, 0x5c
jne 0x51f2c6
cmp esi, ecx
je 0x51f2e1
mov al, byte [esi]
movsx eax, al
add esi, ebx
add eax, 0xffffffde
mov dword [esp + 0x8c], esi
cmp eax, 0x53
ja case.0x51f207.35
movzx eax, byte [eax + 0x51f3bc]
jmp dword [eax*4 + 0x51f394]
push 0x22
jmp 0x51f2cb
push 0x2f
jmp 0x51f2cb
push 0x5c
jmp 0x51f2cb
push 8
jmp 0x51f2cb
push 0xc
jmp 0x51f2cb
push 0xa
jmp 0x51f2cb
push 0xd
jmp 0x51f2cb
push 9
jmp 0x51f2cb
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x8c]
push ecx
push ebp
lea ecx, [esp + 0x98]
call fcn.0051f410
test al, al
je 0x51f31d
mov ecx, dword [esp + 0x1c]
lea esi, [esp + 0x40]
call fcn.0051d870
push 0
push eax
or eax, 0xffffffff
mov esi, edi
mov dword [esp + 0x88], ebx
call fcn.0040f370
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x58], 0x10
jb 0x51f2a8
mov eax, dword [esp + 0x44]
push eax
call fcn.005851f0
add esp, 4
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jmp 0x51f2d2
mov ecx, dword [esp + 0x20]
push ecx
mov eax, ebx
call fcn.0051f990
cmp esi, dword [esp + 0x18]
jne 0x51f1c2
jmp 0x51f37a
push str.Empty_escape_sequence_in_string
lea ecx, [esp + 0x60]
call fcn.00406f50
mov edx, esi
mov esi, dword [esp + 0x88]
push ebp
lea ecx, [esp + 0x60]
mov dword [esp + 0x84], 0
call fcn.0051f6d0
cmp dword [esp + 0x74], 0x10
mov bl, al
jb 0x51f37a
mov edx, dword [esp + 0x60]
push edx
jmp 0x51f372
xor al, al
jmp 0x51f37c
push 0x1d
push str.Bad_escape_sequence_in_string
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00406e40
mov edx, esi
mov esi, dword [esp + 0x88]
push ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x84], 2
call fcn.0051f6d0
cmp dword [esp + 0x3c], 0x10
mov bl, al
jb 0x51f37a
mov eax, dword [esp + 0x28]
push eax
call fcn.005851f0
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8
Function at 0x51f6d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ad888
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov edi, edx
xor edx, edx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], edx
mov byte [esp + 0x1c], dl
mov dword [esp + 0x44], edx
mov ebx, dword [eax]
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
call fcn.004072e0
mov dword [esp + 0x34], edi
lea eax, [esi + 0x20]
lea edi, [esp + 0xc]
call fcn.0051f8d0
cmp dword [esp + 0x30], 0x10
jb 0x51f761
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005851f0
add esp, 4
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005886fc
add esp, 0x3c
ret 4

Function at 0x521410
Capabilities:
Hash data with md5

Disassembly:
push esi
xor ecx, ecx
push 0x40
lea esi, [eax + 0x5c]
push ecx
push esi
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
call fcn.0058e300
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret

Function at 0x521ec9
Capabilities:
Check if file exists

Disassembly:
push 0x40
mov eax, 0x5accdb
call fcn.0058ea9b
mov edi, ecx
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], esi
call fcn.00406560
mov dword [ebp - 4], esi
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
je 0x521f73
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x521f73
mov edi, dword [edi]
lea eax, [ebp - 0x4c]
push eax
push edi
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 0x18], esi
call fcn.00521d72
pop ecx
pop ecx
test eax, eax
je 0x521f31
movzx eax, word [ebp - 0x44]
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
movzx eax, word [ebp - 0x40]
shr esi, 0x10
shr ebx, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
lea edi, [ebp - 0x10]
push ebx
push dword [ebp - 0x14]
push esi
push str._d._d._d._d
call fcn.00406280
mov eax, dword [ebp + 0xc]
add esp, 0x14
test eax, eax
je 0x521f52
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x521f5e
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x521f67
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x521f73
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00406580
mov esi, dword [ebp + 8]
add eax, 0x10
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.004066e0
mov eax, esi
call fcn.0058eb3a
ret
Function at 0x52333a
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, eax
cmp dword [edi + 0x40], 0
je 0x5233d4
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [edi + 0x30]
xor eax, eax
call fcn.0052358a
mov esi, dword [edi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5233a4
mov eax, esi
lea ecx, [edi + 4]
call fcn.00523502
mov eax, dword [eax]
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0x103
jne 0x52339f
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 4]
call ebx
dec esi
jns 0x523371
push dword [edi + 0x40]
call ebx
push dword [ebp - 0x10]
and dword [edi + 0x40], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi + 0x14]
push eax
mov byte [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0x3c]
call ebx
lea ecx, [ebp - 0x10]
call fcn.00402890
pop edi
pop esi
pop ebx
leave
ret
Function at 0x52358a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
mov esi, eax
cmp dword [edi + 0x40], ebx
jne 0x5235a6
mov eax, 0x80004005
pop esi
pop ebx
leave
ret 4
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0xc]
mov byte [ebp - 0x18], 1
cmp esi, eax
jne 0x5235ca
lea ecx, [ebp - 0x1c]
call fcn.00402890
xor eax, eax
jmp 0x5235a0
mov dword [ebp - 0xc], ebx
jge 0x5236c4
sub eax, esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
jle 0x52369e
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
lea ebx, [edi + 0x38]
push ebx
call esi
push 0xffffffffffffffff
push 0
push 0
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push dword [ebp + 8]
mov eax, dword [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x52363a
push 0
push ebx
call esi
test eax, eax
je 0x52363e
lea ecx, [ebp - 0x1c]
call fcn.00402890
mov eax, 0x102
call fcn.004064d0
jmp 0x5235a0
test eax, eax
jne 0x5236a7
lea esi, [edi + 4]
mov ecx, dword [esi + 8]
xor ebx, ebx
test ecx, ecx
jle 0x52365b
mov edx, dword [edi + 0x10]
mov eax, dword [esi]
cmp dword [eax], edx
je 0x5236a2
inc ebx
add eax, 4
cmp ebx, ecx
jl 0x52364f
or dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x52368f
mov ecx, esi
call fcn.00523502
mov ebx, dword [eax]
push 0xea60
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x5236bd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 8]
call fcn.0052380e
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jl 0x5235e0
xor esi, esi
jmp 0x5236ae
mov dword [ebp - 8], ebx
jmp 0x52365f
call fcn.004064e0
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.00402890
mov eax, esi
jmp 0x5235a0
mov esi, 0x80004005
jmp 0x5236ae
sub esi, eax
cmp esi, ebx
mov dword [ebp - 0x14], esi
jle 0x52369e
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 0x2c]
lea ecx, [ebp - 8]
push ecx
push 0
push edi
push 0x523962
push eax
push 0
call fcn.00589318
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x5236a7
push dword [ebp + 8]
mov eax, dword [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x52373b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea esi, [edi + 4]
mov dword [ebp - 0x10], ebx
call fcn.005237ac
test eax, eax
je 0x523720
xor ebx, ebx
test ebx, ebx
je 0x52372b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x5236cd
jmp 0x52369e
cmp eax, 0x102
jne 0x523753
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x80070102
jmp 0x5236ae
call fcn.004064e0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5236ae
Function at 0x527b8c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x224
push 0x5f99b8
call fcn.005a845c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
mov esi, ecx
mov ebx, edx
xor edi, edi
cmp eax, edi
je 0x527cfc
cmp esi, edi
je 0x527cfc
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x228]
push eax
push 0x5c709c
push 1
push edi
push 0x5c717c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x527cb5
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
lea edx, [ebp - 0x22c]
push edx
push 0x5c718c
push eax
call dword [ecx]
test eax, eax
jl 0x527cb5
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
push edi
push esi
push eax
call dword [ecx + 0x44]
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push edi
lea eax, [ebp - 0x222]
push eax
call fcn.0058e300
add esp, 0xc
push 0x102
push esi
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
lea edx, [ebp - 0x224]
push edx
push eax
call dword [ecx + 0x24]
cmp ebx, edi
je 0x527c94
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax]
push edi
push dword [ebp - 0x234]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x527cb5
mov dword [ebp - 0x230], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x527cce
mov eax, dword [ebp - 0x22c]
cmp eax, edi
je 0x527cde
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x228]
cmp eax, edi
je 0x527cee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x230]
jmp 0x527cfe
xor eax, eax
call fcn.005a84a4
ret
Function at 0x527d04
Capabilities:
Query environment variable

Disassembly:
push 0x430
push 0x601118
call fcn.005a845c
mov ebx, ecx
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x440], eax
xor esi, esi
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x430]
push eax
push 0x5c709c
push 1
push esi
push 0x5c717c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x527eab
mov eax, dword [ebp - 0x430]
cmp eax, esi
je 0x527eab
mov ecx, dword [eax]
lea edx, [ebp - 0x434]
push edx
push 0x5c718c
push eax
call dword [ecx]
cmp eax, esi
jl 0x527e7c
mov eax, dword [ebp - 0x434]
cmp eax, esi
je 0x527e7c
mov ecx, dword [ebx]
mov edx, dword [eax]
push esi
push ecx
push eax
call dword [edx + 0x14]
test eax, eax
jl 0x527e70
xor eax, eax
mov word [ebp - 0x224], ax
mov ebx, 0x206
push ebx
push esi
lea eax, [ebp - 0x222]
push eax
call fcn.0058e300
add esp, 0xc
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
push 2
push esi
mov esi, 0x104
push esi
lea edx, [ebp - 0x224]
push edx
push eax
call dword [ecx + 0xc]
lea edx, [ebp - 0x224]
call fcn.00406be0
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x224]
push edx
push eax
call dword [ecx + 0x28]
lea edx, [ebp - 0x224]
mov edi, dword [ebp - 0x43c]
call fcn.00406be0
and dword [ebp - 0x438], 0
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
lea edx, [ebp - 0x438]
push edx
push esi
lea edx, [ebp - 0x224]
push edx
push eax
call dword [ecx + 0x40]
xor eax, eax
mov word [ebp - 0x42c], ax
push ebx
push eax
lea eax, [ebp - 0x42a]
push eax
call fcn.0058e300
add esp, 0xc
push esi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x42c]
mov edi, dword [ebp - 0x440]
call fcn.00406be0
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x430]
jmp 0x527ea5
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
call fcn.005a84a4
ret
Function at 0x528161
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b0f25
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x5281b8
lea eax, [esp + 0xc]
push eax
mov ecx, 0x5d4c28
call fcn.00406c20
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], ebx
jne 0x5281ce
lea ecx, [esp + 0xc]
call fcn.004066e0
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x18], ebx
jne 0x5281e8
push ebx
push 0x3e8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x5281af
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c], ebx
jne 0x52821b
push esi
call edi
push esi
mov dword [esi + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push ebx
push esi
push 0x52839c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
cmp eax, ebx
je 0x5282d6
push esi
mov dword [esp + 0x18], esi
call edi
lea ecx, [esp + 0x18]
call fcn.00406560
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x30], 2
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x528281
cmp dword [edi + 0xc], ebx
jl 0x528272
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x528272
call fcn.00406580
mov dword [esp + 0x10], eax
mov eax, edi
call fcn.004069b0
mov eax, dword [esp + 0x10]
add eax, 0x10
mov dword [esp + 0x18], eax
jmp 0x528281
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00406b40
xor ebx, ebx
mov eax, dword [ebp + 8]
lea edi, [esi + 0x28]
mov ecx, dword [edi]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x14]
push eax
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], ebx
call fcn.00528a7d
lea eax, [esp + 0xc]
push eax
lea eax, [esi + 0x44]
push eax
call fcn.005286f0
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
lea ecx, [esp + 0x18]
call fcn.004066e0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x5281af
lea ecx, [esp + 0xc]
call fcn.004066e0
xor eax, eax
inc eax
jmp 0x5281ba
Function at 0x52f7ef
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push 0x1c
push 0x5fb888
call fcn.0058e788
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp + 0xc], ebx
cmp eax, ebx
je 0x52f80f
mov dword [eax], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp edi, ebx
je 0x52f94e
cmp dword [sym.imp.KERNEL32.dll_CloseHandle], ebx
je 0x52f94e
push 1
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
call esi
mov dword [ebp - 0x1c], eax
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call edi
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x52f880
push ebx
push ebx
push ebx
push 0x1000002
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x52f880
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x52f880
mov dword [ebp - 0x28], eax
push dword [ebp - 0x1c]
call esi
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x52f904
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x52f8f8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x52f8f8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x52f8f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x52f8f8
movzx ecx, word [eax]
cmp ecx, dword [ebp - 0x1c]
ja 0x52f8f1
mov dword [ebp - 0x1c], ecx
add ecx, 3
and ecx, 0xfffffffc
mov dword [ebp - 0x1c], ecx
cmp dword [eax + 0x28], 0xfeef04bd
je 0x52f8fb
jmp 0x52f8f1
mov dword [ebp - 0x20], 0xd
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xfffffffe
jmp 0x52f90b
mov dword [ebp - 0x20], 0xd
cmp dword [ebp + 0xc], ebx
je 0x52f919
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x24], ebx
je 0x52f927
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0xffffffff
je 0x52f936
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + eax + 4]
neg eax
sbb eax, eax
and eax, ecx
jmp 0x52f950
xor eax, eax
call fcn.0058e7cd
ret
Function at 0x52f956
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push 0x20
push 0x5fb868
call fcn.0058e788
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, ebx
je 0x52f990
cmp dword [sym.imp.KERNEL32.dll_CloseHandle], ebx
je 0x52f990
cmp dword [ebp + 0xc], 2
jae 0x52f998
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
call fcn.0058e7cd
ret
push 1
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
call edi
mov dword [ebp - 0x24], eax
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call esi
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x52f9ef
push ebx
push ebx
push ebx
push 0x1000002
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x52f9ef
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x52f9ef
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x24]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x52fa82
push 0x10
xor edi, edi
inc edi
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x52fa7f
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x52fa7f
mov dword [ebp - 4], ebx
movzx esi, word [eax]
mov dword [ebp - 0x24], esi
lea edx, [esi + esi + 4]
mov ecx, dword [ebp + 0xc]
cmp edx, ecx
jbe 0x52fa41
shr ecx, 1
sub ecx, 4
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x24], edi
jmp 0x52fa44
mov dword [ebp - 0x24], ebx
push esi
push eax
mov edi, dword [ebp + 0x10]
push edi
call fcn.0058e380
add esp, 0xc
mov dword [esi + edi], 0x58324546
cmp dword [ebp - 0x24], ebx
je 0x52fa61
mov word [edi], si
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x52fa82
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x28], ebx
je 0x52fa90
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x2c], ebx
je 0x52fa9e
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0xffffffff
je 0x52faad
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
jmp 0x52f992

Function at 0x52fac0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x210], eax
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0xc], 0
call fcn.0058e300
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push esi
lea ecx, [esp + 0xc]
test eax, eax
je 0x52fb32
mov ecx, 0x5caac0
call fcn.00406c20
mov ecx, dword [esp + 0x210]
xor ecx, esp
mov eax, esi
call fcn.005886fc
add esp, 0x214
ret