joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423c8f
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
call fcn.00402344
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XDOpen
push eax
mov dword [esi + 4], eax
call edi
push str.XDClose
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
push str.XDAddRecordsEx
push dword [esi + 4]
mov dword [esi + 0x18], eax
call edi
push str.XDDeleteRecords
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call edi
push str.XDGetFirst
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
push str.XDGetNext
push dword [esi + 4]
mov dword [esi + 0x24], eax
call edi
push str.XDGetCounts
push dword [esi + 4]
mov dword [esi + 0x28], eax
call edi
push str.XDGetLastFlag
push dword [esi + 4]
mov dword [esi + 0x2c], eax
call edi
xor edi, edi
mov dword [esi + 0x30], eax
cmp dword [esi + 0x14], edi
je 0x423d3c
cmp dword [esi + 0x18], edi
je 0x423d3c
cmp dword [esi + 0x1c], edi
je 0x423d3c
cmp dword [esi + 0x20], edi
je 0x423d3c
cmp dword [esi + 0x24], edi
je 0x423d3c
cmp dword [esi + 0x28], edi
je 0x423d3c
cmp dword [esi + 0x2c], edi
je 0x423d3c
cmp eax, edi
je 0x423d3c
xor eax, eax
inc eax
mov dword [esi + 0xc], eax
jmp 0x423d67
mov eax, dword [esi + 4]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
cmp eax, edi
je 0x423d65
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 4], edi
xor eax, eax
pop edi
pop esi
ret 4

Function at 0x423db0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x42bbe9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42bc30
call fcn.00425809
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42bc30
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42bc4c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042b761
mov esi, eax
test edi, edi
je 0x42bc4a
test ebx, ebx
je 0x42bc4a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42ca38
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x480454
call fcn.00442103
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42ca5d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42caa3
lea ecx, [ebp - 0x10]
call fcn.00401578
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.00424b6e
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.00401100
mov eax, esi
call fcn.004421db
ret 8

Function at 0x42f6b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42f6f9
call fcn.00425809
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42f6f9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42f73c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42f725
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 0x42f725
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42f739
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 0x4312e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x431307
cmp dword [edi + 0x54], 0
jne 0x431307
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00425809
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004312a4
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4420f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ad40c]
jne 0x4420fe
repz ret
jmp fcn.0044af7c
Function at 0x4535ed
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00447bdd
and dword [ebp - 4], 0
cmp dword [0x4b4a90], 0
mov ebx, eax
jne 0x45369e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45374f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45374f
push eax
call fcn.00447b6b
mov dword [esp], 0x490c80
push edi
mov dword [0x4b4a90], eax
call esi
push eax
call fcn.00447b6b
mov dword [esp], 0x490c6c
push edi
mov dword [0x4b4a94], eax
call esi
push eax
call fcn.00447b6b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b4a98], eax
call esi
push eax
call fcn.00447b6b
pop ecx
mov dword [0x4b4aa0], eax
test eax, eax
je 0x45369e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00447b6b
pop ecx
mov dword [0x4b4a9c], eax
mov eax, dword [0x4b4a9c]
cmp eax, ebx
je 0x4536f6
cmp dword [0x4b4aa0], ebx
je 0x4536f6
push eax
call fcn.00447be6
push dword [0x4b4aa0]
mov esi, eax
call fcn.00447be6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4536f6
test edi, edi
je 0x4536f6
call esi
test eax, eax
je 0x4536ed
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4536ed
test byte [ebp - 0xc], 1
jne 0x4536f6
or dword [ebp + 0x10], 0x200000
jmp 0x45372f
mov eax, dword [0x4b4a94]
cmp eax, ebx
je 0x45372f
push eax
call fcn.00447be6
pop ecx
test eax, eax
je 0x45372f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45372f
mov eax, dword [0x4b4a98]
cmp eax, ebx
je 0x45372f
push eax
call fcn.00447be6
pop ecx
test eax, eax
je 0x45372f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b4a90]
call fcn.00447be6
pop ecx
test eax, eax
je 0x45374f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x453751
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x459b50
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x459b82
xor ecx, ecx
jmp 0x459b8e
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
mov esi, ecx
test ecx, ecx
je 0x459c41
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esi]
cmp dword [esp + 0x14], eax
jne 0x459bb4
mov dword [esp + 0x10], esi
jmp 0x459c14
push eax
push 1
push 0x40
call ebx
test eax, eax
jne 0x459c0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x459c00
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x459c14
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x459c14
push 0x492058
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x459c14
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x459c37
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x459ba6
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
test eax, eax
jne 0x459c55
mov ecx, dword [edi]
add ecx, 8
call fcn.004599d0
test eax, eax
je 0x459c55
mov edx, dword [esp + 0xc]
mov dword [eax], edx
pop edi
pop esi
add esp, 8
ret
Function at 0x459c70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4815b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ad40c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
jne 0x459cbc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x459cc9
mov dword [ebp - 0x14], ebx
jmp 0x459cdb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x459d75
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, ebx
je 0x459ca8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x459ca8
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00459b50
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
jne 0x459d18
push 0x4a4ff8
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
call fcn.0044314b
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x459d2e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x459d64
push 0x4a4ff8
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 4
call fcn.0044314b
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x459d58
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx]
push eax
add ecx, 8
call fcn.00459ab0
mov eax, 0x459d5e
ret
mov esi, dword [esi]
mov eax, dword [esi]
test eax, eax
je 0x459d73
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x459d90
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x4815db
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ad40c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.00441830
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x18], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x459e2b
push 0x4a4ff8
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.0044314b
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x459ea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov ecx, 0x4b4b14
jmp fcn.00459c70
Function at 0x45b320
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x45b354
push str.SetFilePointerEx__
push eax
push 0xed
push str..QHImageHlp.c
call fcn.00459790
add esp, 0x10
xor eax, eax
ret
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 8]
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45b387
push str.ReadFile__
push eax
push 0xf0
push str..QHImageHlp.c
call fcn.00459790
add esp, 0x10
xor eax, eax
ret
cmp edi, dword [esp + 4]
je 0x45b3a9
push 0x4925b8
push 1
push 0xf2
push str..QHImageHlp.c
call fcn.00459800
add esp, 0x10
xor eax, eax
ret
mov eax, 1
ret
Function at 0x45c940
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x45da20
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x45da50
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x45da80
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x45e110
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x45e990
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4ad40c]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov edi, dword [esp + 0x68]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x70]
push ecx
push eax
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.0045e7f0
lea eax, [esp + 8]
push eax
push edi
mov ecx, esi
call fcn.0045e8b0
mov ecx, dword [esp + 0x60]
pop edi
pop esi
xor ecx, esp
call fcn.004420f4
add esp, 0x5c
ret 0xc
Function at 0x45f870
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1004
call fcn.00443860
mov eax, dword [0x4ad40c]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x1010]
push edi
mov edi, dword [esp + 0x1010]
push 0x1000
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00441830
push 0x800
lea ecx, [esp + 0x18]
push 0x492a18
push ecx
call fcn.00462101
push 0x800
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0046221e
push 0x800
lea eax, [esp + 0x30]
push 0x4929ec
push eax
call fcn.0046221e
push 0x800
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.0046221e
push 0x800
lea edx, [esp + 0x48]
push str.vL
push edx
call fcn.0046221e
add esp, 0x48
push 0x800
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0046221e
push 0x800
lea ecx, [esp + 0x18]
push 0x4929ac
push ecx
call fcn.0046221e
add esp, 0x18
push 0x14
push esi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x45f982
call fcn.0045f670
test eax, eax
je 0x45f96a
call fcn.0045f760
test eax, eax
je 0x45f96a
push 5
push 0
push 0
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x45f975
push 5
push 0
push 0
push str.http:__down.360safe.com_setup.exe
push 0x485c74
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x1018], 0
je 0x45f993
push 0
call fcn.00446451
mov ecx, dword [esp + 0x1008]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004420f4
add esp, 0x1004
ret

Function at 0x45f9b0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x140
mov eax, dword [0x4ad40c]
xor eax, esp
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x144]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45fa02
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004420f4
add esp, 0x140
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 0x40
lea ecx, [esp + 0x114]
push ecx
push esi
call edi
test eax, eax
je 0x45fa8b
cmp dword [esp + 0xc], 0x40
jne 0x45fa8b
mov edx, 0x5a4d
cmp word [esp + 0x108], dx
jne 0x45fa8b
mov eax, dword [esp + 0x144]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x144]
jne 0x45fa8b
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xf8
lea edx, [esp + 0x1c]
push edx
push esi
call edi
test eax, eax
je 0x45fa8b
cmp dword [esp + 0xc], 0xf8
jne 0x45fa8b
cmp dword [esp + 0x10], 0x4550
jne 0x45fa8b
cmp word [esp + 0x16], bx
je 0x45fa8b
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x148]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004420f4
add esp, 0x140
ret
Function at 0x45fac0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret

Function at 0x45faf0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret

Function at 0x45fd90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x40010
call fcn.00443860
mov eax, dword [0x4ad40c]
xor eax, esp
mov dword [esp + 0x4000c], eax
mov eax, dword [esp + 0x40014]
push edi
mov edi, dword [esp + 0x4001c]
mov dword [esp + 0xc], 0
test edi, edi
jne 0x45fddd
xor eax, eax
pop edi
mov ecx, dword [esp + 0x4000c]
xor ecx, esp
call fcn.004420f4
add esp, 0x40010
ret 8
push esi
push 0
push 0
push 3
push 0
push 1
push 0x120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45fe02
xor eax, eax
jmp 0x45fe8d
push ebx
push ebp
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x14]
push eax
push 0x40000
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
test eax, eax
je 0x45fe73
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45fe73
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x28]
push eax
push edi
call ebp
test eax, eax
je 0x45fe7a
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x10]
jne 0x45fe7a
push 0
lea edx, [esp + 0x14]
push edx
push 0x40000
lea eax, [esp + 0x28]
push eax
push esi
call ebx
test eax, eax
jne 0x45fe35
mov edi, 1
jmp 0x45fe7e
mov edi, dword [esp + 0x18]
pop ebp
pop ebx
test esi, esi
je 0x45fe8b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x40014]
pop esi
pop edi
xor ecx, esp
call fcn.004420f4
add esp, 0x40010
ret 8
Function at 0x45ff90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xd4
mov eax, dword [0x4ad40c]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xd8]
push esi
push edi
xor edi, edi
push edi
push edi
push 4
push edi
push 3
push 0x12019f
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x460079
push 0xc4
lea eax, [esp + 0x18]
push edi
push eax
mov dword [esp + 0x1c], edi
call fcn.00441830
add esp, 0xc
push edi
lea ecx, [esp + 0x10]
push ecx
push 0xc8
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x460072
cmp dword [esp + 0xc], 0xc8
jne 0x460072
cmp dword [esp + 0x10], 0x5148534c
jne 0x460072
cmp dword [esp + 0x14], 0xc8
jne 0x460072
push edi
call fcn.00443c2a
add esp, 4
push edi
push edi
push edi
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x460072
push edi
lea eax, [esp + 0xc]
push eax
push 0xc8
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x460072
cmp dword [esp + 8], 0xc8
jne 0x460072
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 1]
jmp 0x46007b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
xor ecx, esp
call fcn.004420f4
add esp, 0xd4
ret 4

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

Disassembly:
sub esp, 0x258
mov eax, dword [0x4ad40c]
xor eax, esp
mov dword [esp + 0x254], eax
push esi
mov esi, dword [esp + 0x260]
test esi, esi
je 0x4601fa
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460170
sub eax, edx
sar eax, 1
je 0x4601fa
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4601fa
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4601bb
not al
movzx eax, al
shr eax, 4
and eax, 1
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.004420f4
add esp, 0x258
ret 4
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4601fa
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov cl, byte [esp + 8]
not cl
movzx eax, cl
shr eax, 4
and eax, 1
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.004420f4
add esp, 0x258
ret 4
mov ecx, dword [esp + 0x258]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004420f4
add esp, 0x258
ret 4