joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a89
Capabilities:
Enumerate processes

Disassembly:
push 0x294
mov eax, 0x413105
call fcn.0041213e
mov edi, ecx
mov esi, dword [edi]
push dword [esi + 4]
push edi
call fcn.00408051
xor ebx, ebx
mov dword [esi + 4], esi
push ebx
mov dword [esi], esi
mov dword [esi + 8], esi
push 2
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406ac9
xor eax, eax
jmp 0x406bc6
push 0x228
lea eax, [ebp - 0x284]
mov dword [ebp - 0x288], 0x22c
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x28], ebx
add esp, 0xc
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x288]
mov dword [ebp - 4], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x406bac
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x298]
mov dword [ebp - 0x28c], ebx
push eax
mov ecx, edi
call fcn.004081e6
mov eax, dword [ebp - 0x290]
cmp byte [eax + 0xd], 0
jne 0x406b4d
cmp ebx, dword [eax + 0x10]
jb 0x406b4d
cmp eax, dword [edi]
jne 0x406b4f
xor ebx, ebx
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x30]
push eax
mov edx, ebx
call fcn.00406951
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
pop ecx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
call fcn.00407ef0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2a0]
mov ecx, edi
push eax
call fcn.004083eb
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00405e80
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x406b17
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00405e80
xor eax, eax
inc eax
call fcn.004120fc
ret

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

Disassembly:
push esi
xor esi, esi
test ecx, ecx
jne 0x406f7b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x406f96
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406f96
mov edx, 0x410
xor ecx, ecx
and eax, edx
inc ecx
cmp eax, edx
cmove esi, ecx
mov eax, esi
pop esi
ret
Function at 0x406f9d
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x42000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x400
lea eax, [ebp - 0x408]
push edi
xor esi, esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [0x422878], esi
je 0x406fdc
mov eax, dword [0x422054]
jmp 0x407088
push esi
push 0x1a
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x407063
push 0x416ea0
lea eax, [ebp - 0x408]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x408]
push 0x416ea4
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x408]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str._appsafecheck.txt
lea eax, [ebp - 0x408]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x408]
push esi
push 0x80
push 4
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x42003c], eax
call fcn.00406f13
xor edi, edi
inc edi
test eax, eax
je 0x40707a
call fcn.00406de2
test eax, eax
je 0x40707a
mov esi, edi
mov dword [0x422054], esi
mov eax, esi
mov dword [0x422878], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00410e60
leave
ret

Function at 0x407096
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x4070e9
mov eax, dword [0x42003c]
cmp eax, 0xffffffff
je 0x4070e9
push edi
xor edi, edi
push 2
push edi
push edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4070c1
sub ecx, edx
lea eax, [ebp - 4]
push edi
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push esi
push dword [0x42003c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
jmp 0x4070eb
xor eax, eax
pop esi
leave
ret
Function at 0x4077cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x42000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x800
xor esi, esi
lea eax, [ebp - 0x808]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x808]
push esi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x407840
push 0x414b04
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x80c]
mov dword [ebp - 0x80c], esi
lea ecx, [ebp - 0x808]
call fcn.004070ee
test eax, eax
jne 0x407840
cmp dword [ebp - 0x80c], esi
jne 0x407843
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410e60
leave
ret
Function at 0x408593
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x42000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x40863f
push 0x400
xor ebx, ebx
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, ebx
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
push dword [esi + 0x417040]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x408637
lea eax, [ebp - 0x404]
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
pop ecx
pop ecx
test eax, eax
je 0x408637
mov edx, 0x400
cmp eax, edx
je 0x408637
cmp byte [ebp + eax - 0x405], 0x5c
jne 0x408621
lea ecx, [eax - 1]
mov eax, ecx
cmp ecx, edx
jae 0x408655
mov byte [ebp + ecx - 0x404], bl
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x408650
add esi, 4
cmp esi, 8
jb 0x4085cc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410e60
leave
ret
xor eax, eax
inc eax
jmp 0x408641
call fcn.00411472
int3
Function at 0x40892e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x42000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0xc30], esi
je 0x408960
cmp dword [edi + 0xc34], esi
je 0x408960
xor eax, eax
inc eax
jmp 0x408a8f
cmp dword [ebp + 8], esi
jne 0x40896c
xor eax, eax
jmp 0x408a8f
push 0x410
lea eax, [ebp - 0x418]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
pop ecx
pop ecx
push dword [ebp + 8]
mov edx, 0x82
push ecx
lea ecx, [ebp - 0x418]
call fcn.004086b4
mov ebx, 0x104
lea ecx, [ebp - 0x418]
push 0x415990
mov edx, ebx
call fcn.0040865b
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x4089d4
push str._CptShareAPIWrapper::Init__Failed_to_call_SetDllDirectory_to:
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x410
lea eax, [ebp - 0x828]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
pop ecx
pop ecx
lea eax, [ebp - 0x418]
mov edx, 0x82
push eax
push ecx
lea ecx, [ebp - 0x828]
call fcn.004086b4
push str.ucrtbase.dll
mov edx, ebx
lea ecx, [ebp - 0x828]
call fcn.0040865b
push 8
push esi
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push str.CptShare.dll
mov edx, ebx
lea ecx, [ebp - 0x418]
call fcn.0040865b
push ecx
lea ecx, [ebp - 0x418]
call fcn.0040876e
mov ecx, eax
lea eax, [edi + 0xc34]
mov dword [edi + 0xc30], ecx
mov dword [eax], esi
test ecx, ecx
je 0x408a7e
push str.cpt_create_helper
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
lea eax, [edi + 0xc34]
test ebx, ebx
je 0x408a7e
push eax
mov ecx, ebx
call dword [0x414664]
call ebx
pop ecx
lea eax, [edi + 0xc34]
cmp dword [edi + 0xc30], esi
je 0x408a8d
cmp dword [eax], esi
je 0x408a8d
xor esi, esi
inc esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410e60
leave
ret 8
Function at 0x408aa0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x42000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x408b64
mov ecx, esi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x408ac7
sub ecx, edx
sar ecx, 1
je 0x408b64
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x408b64
push 0x410
lea eax, [ebp - 0x414]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x414]
push eax
push edi
push 0x414cac
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x408b58
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x408b64
lea esi, [ebp - 0x414]
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x408b67
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00410e60
leave
ret 4
Function at 0x40922c
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x14]
mov word [ebp - 8], 0x500
push eax
mov esi, ecx
lea eax, [ebp - 0xc]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
push eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x409291
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
call fcn.00410e60
leave
ret

Function at 0x4092a1
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0xf01ff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4092ce
xor al, al
jmp 0x409345
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0x12
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 0xc], 3
jne 0x409314
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x13
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x409323
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
jmp 0x409326
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40933a
call fcn.0040922c
push dword [ebp - 4]
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
leave
ret
Function at 0x409348
Capabilities:
Get common file path

Disassembly:
push 0x424
mov eax, 0x4133b8
call fcn.0041213e
mov esi, ecx
mov dword [ebp - 0x42c], esi
xor ebx, ebx
lea eax, [ebp - 0x424]
push 0x412
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x430], esi
push eax
mov dword [ebp - 0x428], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.system32msiexec.exe
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, 0x416c04
mov ecx, esi
push edi
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_wchar_t_const__]
lea eax, [ebp - 0x424]
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
mov dword [ebp - 0x428], 1
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__]
push edi
mov ecx, esi
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__]
mov eax, esi
call fcn.004120fc
ret
Function at 0x40d610
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef4
call fcn.004121b0
mov eax, dword [0x42000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1f40
lea eax, [ebp - 0x2ee8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2eec], 0
lea eax, [ebp - 0x2eec]
push eax
push 0x1f40
lea eax, [ebp - 0x2ee8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40d73c
lea eax, [ebp - 0xfa8]
xor esi, esi
test dword [ebp - 0x2eec], 0xfffffffc
mov dword [ebp - 0x2ef0], eax
mov eax, 0xfa0
mov word [ebp - 0x2ef2], ax
jbe 0x40d728
nop word [eax + eax]
push 0xfa0
lea eax, [ebp - 0xfa8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xfa8]
push 0x7cf
push eax
push dword [ebp + esi*4 - 0x2ee8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xfa8]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d6e0
sub eax, edx
mov ecx, 0x420048
sar eax, 1
add eax, eax
push 0
push dword [ebp + esi*4 - 0x2ee8]
mov word [ebp - 0x2ef4], ax
lea eax, [ebp - 0x2ef4]
push eax
call fcn.0040d750
test eax, eax
je 0x40d73c
mov eax, dword [ebp - 0x2eec]
inc esi
shr eax, 2
cmp esi, eax
jb 0x40d6a0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410e60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00410e60
mov esp, ebp
pop ebp
ret
Function at 0x411000
Capabilities:
Get system information on windows
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xf8
push esi
mov esi, dword [sym.imp.kernel32.dll_CreateFileA]
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.vkew777
call esi
push eax
pop edi
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
je 0x41115f
push 0
push 0x80
push 4
push 0
push 1
push 4
push str.9acqr70
call esi
push eax
pop esi
cmp esi, 0xffffffff
jne 0x411061
pop edi
pushfd
xor eax, eax
inc eax
popfd
pop esi
add esp, 0xf8
ret
push ebx
mov ebx, dword [sym.imp.kernel32.dll_SetFilePointer]
push ebp
mov ebp, dword [sym.imp.kernel32.dll_LockFile]
nop
push 0
lea eax, [esp + 0x14]
push eax
push 0xc8
lea ecx, [esp + 0x4c]
push ecx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
or eax, eax
je 0x4110d1
push 2
push 0
push 0
push esi
call ebx
mov edx, dword [esp + 0x10]
push 0
push edx
push 0
push eax
pop edi
push edi
push esi
call ebp
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x4c]
push edx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [esp + 0x10]
push 0
push eax
push 0
push edi
push esi
call dword [sym.imp.kernel32.dll_UnlockFile]
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x10], 0xc8
je 0x411070
push edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
call edi
push esi
call edi
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x38]
sub edx, edx
mov eax, 0x21c00
div ecx
mov edi, dword [sym.imp.user32.dll_wsprintfA]
lea edx, [esp + 0x40]
push ecx
pop ebx
push eax
pop esi
imul esi, ecx
push esi
push str.The_file_map_view_starts_at__ld_bytes_into_the_file._n
push edx
call edi
sub edx, edx
mov eax, 0x21c00
div ebx
lea eax, [esp + 0x4c]
add edx, 0x400
push edx
push str.The_file_map_view_is__ld_bytes_large._n
push eax
call edi
push 0x22000
lea ecx, [esp + 0x5c]
push str.The_file_mapping_object_is__ld_bytes_large._n
push ecx
call edi
mov edx, 0x21c00
sbb edx, esi
push edx
lea eax, [esp + 0x68]
push str.y8f2i7uxvtce_d_bytes_into_the_view._n
push eax
call edi
add esp, 0x30
pop ebp
pop ebx
pop edi
sub eax, eax
pop esi
add esp, 0xf8
ret
Function at 0x4113e0
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
call dword [sym.imp.kernel32.dll_GetPriorityClass]
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_SetEvent]
mov esi, dword [sym.imp.kernel32.dll_GetTickCount]
call esi
push 0xa
push 0
call dword [sym.imp.kernel32.dll_TerminateThread]
call dword [sym.imp.kernel32.dll_SetFileApisToANSI]
call esi
or eax, eax
jne 0x411429
push dword [ebp - 4]
pop ecx
push ecx
pop edx
call edx
sub eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x78cb0fcc
call fcn.004111f0
add esp, 4
push 0
push 0
push 0xf001f
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
or byte es:[eax + ebp*4], bh
or al, 0x75
sti
rcr dword [eax + 0x6e], 0xb3
in eax, 0xe3
ja 0x41147f
and cl, bh
pop ebx
push ecx
or byte [ecx + 0xae576d7], ch
push 0xffff
push 0
call dword [sym.imp.kernel32.dll_VirtualLock]
sub eax, eax
pop esi
mov esp, ebp
pop ebp
ret
nop
Function at 0x411977
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x470b48
call fcn.00412868
mov edi, 0x94
push edi
pop eax
call fcn.004128c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4791c4], ecx
mov eax, dword [esi + 4]
mov dword [0x4791d0], eax
mov edx, dword [esi + 8]
mov dword [0x4791d4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4791c8], esi
cmp ecx, 2
je 0x4119d7
or esi, 0x8000
mov dword [0x4791c8], esi
shl eax, 8
add eax, edx
mov dword [0x4791cc], eax
sub esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411a12
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411a12
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411a2a
cmp eax, 0x20b
je 0x411a17
mov dword [ebp - 0x1c], esi
jmp 0x411a3e
cmp dword [ecx + 0x84], 0xe
jbe 0x411a12
sub eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x411a38
cmp dword [ecx + 0x74], 0xe
jbe 0x411a12
sub eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00412815
pop ecx
or eax, eax
jne 0x411a52
push 0x1c
call fcn.00411953
pop ecx
call fcn.0041278c
or eax, eax
jne 0x411a63
push 0x10
call fcn.00411953
pop ecx
call fcn.00412675
mov dword [ebp - 4], esi
call fcn.00412477
or eax, eax
jge 0x411a7c
push 0x1b
call fcn.0041192e
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x479974], eax
call fcn.00412355
mov dword [0x4791b4], eax
call fcn.004122b3
or eax, eax
jge 0x411aa2
push 8
call fcn.0041192e
pop ecx
call fcn.00412080
or eax, eax
jge 0x411ab3
push 9
call fcn.0041192e
pop ecx
call fcn.00411b8b
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x411ac6
push eax
call fcn.0041192e
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.00412017
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x411ae7
movzx eax, word [ebp - 0x34]
jmp 0x411aea
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00411480
push eax
pop edi
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x411b08
push edi
call fcn.00411cc3
call fcn.00411ce5
jmp 0x411b3a
or dword [ebp - 4], 0xffffffff
push edi
pop eax
lea esp, [ebp - 0x7c]
call fcn.004128a3
ret
Function at 0x411bf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00412a2f
sub esi, esi
inc esi
cmp dword [0x479204], esi
pop ecx
jne 0x411c18
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x479200], esi
mov byte [0x4791fc], al
jne 0x411c7e
mov ecx, dword [0x479968]
or ecx, ecx
je 0x411c5f
mov eax, dword [0x479964]
sub eax, 4
cmp eax, ecx
jmp 0x411c58
mov eax, dword [eax]
or eax, eax
je 0x411c4a
call eax
mov eax, dword [0x479964]
sub eax, 4
cmp eax, dword [0x479968]
mov dword [0x479964], eax
jae 0x411c42
mov eax, 0x47301c
mov esi, 0x473020
cmp eax, esi
push eax
pop edi
jae 0x411c7e
mov eax, dword [edi]
or eax, eax
je 0x411c77
call eax
add edi, 4
cmp edi, esi
jb 0x411c6f
mov eax, 0x473024
mov esi, 0x473028
cmp eax, esi
push eax
pop edi
jae 0x411c9d
mov eax, dword [edi]
or eax, eax
je 0x411c96
call eax
add edi, 4
cmp edi, esi
jb 0x411c8e
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x411cae
push 8
call fcn.0041299b
jmp 0x411cc0
push dword [ebp + 8]
mov dword [0x479204], 1
call fcn.00411b49
pop ecx
pop ebp
ret
Function at 0x411d03
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x478b20]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
sub edx, edx
push edi
sub eax, eax
cmp ecx, dword [eax*8 + 0x4788b0]
je 0x411d30
inc eax
cmp eax, 0x12
jb 0x411d21
push eax
pop esi
shl esi, 3
cmp ecx, dword [esi + 0x4788b0]
jne 0x411e64
mov eax, dword [0x4791bc]
cmp eax, 1
je 0x411e3f
cmp eax, edx
jne 0x411d60
cmp dword [0x4788a8], 1
je 0x411e3f
cmp ecx, 0xfc
je 0x411e64
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
or eax, eax
jne 0x411d99
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00412c50
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00412e80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411ddb
lea eax, [ebp - 0x10c]
push eax
call fcn.00412e80
push eax
pop edi
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x470eb8
push edi
call fcn.00412d50
add esp, 0x10
push edi
call fcn.00412e80
push dword [esi + 0x4788b4]
push eax
pop ebx
call fcn.00412e80
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004128c0
mov ebx, esp
push str.idgrf0mtir1w5e_n_nProgram:
push ebx
call fcn.00412c50
push edi
push ebx
call fcn.00412c60
push 0x470e98
push ebx
call fcn.00412c60
push dword [esi + 0x4788b4]
push ebx
call fcn.00412c60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00412b52
add esp, 0x2c
jmp 0x411e64
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4788b4]
push dword [esi]
call fcn.00412e80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00412f3c
pop edi
pop esi
pop ebx
leave
ret