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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x20019
push ebx
push 0x180136c
push 0x80000002
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jne 0x1804832
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1804832
cmp dword [ebp - 0x10], ebx
je 0x1804832
mov eax, dword [ebp - 0x1c]
push edi
lea eax, [eax + eax + 2]
push eax
push 8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x18047bc
push 0x68
push dword [0x1813678]
call sym.NETSH.EXE_PrintMessageFromModule
pop ecx
pop ecx
jmp 0x1804831
mov eax, dword [ebp - 0x18]
inc eax
push eax
push 8
call esi
push eax
call edi
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x14], edi
jne 0x18047e0
push dword [ebp - 4]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18047ab
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
jbe 0x1804831
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
je 0x180481d
cmp eax, 0x103
je 0x1804831
jmp 0x1804826
push edi
push dword [ebp - 4]
call fcn.0180447a
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jb 0x18047e8
pop edi
cmp dword [ebp - 8], ebx
je 0x1804840
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x1804852
push dword [ebp - 4]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x14], ebx
je 0x1804864
push dword [ebp - 0x14]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.01802f63
pop esi
pop ebx
leave
ret
Function at 0x1805db8
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x18122e8]
mov dword [ebp - 4], eax
mov eax, dword [0x1812314]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [ebp + 8]
je 0x1805deb
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x1805e21
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [0x1812314], eax
jne 0x1805e15
push 8
pop eax
jmp 0x1805e90
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x1805e28
and dword [0x1812314], 0
push 0x1801360
call fcn.01804b84
push dword [0x1812314]
call fcn.0180819e
mov esi, eax
test esi, esi
jge 0x1805e8e
mov eax, dword [0x1812314]
test eax, eax
jne 0x1805e70
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x20c]
push eax
push 0xb4
push dword [0x1813678]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
push esi
push 0
call sym.NETSH.EXE_PrintError
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01808732
leave
ret 4
Function at 0x1806a0e
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
and word [ebp - 4], 0
and word [ebp - 2], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
lea eax, [ebp - 0x1c]
push eax
push ebx
call edi
movzx eax, word [ebp - 0x1c]
movzx esi, word [ebp - 0x1a]
imul esi, eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
push esi
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
lea eax, [ebp - 0x1c]
push eax
push ebx
call edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
xor eax, eax
mov al, byte [ebp - 0x14]
shr al, 4
xor al, byte [ebp - 0x14]
push esi
and eax, 0xf
xor eax, dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1806b4f
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
mov word [ebp - 4], si
mov word [ebp - 2], si
je 0x1806ba6
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1806bad
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push 0x18069c1
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0xc]
call esi
xor eax, eax
pop esi
leave
ret 0xc
push dword [ebp + 0xc]
call fcn.01806a0e
xor eax, eax
inc eax
jmp 0x1806ba8
Function at 0x1806d4d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.018089d0
mov eax, dword [0x18122e8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2014], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push esi
mov esi, dword [ebp + 0xc]
add eax, 0x20
push eax
call dword [sym.imp.msvcrt.dll_fflush]
push esi
lea eax, [ebp - 0x2004]
push 0x2000
push eax
call dword [sym.imp.msvcrt.dll_fgets]
add esp, 0x10
test eax, eax
je 0x1806eab
push ebx
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
mov eax, dword [0x1812324]
cmp eax, ebx
mov dword [ebp - 0x2008], ecx
je 0x1806e5c
push edi
push ebx
lea edx, [ebp - 0x2010]
push edx
add ecx, 0xfffffffe
mov esi, 0x18015e8
lea edi, [ebp - 0x200c]
movsw word es:[edi], word [esi]
push ecx
lea ecx, [ebp - 0x2004]
push ecx
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x1806e21
push dword [0x1812324]
call edi
mov dword [0x1812324], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call sym.NETSH.EXE_PrintError
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x2010]
push eax
push 2
lea eax, [ebp - 0x200c]
push eax
push dword [0x1812324]
call esi
test eax, eax
jne 0x1806e5b
push dword [0x1812324]
call edi
mov dword [0x1812324], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call sym.NETSH.EXE_PrintError
pop ecx
pop ecx
pop edi
mov eax, dword [ebp - 0x2008]
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x1806e9a
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push esi
push 0x2000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x2008]
mov ecx, dword [ebp - 0x2014]
mov dword [ecx], eax
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01808732
leave
ret 8
Function at 0x1806ebd
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
call ebx
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x1806f72
push esi
push esi
push dword [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push esi
call edi
push eax
call ebx
mov ebx, dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 0xc]
push eax
dec ebx
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call edi
mov eax, dword [0x1812324]
cmp eax, esi
je 0x1806f61
push esi
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
call edi
test eax, eax
jne 0x1806f61
push dword [0x1812324]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1812324], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call sym.NETSH.EXE_PrintError
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x18076a8
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.018089d0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push dword [esi]
push dword [0x1812314]
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
test eax, eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
jne 0x18076de
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180785d
mov eax, dword [esi + 0xc]
test eax, eax
je 0x180785d
test al, 8
je 0x18076fd
mov dword [ebp - 0x18], 0x1801664
mov dword [ebp - 0x14], 0x1775
jmp 0x1807709
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
and dword [ebp - 0x10], 0
xor esi, esi
and dword [ebp - 0xc], esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x101c]
push eax
push 0
push 9
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
cmp eax, 1
jne 0x1807807
mov eax, dword [ebp - 4]
lea edi, [ebp - 0x101c]
lea eax, [ebp + eax - 0x101c]
mov ecx, edi
cmp ecx, eax
jae 0x18077fb
cmp dword [ebp - 0xc], 0
jne 0x1807812
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
mov ebx, edi
add edi, dword [edi]
test eax, eax
jbe 0x18077e6
cmp eax, 2
jbe 0x180779a
cmp eax, 4
je 0x180777d
cmp eax, 8
jne 0x18077e6
push dword [ebp - 0x18]
lea eax, [ebx + 0x38]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x18077e6
mov eax, dword [ebp - 0x14]
cmp dword [ebx + 0x14], eax
jne 0x18077e6
jmp 0x18077cf
push ecx
push ebx
call fcn.01806c81
test eax, eax
je 0x18077e6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], 1
jne 0x18077b3
inc dword [ebp - 0x10]
jmp 0x18077c7
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.msvcrt.dll_time]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebx + 0xc]
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x18077e6
mov eax, dword [ebp - 4]
lea eax, [ebp + eax - 0x101c]
cmp edi, eax
sbb esi, esi
and esi, edi
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
lea eax, [ebp + eax - 0x101c]
cmp edi, eax
jb 0x1807756
cmp dword [ebp - 0xc], 0
je 0x1807713
jmp 0x1807812
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x180785c
test esi, esi
je 0x180785a
mov edi, dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x101c]
push eax
push dword [esi + 8]
push 6
push dword [ebx]
call edi
cmp dword [ebp - 8], 0x1000
jae 0x180785a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x101c]
push eax
push dword [esi + 8]
push 6
push dword [ebx]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4019f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [0x46fcfc], eax
cmp dword [0x46fcfc], 0xffffffff
jne 0x401a2a
xor eax, eax
jmp 0x401a57
push 0
push 0x4743c8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [0x46fcfc]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [0x46fcfc]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x4743c8]
pop ebp
ret

Function at 0x40240d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x402421
xor eax, eax
jmp 0x4025ad
cmp dword [0x594954], 0
jne 0x402431
xor eax, eax
jmp 0x4025ad
push 0x10
push 0
push 0x4743b0
call fcn.0045dcf0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x4743b0
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov dword [ebp - 4], 0
jmp 0x402463
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jge 0x4024b1
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x4743b0]
test eax, eax
jne 0x402479
jmp 0x4024b1
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x4743b0]
cmp edx, 0x61
jl 0x4024af
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 0x4743b0]
cmp ecx, 0x7a
jg 0x4024af
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x4743b0]
and eax, 0xdf
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x4743b0], al
jmp 0x40245a
mov dword [0x474228], 0x10
mov dword [0x4679b8], 0
pushf
push esi
push edi
cld
mov esi, dword [0x594954]
xor ecx, ecx
mov cx, word [0x48e388]
mov edx, esi
mov ebx, ecx
mov eax, dword [esi + 0xc]
mov edi, 0x4743b0
mov ecx, 0xc
repe cmpsb byte [esi], byte es:[edi]
mov ecx, ebx
mov esi, edx
je 0x402509
add dword [0x474228], eax
add esi, 0x10
loop 0x4024d9
mov dword [0x4679b8], 0
jmp 0x40250e
mov dword [0x4679b8], eax
pop edi
pop esi
popf
cmp dword [0x4679b8], 0
je 0x4025a8
push 0
push 0x10000080
push 3
push 0
push 0
push 0x80000000
push 0x46f4f8
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [0x46fcfc], eax
cmp dword [0x46fcfc], 0xffffffff
jne 0x40254e
xor eax, eax
jmp 0x4025ad
push 0
push 0
mov edx, dword [0x474228]
push edx
mov eax, dword [0x46fcfc]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
push 0x48fae0
mov ecx, dword [0x4679b8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [0x46fcfc]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [0x46fcfc]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [0x4679b8]
cmp edx, dword [0x48fae0]
je 0x4025a8
mov dword [0x4679b8], 0
mov eax, dword [0x4679b8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40274f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0x10000080
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [0x46fcfc], eax
cmp dword [0x46fcfc], 0xffffffff
jne 0x402781
xor eax, eax
jmp 0x4027df
push 0
mov ecx, dword [0x46fcfc]
push ecx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4027b2
push 0
call dword [sym.imp.user32.dll_MessageBeep]
mov edx, dword [0x46fcfc]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
jmp 0x4027df
push 0
push 0x48fae0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x46fcfc]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [0x46fcfc]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x48fae0]
mov esp, ebp
pop ebp
ret

Function at 0x402c17
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x402c2b
xor eax, eax
jmp 0x402db7
cmp dword [0x594958], 0
jne 0x402c3b
xor eax, eax
jmp 0x402db7
push 0x10
push 0
push 0x469f48
call fcn.0045dcf0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x469f48
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov dword [ebp - 4], 0
jmp 0x402c6d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jge 0x402cbb
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x4743b0]
test eax, eax
jne 0x402c83
jmp 0x402cbb
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x4743b0]
cmp edx, 0x61
jl 0x402cb9
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 0x4743b0]
cmp ecx, 0x7a
jg 0x402cb9
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x4743b0]
and eax, 0xdf
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x4743b0], al
jmp 0x402c64
mov dword [0x474228], 0x10
mov dword [0x58fd30], 0
pushf
push esi
push edi
cld
mov esi, dword [0x594958]
xor ecx, ecx
mov cx, word [0x46e7d8]
mov edx, esi
mov ebx, ecx
mov eax, dword [esi + 0xc]
mov edi, 0x469f48
mov ecx, 0xc
repe cmpsb byte [esi], byte es:[edi]
mov ecx, ebx
mov esi, edx
je 0x402d13
add dword [0x474228], eax
add esi, 0x10
loop 0x402ce3
mov dword [0x58fd30], 0
jmp 0x402d18
mov dword [0x58fd30], eax
pop edi
pop esi
popf
cmp dword [0x58fd30], 0
je 0x402db2
push 0
push 0x10000080
push 3
push 0
push 0
push 0x80000000
push 0x469650
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [0x46fcfc], eax
cmp dword [0x46fcfc], 0xffffffff
jne 0x402d58
xor eax, eax
jmp 0x402db7
push 0
push 0
mov edx, dword [0x474228]
push edx
mov eax, dword [0x46fcfc]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
push 0x48fae0
mov ecx, dword [0x58fd30]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [0x46fcfc]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [0x46fcfc]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [0x58fd30]
cmp edx, dword [0x48fae0]
je 0x402db2
mov dword [0x58fd30], 0
mov eax, dword [0x58fd30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4030b6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x4030ca
xor eax, eax
jmp 0x403256
cmp dword [0x59495c], 0
jne 0x4030da
xor eax, eax
jmp 0x403256
push 0x10
push 0
push 0x469f38
call fcn.0045dcf0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x469f38
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov dword [ebp - 4], 0
jmp 0x40310c
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jge 0x40315a
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x4743b0]
test eax, eax
jne 0x403122
jmp 0x40315a
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x4743b0]
cmp edx, 0x61
jl 0x403158
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 0x4743b0]
cmp ecx, 0x7a
jg 0x403158
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x4743b0]
and eax, 0xdf
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x4743b0], al
jmp 0x403103
mov dword [0x474228], 0x10
mov dword [0x58fd2c], 0
pushf
push esi
push edi
cld
mov esi, dword [0x59495c]
xor ecx, ecx
mov cx, word [0x46e7f0]
mov edx, esi
mov ebx, ecx
mov eax, dword [esi + 0xc]
mov edi, 0x469f38
mov ecx, 0xc
repe cmpsb byte [esi], byte es:[edi]
mov ecx, ebx
mov esi, edx
je 0x4031b2
add dword [0x474228], eax
add esi, 0x10
loop 0x403182
mov dword [0x58fd2c], 0
jmp 0x4031b7
mov dword [0x58fd2c], eax
pop edi
pop esi
popf
cmp dword [0x58fd2c], 0
je 0x403251
push 0
push 0x10000080
push 3
push 0
push 0
push 0x80000000
push 0x469250
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [0x46fcfc], eax
cmp dword [0x46fcfc], 0xffffffff
jne 0x4031f7
xor eax, eax
jmp 0x403256
push 0
push 0
mov edx, dword [0x474228]
push edx
mov eax, dword [0x46fcfc]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
push 0x48fae0
mov ecx, dword [0x58fd2c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [0x46fcfc]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [0x46fcfc]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [0x58fd2c]
cmp edx, dword [0x48fae0]
je 0x403251
mov dword [0x58fd2c], 0
mov eax, dword [0x58fd2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406781
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x406795
xor eax, eax
jmp 0x406921
cmp dword [0x594960], 0
jne 0x4067a5
xor eax, eax
jmp 0x406921
push 0x10
push 0
push 0x469f28
call fcn.0045dcf0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x469f28
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov dword [ebp - 4], 0
jmp 0x4067d7
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jge 0x406825
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x4743b0]
test eax, eax
jne 0x4067ed
jmp 0x406825
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x4743b0]
cmp edx, 0x61
jl 0x406823
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 0x4743b0]
cmp ecx, 0x7a
jg 0x406823
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x4743b0]
and eax, 0xdf
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x4743b0], al
jmp 0x4067ce
mov dword [0x474228], 0x10
mov dword [0x58fd28], 0
pushf
push esi
push edi
cld
mov esi, dword [0x594960]
xor ecx, ecx
mov cx, word [0x46e880]
mov edx, esi
mov ebx, ecx
mov eax, dword [esi + 0xc]
mov edi, 0x469f28
mov ecx, 0xc
repe cmpsb byte [esi], byte es:[edi]
mov ecx, ebx
mov esi, edx
je 0x40687d
add dword [0x474228], eax
add esi, 0x10
loop 0x40684d
mov dword [0x58fd28], 0
jmp 0x406882
mov dword [0x58fd28], eax
pop edi
pop esi
popf
cmp dword [0x58fd28], 0
je 0x40691c
push 0
push 0x10000080
push 3
push 0
push 0
push 0x80000000
push 0x468e50
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [0x46fcfc], eax
cmp dword [0x46fcfc], 0xffffffff
jne 0x4068c2
xor eax, eax
jmp 0x406921
push 0
push 0
mov edx, dword [0x474228]
push edx
mov eax, dword [0x46fcfc]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
push 0x48fae0
mov ecx, dword [0x58fd28]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [0x46fcfc]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [0x46fcfc]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [0x58fd28]
cmp edx, dword [0x48fae0]
je 0x40691c
mov dword [0x58fd28], 0
mov eax, dword [0x58fd28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42797d
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x591610
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
call fcn.0041daad
add esp, 0xc
test eax, eax
je 0x4279d1
push 0
push 0x463af4
push 0x463afc
mov edx, dword [0x592820]
push edx
call dword [sym.imp.user32.dll_MessageBoxA]
mov word [0x594b74], 0
mov word [0x594b78], 0
push 0xcc0020
push 0
push 0
mov eax, dword [0x46fd34]
push eax
push 0x1e0
push 0x280
push 0
push 0x280
mov ecx, dword [0x46fd34]
push ecx
call dword [sym.imp.gdi32.dll_BitBlt]
push 0x591630
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea eax, [ebp - 0x20]
push eax
push 0
push 0
call fcn.0041daad
add esp, 0xc
test eax, eax
je 0x427a4c
push 0
push 0x463b10
push 0x463b18
mov ecx, dword [0x592820]
push ecx
call dword [sym.imp.user32.dll_MessageBoxA]
mov word [0x594b74], 0
mov word [0x594b78], 0
push 0xcc0020
push 0
push 0
mov edx, dword [0x46fd34]
push edx
push 0x1e0
push 0x280
push 0x1e0
push 0x280
mov eax, dword [0x46fd34]
push eax
call dword [sym.imp.gdi32.dll_BitBlt]
mov dword [ebp - 0x24], 0
push 0xa
call dword [sym.imp.kernel32.dll_Sleep]
push 0xcc0020
mov ecx, dword [ebp - 0x24]
push ecx
push 0x280
mov edx, dword [0x46fd34]
push edx
push 0x1e0
push 0x280
push 0
push 0
mov eax, dword [0x46e8b0]
push eax
call dword [sym.imp.gdi32.dll_BitBlt]
push 0xcc0020
mov ecx, dword [ebp - 0x24]
push ecx
push 0x280
mov edx, dword [0x46fd34]
push edx
push 0x1e0
push 0x280
push 0
push 0
mov eax, dword [0x469b50]
push eax
call dword [sym.imp.gdi32.dll_BitBlt]
mov ecx, dword [ebp - 0x24]
add ecx, 2
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0x1e2
jl 0x427a83
mov esp, ebp
pop ebp
ret