joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c2181
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6c21b9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.006c020e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.006c01e6
jmp 0x6c21c5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6c3872
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x6c38b4
call fcn.006c9369
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA_1]
cmp eax, edi
je 0x6c38b4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
cmp eax, edi
jne 0x6c38ab
xor eax, eax
jmp 0x6c38bc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006c38c2
pop edi
pop esi
pop ebx
ret 4

Function at 0x6c9899
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x6c98c7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x6c98e5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006c97ff
jmp 0x6c98e5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6c98e5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006c97ff
test edi, edi
mov eax, edi
jne 0x6c98cf
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x4010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401114
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401110
lea ebx, [ebx]
cmp esi, eax
jae 0x401114
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401100
cmp esi, eax
jb 0x40111a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4020b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4167a9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41c350]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [0x41d8ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x41d8ac
mov dword [esp + 0x24], ebx
call edx
mov ebp, dword [esp + 0x2c]
add eax, 0x10
mov dword [ebp], eax
mov esi, dword [esp + 0x30]
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], 1
jl 0x4021ba
push 0x4172f8
push eax
call fcn.00406635
add esp, 8
cmp eax, ebx
je 0x4021ba
sub eax, dword [esi]
mov edi, eax
js 0x4021ba
push edi
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00401c40
push eax
mov ecx, ebp
mov dword [esp + 0x28], 1
call fcn.00402030
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402176
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 1
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00401c10
push eax
mov ecx, esi
mov dword [esp + 0x28], 2
call fcn.00402030
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4021ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x402280
Capabilities:
Copy file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x416835
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x41c350]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41c350]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x248]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], 0
mov eax, dword [0x41d8ac]
mov edx, dword [eax + 0xc]
mov ebx, 1
mov ecx, 0x41d8ac
mov dword [esp + 0x240], ebx
call edx
add eax, 0x10
mov dword [ebp], eax
lea eax, [esp + 0x12c]
push eax
push 0x104
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x4172fa
lea edx, [esp + 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp dword [esp + 0x250], ebx
jne 0x402372
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004021d0
mov edi, dword [esp + 0x250]
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x24], esp
mov esi, esp
push eax
mov byte [esp + 0x24c], 2
call fcn.004014a0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0x248], bl
call fcn.004018a0
add esp, 8
jmp 0x402387
mov edi, dword [esp + 0x24c]
push 0
lea ecx, [esp + 0x28]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4023aa
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402392
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, ebp
call fcn.00401cc0
lea eax, [edi - 0x10]
mov byte [esp + 0x240], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00406777
add esp, 0x230
ret
Function at 0x405570
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CMD5Checksum.0
call fcn.00407b50
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret

Function at 0x405cfe
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41c350]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00405c3d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00407b50
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x405d4d
cmp dword [ebp - 0x1c], 5
jb 0x405d65
jmp 0x405d61
cmp dword [ebp - 0x10], 1
jne 0x405d65
cmp dword [ebp - 0x1c], 4
ja 0x405d61
jne 0x405d65
cmp dword [ebp - 0x18], 0
jbe 0x405d65
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41786c
call fcn.00405af0
test eax, eax
jge 0x405d86
mov byte [0x41d835], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00406777
add ebp, 0x78
leave
ret

Function at 0x406777
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c350]
jne 0x406781
repz ret
jmp fcn.00409ee6
Function at 0x40696c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4069a9
cmp dword [ebp + 0x14], edi
je 0x4069a9
cmp ecx, edi
jne 0x4069b0
call fcn.00408a8d
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00408a2e
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4069c4
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4069e5
cmp ebx, 0xffffffff
je 0x4069d4
push ebx
push edi
push ecx
call fcn.00407b50
add esp, 0xc
cmp esi, edi
je 0x406991
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x406991
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x406a01
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x406a08
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x406af9
test word [esi + 0xc], 0x10c
je 0x406a5c
mov eax, dword [esi + 4]
test eax, eax
je 0x406a5c
jl 0x406b5a
cmp ebx, eax
mov edi, ebx
jb 0x406a2d
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x406b01
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040639e
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x406af1
cmp ebx, dword [ebp - 0xc]
jb 0x406ac9
cmp dword [ebp - 0xc], 0
je 0x406a86
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x406a7b
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x406a82
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x406a91
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406a91
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x406b2d
push eax
push dword [ebp - 8]
push esi
call fcn.0040a7ec
pop ecx
push eax
call fcn.0040b222
add esp, 0xc
test eax, eax
je 0x406b6c
cmp eax, 0xffffffff
je 0x406b5a
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x406af1
push esi
call fcn.0040ab41
cmp eax, 0xffffffff
pop ecx
je 0x406b5e
cmp dword [ebp - 4], 0
je 0x406b2d
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x406a10
mov eax, dword [ebp + 0x14]
jmp 0x4069ab
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x406b18
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00407b50
add esp, 0xc
call fcn.00408a8d
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4069a1
cmp dword [ebp + 0xc], 0xffffffff
je 0x406b43
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00407b50
add esp, 0xc
call fcn.00408a8d
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4069a1
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4069ab
or dword [esi + 0xc], 0x10
jmp 0x406b5e
Function at 0x40d59e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x41cf38]
je 0x40d5b9
inc edi
cmp edi, 0x17
jb 0x40d5aa
cmp edi, 0x17
jae 0x40d739
push ebp
push 3
call fcn.00413806
cmp eax, 1
pop ecx
je 0x40d705
push 3
call fcn.00413806
test eax, eax
pop ecx
jne 0x40d5ed
cmp dword [0x41c3a0], 1
je 0x40d705
cmp ebx, 0xfc
je 0x40d738
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41dcc8
push ebp
call fcn.00410e1a
add esp, 0xc
test eax, eax
je 0x40d623
push esi
push esi
push esi
push esi
push esi
call fcn.00408932
add esp, 0x14
push 0x104
mov esi, 0x41dce1
push esi
push 0
mov byte [0x41dde5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d667
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00410e1a
add esp, 0xc
test eax, eax
je 0x40d667
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00408932
add esp, 0x14
push esi
call fcn.00409dd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40d6ac
push esi
call fcn.00409dd0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41dfdc
push 0x41801c
sub ecx, eax
push ecx
push eax
call fcn.00411796
add esp, 0x14
test eax, eax
je 0x40d6ac
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00408932
add esp, 0x14
jmp 0x40d6ae
xor esi, esi
push 0x418018
push ebx
push ebp
call fcn.004116d8
add esp, 0xc
test eax, eax
je 0x40d6ce
push esi
push esi
push esi
push esi
push esi
call fcn.00408932
add esp, 0x14
push dword [edi*8 + 0x41cf3c]
push ebx
push ebp
call fcn.004116d8
add esp, 0xc
test eax, eax
je 0x40d6f0
push esi
push esi
push esi
push esi
push esi
call fcn.00408932
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00413649
add esp, 0xc
jmp 0x40d738
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40d738
cmp ebp, 0xffffffff
je 0x40d738
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41cf3c]
push dword [esi]
call fcn.00409dd0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x413649
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004098e2
xor ebx, ebx
cmp dword [0x41e2bc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41371f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4137ff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4137ff
push eax
call fcn.00409874
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41e2bc], eax
call esi
push eax
call fcn.00409874
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41e2c0], eax
call esi
push eax
call fcn.00409874
mov dword [0x41e2c4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040d1e6
test eax, eax
pop ecx
pop ecx
je 0x4136ed
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408932
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41371f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00409874
cmp eax, ebx
pop ecx
mov dword [0x41e2cc], eax
je 0x41371f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409874
pop ecx
mov dword [0x41e2c8], eax
mov eax, dword [0x41e2c8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4137a4
cmp dword [0x41e2cc], ecx
je 0x4137a4
push eax
call fcn.004098eb
push dword [0x41e2cc]
mov esi, eax
call fcn.004098eb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4137a4
cmp edi, ebx
je 0x4137a4
call esi
cmp eax, ebx
je 0x413771
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413771
test byte [ebp - 0x18], 1
jne 0x4137a4
lea eax, [ebp - 0x10]
push eax
call fcn.0040d21d
test eax, eax
pop ecx
je 0x41378c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408932
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41379b
or dword [ebp + 0x10], 0x200000
jmp 0x4137df
or dword [ebp + 0x10], 0x40000
jmp 0x4137df
mov eax, dword [0x41e2c0]
cmp eax, dword [ebp - 8]
je 0x4137df
push eax
call fcn.004098eb
cmp eax, ebx
pop ecx
je 0x4137df
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4137df
mov eax, dword [0x41e2c4]
cmp eax, dword [ebp - 8]
je 0x4137df
push eax
call fcn.004098eb
cmp eax, ebx
pop ecx
je 0x4137df
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41e2bc]
call fcn.004098eb
cmp eax, ebx
pop ecx
je 0x4137ff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413801
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 8], 0
je 0x403c2f
push edi
xor edi, edi
test ebx, ebx
je 0x403bf0
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
je 0x403c00
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov al, byte [ecx + edx]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx], al
inc dword [esi + 0xc]
inc edi
cmp edi, ebx
jb 0x403bd1
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esi]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x10000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403bf0
mov eax, dword [ebp - 4]
test eax, eax
je 0x403bf0
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
jmp 0x403bd9
push esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0040e3c0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
jmp 0x403bca
Function at 0x40d830
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x228]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.00401f10
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x42e7ee
mov eax, dword [0x4a7f54]
test eax, eax
je 0x42e807
mov byte [ebp - 1], 0
mov esi, 0x4a90e8
cmp eax, 1
je 0x42e81d
push 0x4a7f54
lea ecx, [ebp - 1]
mov eax, 0x4a7f6c
call fcn.0040f6f0
test al, al
je 0x42e844
mov cl, byte [0x4a90e8]
mov bl, byte [0x4a90e9]
push 0x4a7f50
lea edx, [ebp - 0x438]
push edx
push 0x104
push 0x4a7f6c
mov byte [0x4a7f58], cl
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [0x4a7f54]
push eax
push 0x4a7f6c
call fcn.00401460
test eax, eax
jne 0x42e85a
cmp bl, 1
je 0x42e880
call fcn.00410540
call fcn.00410720
cmp byte [0x4a7f58], 0
jne 0x40d909
mov esi, 0x4a8710
call fcn.0040e430
push 1
mov ecx, 0x4a8178
call fcn.00409480
cmp byte [0x4a7f58], 0
jne 0x40d928
mov ecx, 0x4a8710
call fcn.00401000
mov ebx, 0x4a90e8
call fcn.0040ed80
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
push 0x483d52
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 0x40d93f
lea ecx, [ebp - 0x228]
mov dword [0x4974f4], 0xffffffff
push ecx
jmp 0x40d939
mov ebx, dword [0x4a7f5c]
push 0xffffffffffffffff
push 1
mov byte [ebp - 2], 0
call fcn.00403d00
mov dl, byte [0x4974e8]
mov bl, byte [ebp - 2]
mov byte [0x4a90eb], dl
jmp 0x40d8cb
lea eax, [ebp - 0x228]
mov dword [0x4974f4], 1
push eax
jmp 0x40d939
mov ebx, 0x4a90e8
call fcn.0040ed80
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4974f4], 1
jmp 0x40d93f
call fcn.00433597
test al, al
jne 0x40d8ec
push 0x104
lea edx, [ebp - 0x438]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [ebp - 1], 0
je 0x42e8fe
mov edi, 0x483dc0
lea esi, [ebp - 0x14]
call fcn.00401c30
mov edi, 0x4a7f6c
mov eax, esi
call fcn.0040d510
mov edi, 0x483dc0
mov eax, esi
call fcn.0040d510
mov ecx, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x228]
push eax
push ecx
lea edx, [ebp - 0x438]
push edx
push 0x483dc4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, esi
call fcn.00402260
jmp 0x40d928
push 1
lea eax, [ebp - 0x228]
push eax
push edi
lea ecx, [ebp - 0x438]
push ecx
push 0x483dc4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40d928
Function at 0x40dd30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
call fcn.00403600
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42790b
mov edx, dword [ebp - 8]
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0
push str.Include
push edx
xor bl, bl
call edi
test eax, eax
jne 0x40dde4
mov eax, dword [ebp - 4]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411777
add esp, 4
lea esi, [ebp - 0x10]
call fcn.0040f670
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0
push str.Include
push ecx
call edi
test eax, eax
jne 0x40dddc
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
xor edx, edx
mov word [esi + eax*2], dx
mov eax, dword [ebp + 8]
mov ebx, esi
call fcn.00402170
mov bl, 1
lea esi, [ebp - 0x10]
call fcn.0040f690
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e6d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
lea esi, [edi + 0xc]
mov ecx, esi
call fcn.0040bf10
lea eax, [ebp - 0x15c]
push eax
mov byte [edi + 0x2e], 0
mov dword [ebp - 0x15c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0x154]
mov dword [edi + 8], eax
lea ebx, [ebp - 0x148]
mov eax, esi
mov dword [edi], ecx
mov dword [edi + 4], edx
call fcn.00402170
call fcn.0040e830
mov eax, 0x4843f0
call fcn.0040e850
mov eax, dword [edi]
xor ebx, ebx
sub eax, 5
mov byte [edi + 0x2a], bl
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov word [edi + 0x28], bx
je 0x427c69
dec eax
jne 0x40e787
mov eax, dword [edi + 4]
mov byte [edi + 0x1d], 1
mov byte [edi + 0x1f], 1
mov byte [edi + 0x21], 1
cmp eax, ebx
je 0x427c3a
cmp eax, 1
jne 0x40e787
mov byte [edi + 0x23], al
mov byte [edi + 0x25], al
cmp byte [ebp - 0x42], al
jne 0x427c5a
mov word [edi + 0x26], 0x101
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call fcn.0040f130
cmp dword [ebp - 8], ebx
je 0x40e7b9
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.0040f0f0
call eax
cmp dword [ebp - 4], 1
jne 0x40e7b9
mov byte [edi + 0x2a], 1
xor eax, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
cmp byte [edi + 0x2a], bl
je 0x427cca
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040f1a0
cmp dword [ebp - 0x14], ebx
je 0x427cbb
lea edx, [ebp - 0x40]
push edx
call fcn.0040f160
call eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, ebx
je 0x40e811
push eax
call esi
mov eax, dword [ebp - 0x10]
mov dx, word [ebp - 0x40]
mov word [edi + 0x2c], dx
cmp eax, ebx
je 0x40e823
push eax
call esi
pop esi
mov eax, edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x42], 1
jne 0x427c4b
mov word [edi + 0x22], 0x101
jmp 0x40e787
mov byte [edi + 0x23], 1
mov word [edi + 0x24], 0x101
jmp 0x40e787
mov byte [edi + 0x27], 1
mov word [edi + 0x28], 0x101
jmp 0x40e787
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x427c78
mov word [edi + 0x1c], 0x101
jmp 0x427ca9
cmp eax, 1
jne 0x427c88
mov byte [edi + 0x1d], al
mov word [edi + 0x1e], 0x101
jmp 0x427ca9
cmp eax, 2
jne 0x427ca9
cmp byte [ebp - 0x42], 1
mov byte [edi + 0x1d], 1
mov byte [edi + 0x1f], 1
mov byte [edi + 0x21], 1
jne 0x427ca5
mov byte [edi + 0x1e], 1
jmp 0x427ca9
mov byte [edi + 0x20], 1
movzx eax, byte [ebp - 0x44]
shr eax, 6
and eax, 1
mov byte [edi + 0x2e], al
jmp 0x40e787
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x40e801
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40e811