joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403dac
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4e6b56
call fcn.0047b598
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4f4d34
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 9
call fcn.004dc66e
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 8
call fcn.004dc66e
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
call fcn.004dc66e
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 6
call fcn.004dc66e
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 5
call fcn.004dc66e
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 4
call fcn.004dc66e
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 3
call fcn.004dc66e
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call fcn.004dc66e
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.004dc66e
and byte [ebp - 4], 0
lea ecx, [esi + 8]
call fcn.004dc66e
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
call fcn.004dc66e
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x405a57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
call fcn.00403b07
test eax, eax
je 0x405a79
push 0x5c
push dword [ebp + 0x1c]
call fcn.0047b7f8
pop ecx
test eax, eax
pop ecx
je 0x405a93
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x405afe
and byte [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x207]
push 0x208
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push eax
call fcn.00403b68
lea eax, [ebp - 0x208]
push 0x52584c
push eax
call fcn.0047b690
push dword [ebp + 0x1c]
lea eax, [ebp - 0x208]
push eax
call fcn.0047b690
add esp, 0x18
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
leave
ret 0x18

Function at 0x405c07
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
call fcn.00403b07
test eax, eax
jne 0x405c37
call fcn.004e317c
push dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004e3361
jmp 0x405cc6
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x405c43
mov esi, str.ppstream.ini
push 0x5c
push esi
call fcn.0047b7f8
pop ecx
test eax, eax
pop ecx
je 0x405c63
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
jmp 0x405cc6
and byte [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x207]
push 0x208
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push eax
call fcn.00403b68
lea eax, [ebp - 0x208]
push 0x52584c
push eax
call fcn.0047b690
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0047b690
add esp, 0x18
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0x10
Function at 0x405d58
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x4e6da8
call fcn.0047b598
push ecx
push ecx
push esi
mov esi, ecx
push edi
push 0x534198
and byte [esi + 0x2c], 0
and dword [esi + 0x30], 0
lea ecx, [ebp - 0x10]
call fcn.004dc6dc
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PlayFlashDll
call fcn.004dc6dc
push bind
mov ecx, esi
call fcn.00405f60
test eax, eax
jne 0x405dd3
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00405e90
push dword [eax]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push str._sFlashPlayDll.dll
push eax
call fcn.004d64b3
and byte [ebp - 4], 0
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004dc66e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x30], eax
je 0x405e5c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitFlashDLL
push eax
call edi
push str.PlayFile
mov dword [esi + 8], eax
push dword [esi + 0x30]
call edi
push str.PlayFile1
mov dword [esi + 0xc], eax
push dword [esi + 0x30]
call edi
push str.PlayFile2
mov dword [esi + 0x10], eax
push dword [esi + 0x30]
call edi
push str.StopPlay
mov dword [esi + 0x14], eax
push dword [esi + 0x30]
call edi
push str.Exit
mov dword [esi + 0x18], eax
push dword [esi + 0x30]
call edi
push str.DllWndMsg
mov dword [esi + 0x1c], eax
push dword [esi + 0x30]
call edi
push str.DllMoveWindow
mov dword [esi + 0x20], eax
push dword [esi + 0x30]
call edi
push str.DllOnCmdMsg
mov dword [esi + 0x24], eax
push dword [esi + 0x30]
call edi
mov dword [esi + 0x28], eax
call fcn.004e317c
mov eax, dword [eax + 4]
mov ecx, esi
push dword [eax + 0x68]
call fcn.0040606f
test al, al
je 0x405e76
mov byte [esi + 0x2c], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004dc66e
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x405f60
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4e6df0
call fcn.0047b598
sub esp, 0x4d0
push esi
mov ecx, dword [ebp + 0x10]
xor esi, esi
push 0x534198
mov dword [ebp - 4], esi
call fcn.004dc7f7
push dword [ebp + 0xc]
lea eax, [ebp - 0xdc]
push 0x525954
push eax
call fcn.0047c0a0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x20019
lea eax, [ebp - 0xdc]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
je 0x405fc8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004dc66e
xor eax, eax
jmp 0x40603c
mov al, byte [0x534198]
push edi
mov byte [ebp - 0x4dc], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4db]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 8]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.playflash
mov dword [ebp + 8], 0x400
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
pop edi
jne 0x406025
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x4dc]
push eax
call fcn.004dc7f7
push 1
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004dc66e
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x406435
Capabilities:
Create thread

Disassembly:
mov eax, 0x4e6e64
call fcn.0047b598
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x24]
cmp edi, ebx
je 0x406458
inc dword [edi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x10], edi
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x406478
push dword [ebp + 8]
call fcn.0047baa0
pop ecx
push eax
lea ecx, [esi + 8]
push dword [ebp + 8]
call fcn.00404203
mov ecx, esi
call fcn.00406399
test eax, eax
jne 0x4064a5
mov dword [esi + 0x20], ebx
lea eax, [esi + 4]
push eax
push ebx
push esi
push 0x4065b2
push ebx
push ebx
call fcn.0047c8f5
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x4064a5
push 1
pop ebx
lea ecx, [ebp - 0x10]
call fcn.00406422
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4064c0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4e6e80
call fcn.0047b598
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x24]
mov dword [ebp - 0x10], ebx
cmp edi, ebx
je 0x4064e7
inc dword [edi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
cmp edi, ebx
jg 0x4064f9
mov edi, 0x5fffffff
mov ecx, esi
call fcn.00406399
test eax, eax
je 0x40654e
cmp dword [ebp + 8], ebx
je 0x406512
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x64
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub edi, 0x64
cmp eax, 0x102
jne 0x40654e
cmp edi, ebx
jg 0x4064f9
cmp dword [esi + 0x18], ebx
jne 0x406557
mov dword [esi + 0x20], ebx
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x406544
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], ebx
lea ecx, [ebp - 0x14]
call fcn.00406422
jmp 0x40659e
mov dword [ebp - 0x10], 1
jmp 0x406530
mov eax, dword [0x52ba98]
mov dword [ebp + 8], eax
push dword [esi + 4]
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push 0x525c14
push eax
call fcn.004d64b3
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004dc66e
lea ecx, [ebp - 0x14]
call fcn.00406422
push 0xfffffffffffffff4
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4064cd
Capabilities:
Print debug messages
Terminate thread

Disassembly:
mov eax, 0x4e6e80
call fcn.0047b598
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x24]
mov dword [ebp - 0x10], ebx
cmp edi, ebx
je 0x4064e7
inc dword [edi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
cmp edi, ebx
jg 0x4064f9
mov edi, 0x5fffffff
mov ecx, esi
call fcn.00406399
test eax, eax
je 0x40654e
cmp dword [ebp + 8], ebx
je 0x406512
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x64
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub edi, 0x64
cmp eax, 0x102
jne 0x40654e
cmp edi, ebx
jg 0x4064f9
cmp dword [esi + 0x18], ebx
jne 0x406557
mov dword [esi + 0x20], ebx
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x406544
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], ebx
lea ecx, [ebp - 0x14]
call fcn.00406422
jmp 0x40659e
mov dword [ebp - 0x10], 1
jmp 0x406530
mov eax, dword [0x52ba98]
mov dword [ebp + 8], eax
push dword [esi + 4]
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push 0x525c14
push eax
call fcn.004d64b3
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004dc66e
lea ecx, [ebp - 0x14]
call fcn.00406422
push 0xfffffffffffffff4
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4066ab
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4e6eb0
call fcn.0047b598
sub esp, 0x40
mov al, byte [ebp + 0xb]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0xd], bl
mov byte [ebp - 0x4c], al
call fcn.004042bd
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x4066ee
push dword [ebp + 8]
call fcn.0047baa0
pop ecx
push eax
lea ecx, [ebp - 0x4c]
push dword [ebp + 8]
call fcn.00404203
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call fcn.004042bd
cmp dword [ebp + 0xc], ebx
mov byte [ebp - 4], 1
je 0x40671b
push dword [ebp + 0xc]
call fcn.0047baa0
pop ecx
push eax
lea ecx, [ebp - 0x3c]
push dword [ebp + 0xc]
call fcn.00404203
mov al, byte [esi]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.004042bd
push dword [0x4f4d4c]
lea ecx, [ebp - 0x2c]
push ebx
push esi
call fcn.00405788
push dword [0x4f4d4c]
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.00407114
mov eax, dword [ebp - 0x28]
mov edi, 0x4f4d38
cmp eax, ebx
jne 0x40675e
mov eax, edi
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x406778
mov byte [ebp + 0xb], bl
jmp 0x4067ff
cmp dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x406
je 0x40678a
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
push ebx
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4067f0
mov eax, dword [ebp - 0x18]
push 2
pop ecx
cmp eax, ecx
je 0x4067e0
push 1
pop edx
cmp eax, edx
je 0x4067e0
cmp eax, 4
jne 0x4067c6
mov byte [ebp - 0xd], dl
mov dword [esi + 0x40c], edx
jmp 0x4067f0
cmp eax, 3
jne 0x4067f0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
mov dword [esi + 0x408], eax
mov dword [esi + 0x40c], ecx
jmp 0x4067f0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0xd], 1
mov byte [eax + esi], bl
mov dword [esi + 0x40c], ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0xd]
mov byte [ebp + 0xb], al
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004042bd
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.004042bd
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x4c]
call fcn.004042bd
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40683c
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4e6ed4
call fcn.0047b598
sub esp, 0x38
mov al, byte [ebp + 0xb]
and byte [ebp - 0xd], 0
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x44]
push edi
mov byte [ebp - 0x44], al
call fcn.004042bd
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x406880
push dword [ebp + 8]
call fcn.0047baa0
pop ecx
push eax
lea ecx, [ebp - 0x44]
push dword [ebp + 8]
call fcn.00404203
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.004042bd
cmp dword [ebp + 0xc], edi
mov byte [ebp - 4], 1
je 0x4068ad
push dword [ebp + 0xc]
call fcn.0047baa0
pop ecx
push eax
lea ecx, [ebp - 0x24]
push dword [ebp + 0xc]
call fcn.00404203
mov al, byte [esi]
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call fcn.004042bd
push dword [0x4f4d4c]
lea ecx, [ebp - 0x34]
push edi
push esi
call fcn.00405788
push dword [0x4f4d4c]
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
push edi
push eax
call fcn.00407114
mov eax, dword [ebp - 0x30]
cmp eax, edi
jne 0x4068ee
mov eax, 0x4f4d38
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x406907
xor bl, bl
jmp 0x4069c2
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [edi + 0x40c], 3
jne 0x40694a
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], 0x4f4d38
test eax, eax
je 0x406930
mov dword [ebp + 8], eax
push edi
call ebx
inc eax
push eax
push edi
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x40694a
mov byte [ebp - 0xd], 1
mov eax, dword [edi + 0x40c]
test eax, eax
jne 0x406974
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], 0x4f4d38
test eax, eax
je 0x406965
mov dword [ebp + 8], eax
push edi
call ebx
inc eax
push eax
push edi
push 2
push 0
push dword [ebp + 8]
jmp 0x4069a9
cmp eax, 1
jne 0x40698c
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x406985
mov eax, 0x4f4d38
push 4
push edi
push 4
jmp 0x4069a6
cmp eax, 2
jne 0x4069b6
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40699d
mov eax, 0x4f4d38
push dword [edi + 0x408]
push edi
push 3
push 0
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x4069b6
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, byte [ebp - 0xd]
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004042bd
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004042bd
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x44]
call fcn.004042bd
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x406c75
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x4e6f14
call fcn.0047b598
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
je 0x406d5f
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.004042bd
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0047baa0
pop ecx
push eax
lea ecx, [ebp - 0x30]
push dword [ebp + 8]
call fcn.00404203
mov al, byte [esi]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.004042bd
push dword [0x4f4d4c]
lea ecx, [ebp - 0x20]
push ebx
push esi
call fcn.00405788
push dword [0x4f4d4c]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.00407114
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x406cf9
mov eax, 0x4f4d38
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x406d10
mov byte [ebp + 0xb], bl
jmp 0x406d24
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x406d44
mov byte [ebp + 0xb], 1
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004042bd
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.004042bd
mov al, byte [ebp + 0xb]
jmp 0x406d61
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004042bd
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.004042bd
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x407ee9
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
mov dword [ebp - 0x224], 0x224
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x224]
push eax
push esi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x407f39
push dword [ebp - 0x208]
call fcn.00407c36
pop ecx
lea eax, [ebp - 0x224]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
jmp 0x407f1a
pop esi
leave
ret
Function at 0x4084e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4e6fcf
call fcn.0047b598
sub esp, 0x118
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40850d
xor eax, eax
jmp 0x4085e1
push dword [ebp + 0xc]
call fcn.004083b8
test eax, eax
pop ecx
jne 0x4085de
push esi
lea ecx, [ebp - 0x124]
call fcn.004085ed
and dword [ebp - 4], 0
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x120]
push eax
call fcn.0047b86a
lea eax, [ebp - 0x120]
push eax
call fcn.0047cc3d
lea eax, [ebp - 0x120]
push eax
call fcn.0040842a
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4085a0
push dword [ebp + 0xc]
and dword [ebp - 0x10], eax
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
push eax
call fcn.00408d95
push dword [0x5347e4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x5347e8]
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ecx + 4]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00408df3
jmp 0x4085c5
push dword [0x5347e4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0xc]
mov eax, dword [esi + 0x10c]
lea ecx, [esi + 0x108]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00408d95
push dword [0x5347e4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b544
pop esi
push 1
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x408bf1
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov dx, word [0x5345c0]
push ebx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x47e]
mov word [ebp - 0x480], dx
mov word [ebp - 0x880], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x87e]
xor ebx, ebx
cmp dword [ebp + 8], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x408c4b
push 0x525e50
push dword [ebp + 8]
call fcn.0047c47c
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp + 8]
push eax
call fcn.0047bfc4
lea eax, [ebp + 8]
push eax
call fcn.0047d6b7
pop ecx
test eax, eax
pop ecx
jne 0x408c74
lea eax, [ebp - 0x80]
push 0x525e4c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x408c8b
push eax
push str._B__d__y__H:_M:_S
lea eax, [ebp - 0x80]
push 0x80
push eax
call fcn.0047ce05
add esp, 0x10
test ebx, ebx
je 0x408cae
lea eax, [ebp - 0x80]
push eax
push 0x525e34
push ebx
call fcn.0047cdc9
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.0047cd8e
add esp, 0x18
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x480]
push dword [ebp + 0xc]
push eax
call fcn.0047cd3d
add esp, 0xc
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x880]
push 0x525e20
push eax
call fcn.0047c0a0
add esp, 0xc
lea eax, [ebp - 0x880]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test ebx, ebx
je 0x408d0a
push 0x525e1c
push ebx
call fcn.0047cdc9
push ebx
call fcn.0047c1ac
push ebx
call fcn.0047c12f
add esp, 0x10
push 1
pop eax
pop edi
pop ebx
leave
ret

Function at 0x4097de
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x4097f5
cmp eax, 0xffffffff
je 0x4097f5
push 1
pop eax
ret
xor eax, eax
ret
Function at 0x4097f8
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x4e7098
call fcn.0047b598
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp dword [ebp + 8], ebx
mov esi, ecx
je 0x4098ec
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.004042bd
push dword [ebp + 8]
call fcn.0047baa0
pop ecx
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00404203
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x1c], al
call fcn.004042bd
push 1
lea eax, [ebp + 0xb]
pop edi
lea ecx, [ebp - 0x2c]
push edi
push ebx
push eax
mov byte [ebp - 4], 1
mov byte [ebp + 0xb], 0x5c
call fcn.00409c64
cmp eax, ebx
jge 0x4098a0
add esi, 4
push 0x52584c
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.004059ad
add esp, 0xc
push dword [0x4f4d4c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.00405788
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004042bd
push dword [0x4f4d4c]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push ebx
push eax
call fcn.00407114
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x4098bf
mov eax, 0x4f4d38
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x4098cf
cmp eax, 0xffffffff
jne 0x4098d1
xor edi, edi
push 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004042bd
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.004042bd
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x409ae2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.00409a89
cmp dword [ebp + 8], 0
mov ebx, eax
je 0x409afb
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp dword [ebp + 8], ecx
jbe 0x409b0b
mov ebx, ecx
cmp dword [ebp + 0xc], eax
jae 0x409b44
lea eax, [ebx + 1]
push eax
call fcn.004dcbe4
pop ecx
mov edi, eax
push 0xffffffffffffffff
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00409aa0
lea eax, [ebp - 4]
push 0
push eax
push ebx
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409b4d
push edi
call fcn.004dcc0d
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, esi
call fcn.00409b68
mov eax, dword [ebp - 4]
and byte [eax + edi], 0
mov eax, dword [ebp - 4]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], edi
mov eax, edi
jmp 0x409b46