joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401087
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
lea eax, [ebp - 0x118]
push eax
mov edi, 0x104
push edi
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
push dword [ebp + 8]
call fcn.004013f0
call fcn.004455da
test eax, eax
je 0x4010d8
push 0x10
push 0x46ad3e
push str.This_is_a_compiled_AutoIt_script._AV_researchers_please_email_avsupport_autoitscript.com_for_support.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401293
cmp dword [0x47e114], 0
jne 0x401106
push 0xffffffffffffffff
push dword [0x47e11c]
mov esi, 0x47f058
push 1
call fcn.00408233
mov al, byte [0x4754ac]
mov byte [0x47f05a], al
mov ebx, 0x47e128
jmp 0x40115c
lea eax, [ebp - 2]
push eax
push 0x47e114
mov esi, 0x47e128
mov ebx, 0x47f058
call fcn.004087dc
test al, al
jne 0x401131
mov dword [0x4754c4], 1
jmp 0x401286
mov al, byte [0x47f058]
mov byte [0x47e118], al
mov al, byte [0x47f059]
push 0x47e110
mov byte [ebp - 1], al
lea eax, [ebp - 0x220]
push eax
push edi
mov ebx, 0x47e128
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
push dword [0x47e114]
push ebx
call fcn.0041afb0
test eax, eax
je 0x401192
mov edi, 0x47f058
call fcn.00408370
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov dword [0x4754c4], 1
jmp 0x401293
cmp byte [ebp - 1], 1
jne 0x401241
cmp byte [0x47e0e5], 1
jne 0x401241
call fcn.0040f422
test al, al
jne 0x401241
push edi
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
cmp byte [ebp - 2], 0
je 0x40121a
mov edi, 0x46ada8
push edi
lea esi, [ebp - 0x10]
call fcn.0040fd2f
push ebx
mov eax, esi
call fcn.0040ff67
push edi
mov eax, esi
call fcn.0040ff67
push 1
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x220]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x10]
call fcn.0044f520
pop ecx
jmp 0x40127c
push 1
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40127c
call fcn.0040129a
call fcn.0040137f
cmp byte [0x47e118], 0
mov esi, 0x47e6d8
jne 0x401260
mov eax, esi
call fcn.0040ba4b
push 1
mov ecx, 0x47e230
call fcn.0041b162
cmp byte [0x47e118], 0
jne 0x40127c
mov ecx, esi
call fcn.0040bf3f
mov edi, 0x47f058
call fcn.00408370
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402917
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
xor ebp, ebp
push ebp
mov edi, eax
push ebp
push edi
call esi
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
call esi
mov ebx, dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push eax
call ebx
push 2
push ebp
push ebp
lea eax, [edi + 8]
push eax
call esi
push eax
mov eax, dword [esp + 0x30]
push dword [eax]
call esi
push eax
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push ebp
push ebp
push edi
push 0x402985
push ebp
push ebp
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4037da
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push edi
push 1
push dword [esi]
call fcn.00405123
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor ebp, ebp
push ebp
push 0x25
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
shl eax, 0x10
or eax, 1
cmp dword [esp + 0x10], ebp
push eax
jge 0x40382a
push 0x25
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x40384c
push 0x27
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push dword [esi]
call fcn.00405123
pop edi
pop ebp
mov al, 1
pop ebx
ret 4

Function at 0x403c98
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push dword [ebx]
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x403cc5
xor al, al
jmp 0x403cd9
push edi
push 0
push 0
push 0xe
push dword [ebx]
call esi
mov edi, eax
test edi, edi
jne 0x403cdf
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [edi + 0x101]
push eax
call fcn.0044f4b6
pop ecx
push eax
mov dword [ebp - 4], eax
lea eax, [edi + 1]
push eax
push 0xd
push dword [ebx]
call esi
test eax, eax
je 0x403d2c
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x403d0c
mov ecx, dword [ebp - 4]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebp + 8]
push ecx
call fcn.0040fea9
mov bl, 1
push dword [ebp - 4]
call fcn.0044f520
pop ecx
mov al, bl
jmp 0x403cd8
xor bl, bl
jmp 0x403d1f
Function at 0x405123
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x40514e
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x405169
push 1
jmp 0x405150
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
ret 8

Function at 0x4051bd
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push 0
push 0
mov ebx, eax
push 0xe
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
jne 0x4051db
mov esi, 0x7fff
push ebp
lea ebp, [esi + 1]
push ebp
call fcn.0044f4b6
pop ecx
mov edi, eax
push edi
push ebp
push 0xd
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov eax, dword [esp + 0x14]
mov byte [edi + esi], 0
pop ebp
jne 0x40521c
push 0x46ad3e
call fcn.0040fea9
xor bl, bl
push edi
call fcn.0044f520
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
ret 4
push edi
call fcn.0040fea9
mov bl, 1
jmp 0x40520d
Function at 0x407d62
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10324
call fcn.00454c70
push ebx
xor ebx, ebx
push esi
push edi
push 0x400
mov byte [0x47f058], bl
mov byte [0x47f059], bl
mov byte [0x47f05a], bl
mov dword [0x47f05c], ebx
mov dword [0x47f060], ebx
mov dword [0x47f064], ebx
mov dword [0x47f068], ebx
mov dword [0x47f06c], 0x46eb28
mov dword [0x47f070], ebx
mov dword [0x47f074], ebx
mov dword [0x47f078], ebx
mov dword [0x47f07c], 0x46eb28
mov dword [0x47f080], ebx
mov dword [0x47f084], ebx
mov dword [0x47f088], ebx
mov dword [0x47f090], ebx
mov dword [0x47f098], ebx
call fcn.0044f4b6
pop ecx
mov dword [0x47f08c], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00451fc3
push esi
lea eax, [ebp - 0x21c]
push str.Include
push eax
call fcn.00452010
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00452145
lea edi, [esi + 1]
push edi
call fcn.0044f4b6
mov ecx, dword [0x47f08c]
mov edx, dword [0x47f090]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x47f090]
mov eax, dword [0x47f08c]
mov eax, dword [eax + ecx*4]
inc dword [0x47f090]
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.0044f360
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407fb8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10324]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0xffff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407faf
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x10324], bl
mov byte [ebp + eax - 0x10323], bl
lea eax, [ebp - 0x10324]
mov byte [ebp - 0x118], bl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, bl
mov byte [ebp - 4], al
mov byte [ebp - 3], bl
je 0x407f22
cmp al, 0x3b
je 0x407f22
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0044f370
pop ecx
pop ecx
jmp 0x407fa7
lea eax, [ebp - 0x118]
push eax
call fcn.00451750
test eax, eax
pop ecx
je 0x407f60
lea eax, [ebp - 0x118]
push eax
call fcn.00451750
pop ecx
lea ecx, [ebp - 0x118]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x407f60
lea eax, [ebp - 0x118]
push 0x46b458
push eax
call fcn.0044f370
pop ecx
pop ecx
push edi
call fcn.0044f4b6
mov ecx, dword [0x47f08c]
mov edx, dword [0x47f090]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x47f090]
mov eax, dword [0x47f08c]
mov eax, dword [eax + ecx*4]
inc dword [0x47f090]
push esi
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.00452170
mov eax, dword [ebp - 8]
add esp, 0x10
cmp byte [eax], bl
mov byte [ebp - 0x118], bl
je 0x407faf
inc dword [ebp - 8]
jmp 0x407ef8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x47f058
pop ebx
leave
ret
Function at 0x409dc8
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x409de2
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x409eb8
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], eax
je 0x409e83
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [0x47f508], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x409e55
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x47f508]
cmp ecx, eax
mov dword [0x47f504], eax
je 0x409e4a
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x47f504]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x409eb7
cmp dword [ebp - 8], ecx
jne 0x409eb7
cmp dword [ebp - 0xc], ecx
jne 0x409eb7
mov eax, dword [0x47f508]
cmp dword [ebp - 4], eax
jne 0x409eb7
cmp eax, dword [0x47f504]
jne 0x409eb7
mov eax, dword [ebp + 8]
mov dword [eax + 0x140], ecx
jmp 0x409eb7
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x409eab
push edi
push dword [0x47f504]
push eax
call esi
mov ecx, dword [0x47f508]
mov eax, dword [0x47f504]
cmp ecx, eax
je 0x409eab
push edi
push eax
push ecx
call esi
push edi
push dword [0x47f508]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

Function at 0x409ed4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
cmp byte [ebp + 0xc], al
mov byte [ebp - 1], al
je 0x409f2c
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push 0
push 0
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call fcn.00409ebd
mov edi, dword [ebx + 4]
push ebx
call fcn.0040b017
push 2
push 0
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call fcn.00409ebd
mov edi, dword [ebx]
push ebx
call fcn.0040b017
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 8
Function at 0x40b017
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
test edi, edi
push esi
jl 0x40b0ab
jne 0x40b02f
push 0
jmp 0x40b0a5
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x11d]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40b0a4
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40b0a4
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x46ebc8]
call fcn.004659c6
cmp eax, edi
jb 0x40b062
jmp 0x40b0ab
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b25d
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, ebp
push edi
jne 0x40b27a
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40b292
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
mov dword [esp + 0x1c], ebp
call edi
test eax, eax
jne 0x40b376
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebp
push ebx
mov dword [esp + 0x18], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [esp + 0x18]
mov dword [esp + 0x28], eax
call esi
push 1
push dword [esp + 0x18]
push dword [esp + 0x18]
call esi
push 1
push dword [esp + 0x20]
push dword [esp + 0x1c]
call esi
push ebx
call edi
test eax, eax
jne 0x40b34b
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push ebp
push ebp
push ebp
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push ebp
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x40b353
mov dword [esp + 0x18], 4
jmp 0x40b353
mov dword [esp + 0x18], 3
push ebp
push dword [esp + 0x20]
push dword [esp + 0x18]
call esi
push ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
call esi
push ebp
push dword [esp + 0x20]
push dword [esp + 0x1c]
call esi
jmp 0x40b37e
mov dword [esp + 0x18], 2
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x40b457
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x40b474
inc edi
add eax, 8
cmp edi, 0x10
jl 0x40b467
cmp edi, 0x10
jne 0x40b480
xor eax, eax
jmp 0x40b520
cmp byte [esi + 0x18], 1
jne 0x40b4f7
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
lea eax, [esi + edi*8 + 0x1c]
push ebx
push 0x438
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [esi + 8], ebx
jne 0x40b4d3
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x40b4d3
push str.VirtualAllocEx
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x40b4df
mov eax, 0x4036c7
mov ecx, dword [ebp + 0xc]
push 4
push 0x1000
push dword [ebp + 8]
lea esi, [esi + edi*8 + 0x20]
push ebx
push dword [ecx]
call eax
jmp 0x40b51e
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea esi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [esi], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40cf87
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40d007
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40cfb0
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.004525f3
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40d006
mov eax, dword [esi]
test al, 0x20
je 0x40cfcb
push dword [esi + 4]
push 2
push ebx
push 0x46bac0
call fcn.004527bd
mov dword [esi + 0xc], ebx
jmp 0x40d003
test al, 0x40
je 0x40cfe8
push dword [esi + 4]
push 2
push ebx
push 0x46bac4
call fcn.004527bd
mov dword [esi + 0xc], 2
jmp 0x40d003
test al, al
jns 0x40d006
push dword [esi + 4]
push 3
push ebx
push 0x46bac8
call fcn.004527bd
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40d03b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x46bacc
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.004524d4
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40d0c6
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.00452bc9
push edi
mov ebx, eax
call fcn.004528b1
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40d0a3
cmp byte [ebp + 8], 0xff
jne 0x40d092
cmp byte [ebp + 9], 0xfe
jne 0x40d0a3
mov dword [esi + 0xc], 1
jmp 0x40d0c1
cmp byte [ebp + 8], 0xfe
jne 0x40d0a3
cmp byte [ebp + 9], 0xff
jne 0x40d0a3
mov dword [esi + 0xc], eax
jmp 0x40d0c1
cmp ebx, 3
jb 0x40d0c5
cmp byte [ebp + 8], 0xef
jne 0x40d0c5
cmp byte [ebp + 9], 0xbb
jne 0x40d0c5
cmp byte [ebp + 0xa], 0xbf
jne 0x40d0c5
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40d18d
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40d1bd
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40d1e3
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor al, al
jmp 0x40d1e5
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.00452bc9
mov dword [edi], eax
push dword [esi + 4]
call fcn.00452c13
add esp, 0x14
test eax, eax
je 0x40d1e3
and dword [edi], 0
jmp 0x40d1b9
mov al, 1
pop ebx
ret 4

Function at 0x40d525
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40d5a4
cmp edi, 4
jle 0x40d536
push 4
pop edi
push 4
pop eax
sub eax, edi
push eax
lea eax, [edi + esi + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00452e30
mov eax, dword [esi + 0x58]
sub eax, edi
lea eax, [eax + esi + 0x14]
push edi
push eax
mov eax, esi
sub eax, edi
add eax, 0x14
push eax
call fcn.0044f8e0
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.00452bc9
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40d5a4
push dword [esi + 4]
call fcn.00452be4
test eax, eax
pop ecx
jne 0x40d59f
push dword [esi + 4]
call fcn.00452c13
test eax, eax
pop ecx
jne 0x40d59f
pop edi
ret
or eax, 0xffffffff
pop edi
ret
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
pop edi
ret

Function at 0x40d6bd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x40d71d
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x40db79
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, eax
xor esi, esi
cmp edi, ebx
mov byte [0x4754b2], bl
je 0x40dbbf
mov byte [0x4754b3], 1
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x40dc02
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.004536f7
add esp, 0x18
mov esi, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, ebx
mov edi, eax
je 0x40dbed
push 0xffffffffffffffff
push esi
mov byte [0x4754b3], bl
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [0x4754b2], 1
jne 0x40dbfb
or eax, 0xffffffff
jmp 0x40dbfd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40dd82
test al, 0x10
je 0x40dd82
cmp byte [0x47e0dd], bl
je 0x40dd82
mov al, 1
jmp 0x40ddd4
push esi
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40dda7
xor al, al
jmp 0x40ddd3
cmp dword [ebp + 0x10], ebx
jne 0x40ddb2
push dword [ebp + 0xc]
push ebx
jmp 0x40ddc2
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40ddbf
push ebx
push dword [ebp + 0xc]
jmp 0x40ddc3
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
pop esi
pop ebx
pop ebp
ret