joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ef0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x828
cmp dword [0x45fa84], 0x13f7
mov eax, dword [esp + 0x82c]
push ebx
mov ebx, dword [esp + 0x834]
push ebp
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [ebx]
mov ebp, 0xc6ef3720
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
jne 0x408f42
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
cmp dword [0x45fa84], 0x60b
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
jne 0x408f90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
mov dword [esp + 0x18], 0x20
jmp 0x408fa4
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, edi
push ecx
shl eax, 4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
call fcn.00408ea0
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x20]
cmp dword [0x45fa84], 0x1b
lea ebx, [edi + ebp]
mov dword [esp + 0x10], eax
mov dword [0x442ee4], 0xffcf03fc
jne 0x40900d
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push 0x401330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov eax, dword [esp + 0x10]
xor eax, ebx
xor eax, dword [esp + 0x14]
mov dword [0x442ee4], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add dword [0x442ee4], eax
sub esi, dword [esp + 0x10]
mov dword [0x442ee8], 0xc5e121b4
mov ecx, esi
shr ecx, 5
mov dword [0x442eec], 0xffffffff
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x24]
add ebp, esi
xor eax, ebp
xor eax, dword [esp + 0x10]
push 0x9e3779b9
lea edx, [esp + 0x20]
push edx
sub edi, eax
call fcn.00408060
sub dword [esp + 0x18], 1
jne 0x408fa0
mov eax, dword [esp + 0x83c]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
pop ebx
add esp, 0x828
ret 8
Function at 0x4090a0
Capabilities:
Copy file
Manipulate console buffer
Terminate process

Disassembly:
sub esp, 0xd64
cmp dword [0x45fa84], 0x516
jne 0x4090f8
push 0
lea eax, [esp + 0x568]
push eax
push 0
call sub.KERNEL32.dll_VerLanguageNameW
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
xor edx, edx
xor ecx, ecx
mov word [esp + 2], dx
lea eax, [esp + 0xc]
push eax
mov word [esp + 4], cx
mov ecx, dword [esp + 4]
push ecx
push edx
lea edx, [esp + 0x170]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [esp + 0xd6c]
shr eax, 3
test eax, eax
jbe 0x409232
mov ecx, dword [esp + 0xd68]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
cmp dword [0x45fa84], 0x29
jne 0x40916a
lea edx, [esp + 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
lea eax, [esp + 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
cmp dword [0x45fa84], 0xe1b
jne 0x40918e
lea ecx, [esp + 0x174]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x45fa84], 0x1c
jne 0x4091df
push 0
call esi
push 0
push 0
push 0
lea edx, [esp + 0xe4]
push edx
call edi
lea eax, [esp + 0x44]
push eax
call ebx
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov edx, dword [esp + 0xd80]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00408ef0
cmp dword [0x45fa84], 0x4fa
jne 0x40921e
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x18], cx
mov word [esp + 0x1a], dx
mov ecx, dword [esp + 0x18]
push ecx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
add dword [esp + 0x10], 8
sub dword [esp + 0x18], 1
jne 0x409135
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd64
ret 0xc
Function at 0x409240
Capabilities:
Connect pipe
Extract resource via kernel32 functions
Get disk information
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
sub esp, 0x438
cmp dword [0x45fa84], 0x37
jne 0x409314
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x401364
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0
call dword [sym.imp.KERNEL32.dll_InitAtomTable]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
push 0
lea eax, [esp + 0x3c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
mov dword [esp], 0
mov eax, dword [0x45fa88]
add dword [esp], eax
mov eax, 0x38d6
add dword [esp], eax
mov ecx, dword [esp]
mov eax, dword [esp + 0x43c]
mov dl, byte [ecx + eax]
mov ecx, dword [0x442ee0]
mov byte [ecx + eax], dl
add esp, 0x438
ret 4

Function at 0x409380
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov al, 0x65
mov cl, 0x6c
push 0x438828
mov byte [0x438829], al
mov byte [0x43882a], 0x72
mov byte [0x438830], 0x2e
mov byte [0x438831], 0x64
mov byte [0x438832], cl
mov byte [0x438834], 0
mov byte [0x43882c], al
mov byte [0x43882d], cl
mov byte [0x43882e], 0x33
mov byte [0x43882f], 0x32
mov byte [0x438833], al
mov byte [0x43882b], 0x6e
mov byte [0x438828], 0x6b
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x45fa84]
mov edx, dword [0x442ee0]
mov dword [0x45f11c], eax
lea eax, [esp]
push eax
push 0x40
push ecx
push edx
mov byte [0x438836], 0
mov byte [0x43882f], 0x50
mov byte [0x43882d], 0x61
mov byte [0x438828], 0x60
mov byte [0x438830], 0x7c
mov byte [0x438831], 0x6f
mov byte [0x438835], 0x74
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x40a5b0
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40a5d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a5da
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a5f1
mov edx, dword [ebp - 4]
push edx
call fcn.00410660
add esp, 4
or eax, 0xffffffff
jmp 0x40a5f3
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40a850
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a86f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a876
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a88d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00410660
add esp, 4
or eax, 0xffffffff
jmp 0x40a88f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x414dc0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4379e4]
jne 0x414dca
repz ret
jmp fcn.0041aea0
Function at 0x10025d46
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10025d7d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10025d7b
push 0x19fa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
jmp 0x10025da5
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x10025da5
push 0x141b
push 1
push 0x842
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esp, ebp
pop ebp
ret
Function at 0x1002b577
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 0x2054
push 0x44cd
push 0x3ad
push 1
lea eax, [ebp + 8]
push eax
push 0x11a6
lea eax, [ebp - 0x10]
push eax
push 0x5893
call fcn.1002abf3
add esp, 0x20
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002b5c0
xor eax, eax
jmp 0x1002b702
lea eax, [ebp - 8]
push eax
push 0x69bc
lea eax, [ebp - 0x10]
push eax
push 0x3eb4
push 0x3fa8
push 0x139d
push 1
lea eax, [ebp + 8]
push eax
call fcn.1002ac82
add esp, 0x20
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002b5fc
xor eax, eax
jmp 0x1002b702
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
call fcn.1002aeca
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x1002b61b
xor eax, eax
jmp 0x1002b702
push 0x6569
lea eax, [ebp - 0x24]
push eax
push 0x4df5
push 1
lea eax, [ebp - 0x10]
push eax
push 0xc79
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1002af2d
add esp, 0x24
push 0x6e68
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
push 0x6db2
push 0
call fcn.10025da9
add esp, 0x18
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x1002b685
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 1
call fcn.1002b523
add esp, 0xc
push dword [ebp - 4]
call fcn.1002a861
pop ecx
test eax, eax
jne 0x1002b696
xor eax, eax
jmp 0x1002b702
push 0x3405
push 1
push dword [ebp - 4]
call fcn.100271b2
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002b6ea
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002b6c7
xor eax, eax
jmp 0x1002b702
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002b6e0
xor eax, eax
jmp 0x1002b702
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002b6fb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002b6ff
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1003e8a1
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1003e91f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
add ecx, dword [eax + 0x24]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov esi, dword [ebp - 0x28]
add edx, dword [esi]
mov esi, dword [ebp - 8]
mov esi, dword [esi]
mov ax, word [ecx + eax]
mov word [esi + edx], ax
jmp 0x1003e927
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100781d2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10081330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10068ff4
mov dword [ebp - 0x14], eax
cmp dword [0x1066de2c], esi
jne 0x100782c5
push 0x800
push esi
push 0x10007dec
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10078252
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100783a5
push esi
push esi
push 0x10007dec
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100783a5
push 0x10007e04
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100783a5
push eax
call ebx
push 0x10007e10
push edi
mov dword [0x1066de2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007e20
push edi
mov dword [0x1066de30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007e34
push edi
mov dword [0x1066de34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066de3c], eax
test eax, eax
je 0x100782c2
push 0x10007e50
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066de38], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100782ea
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100782dd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x100782ff
push 4
pop eax
jmp 0x100783a7
cmp dword [ebp - 0x14], esi
je 0x100782ff
push dword [0x1066de2c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100782e4
mov eax, dword [0x1066de38]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007835d
cmp dword [0x1066de3c], edi
je 0x1007835d
push eax
call ebx
push dword [0x1066de3c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007835d
test eax, eax
je 0x1007835d
call ecx
test eax, eax
je 0x10078352
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10078352
test byte [ebp - 8], 1
jne 0x1007835d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007838d
mov eax, dword [0x1066de30]
cmp eax, edi
je 0x1007838a
push eax
call ebx
test eax, eax
je 0x1007838a
call eax
mov esi, eax
test esi, esi
je 0x1007838a
mov eax, dword [0x1066de34]
cmp eax, edi
je 0x1007838a
push eax
call ebx
test eax, eax
je 0x1007838a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1066de2c]
call ebx
test eax, eax
je 0x100783a5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100783a7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006537a
mov esp, ebp
pop ebp
ret
Function at 0xaf4a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0xb1b010]
push edi
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x54f0392
nop
push eax
nop
call 0x77795da0
mov ebx, eax
push 0xb249e8
mov dword [ebp - 4], ebx
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
mov byte [ebx + edi], 0
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0xaf4b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
call 0x769b97f0
nop
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0xb249e8
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0xaf4b06
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
push 0xb249e8
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x54f0398
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xaf6ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0xaf6f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x769b8cf0
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0xaf6fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0xaf6fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0xaf6f91
mov ecx, dword [ebx]
push edi
push pe_nt_image_headers32
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
nop
call 0x769b8cf0
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0xaf6fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0xaf6fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0xaf6fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.00d290f4]
push eax
call dword [fcn.00d29088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0xaf6f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.00af7590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0xfe7af0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0xd290e0]
test esi, esi
jne 0xfe7b08
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0xfe7b01
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0xfe7b01
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0xfe7b6a
jmp 0xfe7b50
mov eax, dword [ebx + edi*4]
mov ecx, dword [0xd28bf0]
add eax, esi
call fcn.00fe5610
test eax, eax
je 0xfe7b73
inc edi
cmp edi, dword [ebp - 4]
jb 0xfe7b50
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401d84
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004019b0
push eax
push esi
push dword [ebp + 8]
call fcn.00401965
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl

Function at 0x4044a9
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x42b000], 0
push ebx
push ebp
push esi
push edi
mov edi, pe_overlay
mov ebx, 0x42b000
je 0x4044c8
push ebx
call fcn.004065ce
jmp 0x4044ce
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x424384]
test esi, esi
je 0x404521
mov ecx, dword [0x424348]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x424380]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x404506
test esi, esi
jne 0x4044f0
jmp 0x404521
mov edx, dword [ecx + 2]
mov dword [0x423b20], edx
mov edx, dword [ecx + 6]
mov dword [0x4243e8], edx
lea edx, [ecx + 0xa]
mov dword [0x423b1c], edx
cmp dword [0x423b1c], 0
jne 0x40453c
cmp di, 0xffff
jne 0x404538
mov edi, 0x3ff
jmp 0x4044d0
xor edi, edi
jmp 0x4044d0
movzx eax, word [ecx]
push eax
push ebx
call fcn.004065b5
push 0xfffffffffffffffe
push 0x423b40
call fcn.00406663
push eax
push dword [0x420928]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x42436c]
mov esi, dword [0x424368]
test eax, eax
je 0x404589
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x404580
push eax
lea eax, [esi + 0x18]
push eax
call fcn.00406663
add esi, 0x418
dec edi
jne 0x404570
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405efa
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422550], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405f1e
test al, 0x10
jne 0x405f21
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422550
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405f4c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8