joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ae0
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x57
je 0x407b55
mov edi, dword [esp + 0x14]
test edi, edi
je 0x407b55
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407b46
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x407b55
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x407c90
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor eax, eax
push esi
push edi
test ebx, ebx
mov dword [esp + 0x10], 0
je 0x407d16
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x407d16
push 0x100
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x407d14
call fcn.00402ee0
mov edi, eax
test edi, edi
je 0x407d05
push edi
push 0x100
push esi
push str.Default
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.Default
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
mov ebx, 1
jne 0x407cfa
mov ebx, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
jne 0x407d14
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x407db0
Capabilities:
Check os version

Disassembly:
push esi
push edi
push 0x94
push 0x40
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x407e18
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x407e11
cmp dword [esi + 0x10], 2
jne 0x407e0f
mov eax, dword [esi + 4]
cmp eax, 4
jb 0x407e0f
jne 0x407df9
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jb 0x407e11
push esi
mov edi, 2
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
ret
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
ret

Function at 0x407e20
Capabilities:
Check os version

Disassembly:
push esi
push edi
push 0x94
push 0x40
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x407e67
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x407e60
cmp dword [esi + 0x10], 2
jne 0x407e60
cmp dword [esi + 4], 5
jne 0x407e60
mov eax, dword [esi + 8]
test eax, eax
jne 0x407e60
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40824c
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov dword [esp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp ebx, esi
je 0x408379
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
je 0x408379
push ebp
push edi
lea edi, [eax + eax + 2]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x408377
push edi
push ebp
push 0xffffffffffffffff
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x40835c
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
jge 0x40835c
lea edi, [ebx + eax*4]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4082ff
lea ebp, [eax + 1]
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4082ff
xor eax, eax
push eax
push eax
push ebp
push esi
push 0xffffffffffffffff
push dword [edi]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x10], 1
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call edi
push dword [esp + 0x18]
call edi
cmp dword [esp + 0x10], 0
je 0x40836e
test esi, esi
je 0x408377
cmp byte [esi], 0x22
jne 0x408377
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebx
cmp byte [eax + esi - 1], 0x22
jne 0x408377
push esi
call ebx
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x408377
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi - 2]
push eax
call ebx
inc eax
push eax
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x408377
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call edi
test ebx, ebx
je 0x408377
push ebx
call edi
jmp 0x408377
test esi, esi
je 0x408377
push esi
call edi
xor esi, esi
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x408383
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea ecx, [ebp - 8]
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
mov edi, str.SystemCnmAdminCheckOK
push edi
mov esi, 0x80000002
push esi
xor ebx, ebx
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4083cb
push dword [ebp - 4]
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x408469
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4084ef
cmp dword [ebp + 0x14], esi
je 0x4084ef
movzx eax, word [ebp + 0x18]
push 2
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [eax + 0x20]
cmp ecx, esi
jne 0x4084c4
movzx ecx, word [eax + 0xe]
dec ecx
je 0x4084c1
sub ecx, 3
je 0x4084bd
sub ecx, 4
je 0x4084b6
xor ecx, ecx
jmp 0x4084c4
mov ecx, 0x100
jmp 0x4084c4
push 0x10
jmp 0x4084c3
push 2
pop ecx
mov edx, dword [eax + 8]
push edi
mov edi, dword [eax]
push esi
push eax
lea ecx, [edi + ecx*4]
add ecx, eax
push ecx
push edx
push esi
push esi
push esi
push edx
push dword [eax + 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
xor eax, eax
inc eax
pop edi
jmp 0x4084f1
xor eax, eax
pop esi
pop ebp
ret 0x14

Function at 0x4085aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp dword [esp + 4], 0
jne 0x4085b8
xor eax, eax
jmp 0x40865f
movzx eax, word [esp + 8]
push ebx
push esi
push edi
push 2
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4085e9
xor eax, eax
jmp 0x40865c
mov esi, dword [ebx + 0x20]
test esi, esi
jne 0x408608
movzx ecx, word [ebx + 0xe]
mov eax, ecx
dec eax
je 0x408603
sub eax, 3
je 0x408603
sub eax, 4
jne 0x408608
xor esi, esi
inc esi
shl esi, cl
lea eax, [esi*4 + 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4085e5
test esi, esi
mov word [edi], 0x300
mov word [edi + 2], si
jle 0x40864a
lea ecx, [edi + 5]
lea eax, [ebx + 0x29]
mov dl, byte [eax + 1]
mov byte [ecx - 1], dl
mov dl, byte [eax]
mov byte [ecx], dl
mov dl, byte [eax - 1]
mov byte [ecx + 1], dl
add eax, 4
add ecx, 4
dec esi
jne 0x408631
push edi
call dword [sym.imp.GDI32.dll_CreatePalette]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
ret 8
Function at 0x4089e3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push 0x57
mov dword [ebp - 4], esi
pop ebx
je 0x408a5d
cmp dword [ebp + 0xc], esi
je 0x408a5d
push edi
push dword [ebp + 8]
call fcn.0040898c
mov edi, eax
cmp edi, esi
je 0x408a43
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408a43
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp dword [ebp - 4], esi
je 0x408a51
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x408a5c
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14

Function at 0x408c28
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push 0x57
mov dword [ebp - 4], esi
pop ebx
je 0x408ca2
cmp dword [ebp + 0xc], esi
je 0x408ca2
push edi
push dword [ebp + 8]
call fcn.00408bca
mov edi, eax
cmp edi, esi
je 0x408c88
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408c88
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp dword [ebp - 4], esi
je 0x408c96
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x408ca1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x408d1c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
mov edi, 0x208
push edi
push 0x40
call esi
push edi
push 0x40
mov dword [ebp - 8], eax
call esi
mov ebx, eax
test ebx, ebx
je 0x408e4c
mov edi, dword [ebp - 8]
test edi, edi
je 0x408e45
push dword [ebp + 8]
push edi
call fcn.00409ede
mov esi, 0x40f3ec
push esi
push edi
call fcn.00409eb4
push 0x40f3e4
push edi
call fcn.00409eb4
add esp, 0x18
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x408e45
push dword [ebp + 8]
push ebx
call fcn.00409ede
push esi
push ebx
call fcn.00409eb4
lea eax, [ebp - 0x230]
push eax
push ebx
call fcn.00409eb4
add esp, 0x18
test byte [ebp - 0x25c], 0x10
je 0x408df5
lea eax, [ebp - 0x230]
push 0x40f3e0
push eax
call fcn.0040a12c
test eax, eax
pop ecx
pop ecx
je 0x408e00
lea eax, [ebp - 0x230]
push 0x40f3d8
push eax
call fcn.0040a12c
test eax, eax
pop ecx
pop ecx
je 0x408e00
push ebx
call fcn.00408d1c
jmp 0x408dfc
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x408e65
xor eax, eax
mov ecx, 0x82
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408d96
cmp dword [ebp - 4], eax
je 0x408e31
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x408e45
mov dword [ebp - 0xc], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x408e5e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
leave
ret 4
cmp dword [ebp - 4], 0
je 0x408e45
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x408e45

Function at 0x408e76
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408e9b
or eax, 2
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x408e9b
inc esi
mov eax, esi
pop esi
ret 4
Function at 0x40909f
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x148
and dword [esp + 4], 0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
mov edi, 0x104
push edi
push 0x40
call esi
push edi
push 0x40
mov ebp, eax
call esi
mov ebx, eax
test ebx, ebx
je 0x409177
test ebp, ebp
je 0x409170
push dword [esp + 0x15c]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40f328
push ebp
call esi
push 0x40f3d4
push ebp
call esi
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x409170
push dword [esp + 0x15c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40f328
push ebx
call esi
lea eax, [esp + 0x44]
push eax
push ebx
call esi
test byte [esp + 0x18], 0x10
jne 0x40913c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x41
pop ecx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409110
cmp dword [esp + 0x10], eax
je 0x409168
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x14], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebp, ebp
je 0x409182
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret 4

Function at 0x401090
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4032ec], eax
mov eax, dword [ebp + 4]
mov dword [0x40313a], eax
xor eax, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x4010bb
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40313a]
mov dword [ebp - 0x48], eax
mov eax, 0x4021c7
mov dword [ebp - 0x54], eax
mov ecx, 0x4031e6
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x40313a]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403338], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403338]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x401179
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x40116b
mov esp, ebp
ret
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x402065
push 0x402053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x40101c
ret
mov edi, edi
mov esi, 0x4010c7
mov edi, esi
push 1
push 0x402083
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreW]
mov edx, eax
pop ebx
mov ecx, 0x380
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x401040
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x401066
xor eax, eax
mov dword [0x402096], eax
add esp, 4
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x405c62
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x405c71
pop dword [ebp - 0x44]
mov eax, 0x5af277f8
add eax, 0xa54de479
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x5b055fa3
add dword [ebp - 0x54], 0xf34ce5a8
mov dword [ebp - 0x50], 0x5da9c77c
sub dword [ebp - 0x50], 0x2b767b37
mov dword [ebp - 0x4c], 0x99cc4d6f
add dword [ebp - 0x4c], 0xb27ff6bf
mov dword [ebp - 0x48], 0x48e1f628
sub dword [ebp - 0x48], 0x48e1f628
lea eax, [ebp - 0x54]
push eax
mov eax, 0xc52ebc9a
add eax, 0x3b1213b2
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xdbcbb7fb
add dword [ebp - 0x54], 0x98a6b15b
mov dword [ebp - 0x50], 0xf229b9d2
sub dword [ebp - 0x50], 0xb0bd585d
mov dword [ebp - 0x4c], 0xc203882d
add dword [ebp - 0x4c], 0xa16be43f
mov dword [ebp - 0x48], 0x42145ec
add dword [ebp - 0x48], 0xfbdeba14
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x32ae6
push 0
call eax
mov ecx, 0x2bd8
xor edi, edi
add edi, eax
mov ebx, 0x51f217f9
add ebx, 0xae4f9807
add ebx, dword [ebp - 0x44]
mov edx, 0x87ca9653
mov dword [ebp - 0x3c], 0xcb6e8cd0
mov esi, dword [ebx]
sub dword [ebp - 0x14], 0x6db29305
xor esi, edx
mov dword [ebp - 0x14], 0x79a11f12
mov dword [edi], esi
sub dword [ebp - 0x30], 0x599c4414
add edi, 0x79248a10
add edi, 0x86db75f4
add ebx, 0xadf72c3a
sub ebx, 0xadf72c36
loop 0x405d84
add eax, 0xbca25873
add eax, 0x435e49c0
mov ebx, eax
add eax, 5
mov ecx, 0x1fa71fc1
sub ecx, 0x1f671fc1
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x40d6d0
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.00401f80
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x431a9d
mov eax, dword [0x4a7cfc]
test eax, eax
je 0x431ab6
mov byte [esp + 0xf], 0
mov esi, 0x4a8e80
cmp eax, 1
je 0x431aca
push 0x4a7cfc
lea ecx, [esp + 0x13]
mov eax, 0x4a7d14
call fcn.0040f3b0
test al, al
je 0x431aeb
mov dl, byte [0x4a8e80]
mov bl, byte [0x4a8e81]
push 0x4a7cf8
lea eax, [esp + 0x234]
push eax
push 0x104
push 0x4a7d14
mov byte [0x4a7d00], dl
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov ecx, dword [0x4a7cfc]
push ecx
push 0x4a7d14
call fcn.00401440
test eax, eax
jne 0x431aff
cmp bl, 1
je 0x431b23
call fcn.004101f0
call fcn.004103e0
cmp byte [0x4a7d00], 0
jne 0x40d7a8
mov esi, 0x4a84b8
call fcn.0040e1e0
push 1
mov ecx, 0x4a7f20
call fcn.00409560
cmp byte [0x4a7d00], 0
jne 0x40d7c7
mov ecx, 0x4a84b8
call entry0
mov ebx, 0x4a8e80
call fcn.0040ebc0
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 0x4846d6
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 0x40d7dc
lea ecx, [esp + 0x20]
mov dword [0x49729c], 0xffffffff
push ecx
jmp 0x40d7d6
mov edx, dword [0x4a7d04]
push 0xffffffffffffffff
push edx
push 1
xor bl, bl
call fcn.00403e90
mov al, byte [0x497290]
mov byte [0x4a8e83], al
jmp 0x40d769
lea ecx, [esp + 0x20]
mov dword [0x49729c], 1
push ecx
jmp 0x40d7d6
mov ebx, 0x4a8e80
call fcn.0040ebc0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x49729c], 1
jmp 0x40d7dc
call fcn.0043604b
test al, al
jne 0x40d78b
push 0x104
lea eax, [esp + 0x234]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [esp + 0xf], 0
je 0x431ba4
mov edi, 0x484740
lea esi, [esp + 0x10]
call fcn.00401b70
mov edi, 0x4a7d14
mov eax, esi
call fcn.0040d330
mov edi, 0x484740
mov eax, esi
call fcn.0040d330
mov edx, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x23c]
push eax
push 0x484744
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, esi
call fcn.00402620
jmp 0x40d7c7
push 1
lea ecx, [esp + 0x24]
push ecx
push edi
lea edx, [esp + 0x23c]
push edx
push 0x484744
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40d7c7
Function at 0x4351a6
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x460]
test eax, eax
je 0x4351d5
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.004146ce
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
ret 4

Function at 0x4351d9
Capabilities:
Write file on windows

Disassembly:
mov dl, byte [esp + 8]
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x458]
mov ecx, dword [esi + 0x460]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
mov eax, dword [esi + 0x460]
cmp eax, 0x10000
jne 0x435228
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.004146ce
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
ret 8

Function at 0x4352d1
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x14], 1
jne 0x4352f7
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00410f70
add esp, 0xc
jmp 0x43530c
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [esp + 0xc]
push 1
push eax
call fcn.004151b0
add esp, 0x10
movzx ecx, byte [esp + 8]
movzx edx, byte [esp + 9]
movzx eax, byte [esp + 0xa]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0xb]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [esp + 4]
push str.EA06
push ecx
mov byte [esp + 0x10], 0
call fcn.004151d0
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 8
ret 8

Function at 0x436272
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x28
push esi
mov esi, dword [esp + 0x30]
push edi
test esi, esi
jl 0x436322
jne 0x436293
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
add esp, 0x28
ret
cmp esi, 0xf
jae 0x43631b
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
je 0x43631b
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
call edi
fnstcw word [esp + 0x34]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
fild qword [esp + 0x20]
movzx eax, word [esp + 0x34]
fild qword [esp + 0x28]
or eax, 0xc00
mov dword [esp + 8], eax
fdivp st(1)
fmul qword [0x48c548]
fldcw word [esp + 8]
fistp qword [esp + 8]
mov edx, dword [esp + 8]
fldcw word [esp + 0x34]
cmp edx, esi
jb 0x4362b8
pop edi
pop esi
add esp, 0x28
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
add esp, 0x28
ret