joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006e69
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx + 0x3c]
add eax, edx
movzx ecx, word [eax + 0x14]
sub esp, 0x14
push esi
movzx esi, word [eax + 6]
push edi
xor edi, edi
lea eax, [ecx + eax + 0x18]
xor ecx, ecx
cmp dword [eax + 4], edi
jne 0x10006e95
cmp dword [eax], 0x7373622e
jne 0x10006e95
mov ecx, eax
add eax, 0x28
dec esi
je 0x10006e9f
test ecx, ecx
je 0x10006e86
test ecx, ecx
je 0x10006ebd
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10006eb9
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x10006eb9
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jmp 0x10006ec0
push 0xb
jmp 0x10006ebf
push 2
pop edi
mov eax, edi
test edi, edi
jne 0x10006f8c
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 4]
and esi, 0xfff
neg esi
sbb esi, esi
shr eax, 0xc
neg esi
add esi, eax
mov eax, dword [ebp - 0xc]
lea edi, [eax + edx]
mov eax, esi
push ebx
shl eax, 0xc
push eax
mov dword [ebp - 0x14], edi
call fcn.10003fdc
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x10006f88
push dword [ebp - 4]
push edi
push ebx
call fcn.10005dd2
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add esp, 0xc
test esi, esi
jbe 0x10006f62
mov eax, ebx
sub eax, edi
mov dword [ebp - 8], ebx
lea edi, [eax + ecx + 0x2ceb690]
mov ebx, 0x1000
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
lea eax, [eax + ecx - 0x7e47c82f]
push 1
push eax
mov eax, ebx
call fcn.10007ff0
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 8]
add dword [ebp - 8], ebx
add ecx, dword [edi + 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], esi
jb 0x10006f2e
mov ebx, dword [ebp - 0x10]
lea eax, [ecx - 0x43175ac3]
test eax, eax
jne 0x10006f7d
sub ebx, dword [ebp - 0x14]
mov dword [0x2cea344], ecx
mov dword [0x2cea348], ebx
jmp 0x10006f8b
push ebx
call fcn.10006dda
xor eax, eax
inc eax
jmp 0x10006f8b
push 8
pop eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x4010d5
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x442f58
call fcn.0043680c
sub esp, 0xa0
push ebx
push esi
xor ebx, ebx
push 0x44d0c8
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x4011ec
push 0x44d0ac
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40111b
call eax
mov dword [ebp - 0x14], eax
jmp 0x4011e5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4011e5
lea ecx, [ebp - 0x10]
call fcn.004066b3
cmp dword [ebp - 0x9c], 2
mov dword [ebp - 4], ebx
jne 0x40117e
push ebx
push 0x44d0a4
push 0x44d07c
lea eax, [ebp - 0x18]
push 0x80000003
push eax
call fcn.0040649a
add esp, 0x14
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406a8d
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
jmp 0x4011b2
cmp dword [ebp - 0x9c], 1
jne 0x4011b7
push ebx
push ebx
push 0x44d054
lea eax, [ebp - 0x18]
push 0x80000001
push eax
call fcn.0040649a
add esp, 0x14
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00406a8d
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00406733
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], ebx
je 0x4011d9
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
push 0x44d050
call fcn.00406a8a
push eax
call fcn.00436400
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406733
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov ax, word [ebp - 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x401295
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
xor edi, edi
push 0x94
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.004369c0
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4012df
cmp dword [ebp - 0x90], 0xa
jb 0x4012dd
push 1
pop edi
mov eax, edi
pop edi
leave
ret
Function at 0x4018d9
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4430d4
call fcn.0043680c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov edi, 0x104
lea ebx, [esi + 0xa94]
push edi
mov ecx, ebx
call fcn.0040679b
push eax
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x44d1ec
push dword [ebp - 0x14]
call fcn.00436ad0
pop ecx
pop ecx
mov ecx, ebx
call fcn.004067f3
push str.Autoup.ini
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00406bba
add esp, 0xc
and dword [ebp - 4], 0
push eax
lea ecx, [esi + 0xa98]
call fcn.00406a8d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406733
mov ecx, esi
call fcn.0040415d
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x4019fa
mov al, byte [0x464878]
lea edi, [ebp - 0x23]
mov byte [ebp - 0x24], al
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
lea ecx, [ebp - 0x10]
stosb byte es:[edi], al
pop eax
mov edi, dword [sym.imp.USER32.dll_GetUserObjectInformationA]
push ecx
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x24]
push eax
push 2
push ebx
call edi
push ebx
call dword [sym.imp.USER32.dll_CloseWindowStation]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x24]
push str.WinSta0
push eax
call ebx
test eax, eax
jne 0x4019f3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4019fa
push 0x10
lea ecx, [ebp - 0x10]
pop eax
and byte [ebp - 0x24], 0
push ecx
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x24]
push eax
push 2
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_CloseDesktop]
lea eax, [ebp - 0x24]
push str.Default
push eax
call ebx
test eax, eax
je 0x4019fa
and dword [esi + 0xbb8], 0
and dword [esi + 0x830], 0
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x82c], 0x50
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401a7d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov esi, ecx
push 0x44d2e0
call fcn.00401cc3
push 1
test eax, eax
pop ebx
je 0x401aa2
mov dword [esi + 0xbc0], ebx
push 0x44d2dc
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401ab9
and dword [esi + 0xbc4], 0
push 0x44d2d8
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401acf
mov dword [esi + 0xbc4], ebx
push 0x44d2d4
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401ae5
mov dword [esi + 0xbcc], ebx
push 0x44d2d0
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401afb
mov dword [esi + 0x10e8], ebx
push 0x44d2cc
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401b11
mov dword [esi + 0x1100], ebx
push 0x44d2c8
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401b27
mov dword [esi + 0x420], ebx
push 0x44d2c4
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401b3d
mov dword [esi + 0x824], ebx
push 0x44d2c0
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401b53
mov dword [esi + 0x828], ebx
and byte [ebp - 0x108], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
push 0x80
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
push str.MainAppName:
call fcn.00401d2b
test eax, eax
je 0x401ba1
cmp byte [ebp - 0x108], 0
je 0x401ba1
lea eax, [ebp - 0x108]
lea ecx, [esi + 0xfd8]
push eax
call fcn.00406ab0
lea eax, [ebp - 0x108]
push 0x10
push eax
push str.Type:
mov ecx, esi
call fcn.00401d2b
test eax, eax
je 0x401bd7
cmp byte [ebp - 0x108], 0
je 0x401bd7
lea eax, [ebp - 0x108]
push eax
call fcn.00436c81
pop ecx
mov word [esi + 0xfd4], ax
lea eax, [ebp - 0x108]
push 0x10
push eax
push str.CpuLimit:
mov ecx, esi
call fcn.00401d2b
test eax, eax
je 0x401c31
cmp byte [ebp - 0x108], 0
je 0x401c31
lea eax, [ebp - 0x108]
mov dword [esi + 0x830], ebx
push eax
call fcn.00436c81
pop ecx
mov dword [esi + 0x82c], eax
push 0x50
lea ecx, [esi + 0x82c]
pop edx
cmp eax, edx
jbe 0x401c21
mov dword [ecx], edx
push dword [ecx]
push str._Autoup__Update__CpuLimit_:__d
push ebx
call fcn.00408893
add esp, 0xc
cmp dword [esi + 0xbb8], 0
jne 0x401c46
mov dword [esi + 0xbc0], ebx
mov dword [esi + 0xbc4], ebx
lea ecx, [esi + 0xa98]
push 0
call fcn.00406a8a
push eax
call fcn.00436bb0
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x401ca2
lea edi, [esi + 0xbd0]
mov ebx, 0x104
push ebx
mov ecx, edi
call fcn.0040679b
lea ecx, [esi + 0xa98]
mov dword [ebp - 4], eax
call fcn.00406a8a
push eax
push ebx
push dword [ebp - 4]
push 0x464878
push str.Execute
push str.Post
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, edi
call fcn.004067f3
add esi, 0xbd4
cmp word [esi], 0
jne 0x401cbe
push 0
push 0x200
push esi
call fcn.004264b2
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403bba
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edx, ecx
cmp esi, ebx
mov dword [ebp - 4], edx
je 0x403c3f
cmp byte [esi], bl
je 0x403c3f
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x58], 0x44
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
lea ecx, [edx + 0xa94]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00406a8a
push eax
push ebx
push ebx
push 1
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x403c2f
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
push eax
push 0x2843
call fcn.0040390c
jmp 0x403c3f
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop esi
pop ebx
leave
ret 4

Function at 0x403d78
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
and byte [ebp - 0x108], 0
push ebx
push edi
mov ebx, ecx
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
call fcn.00401295
test eax, eax
je 0x403e1c
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x403e1c
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.00436c8c
pop ecx
test eax, eax
pop ecx
je 0x403e1c
and byte [eax], 0
push esi
lea esi, [ebx + 0xaa0]
lea eax, [ebp - 0x108]
push eax
mov ecx, esi
call fcn.00406ab0
push str.Temp
mov ecx, esi
call fcn.00406cdd
push str.AUtempR
mov ecx, esi
call fcn.00406cdd
mov ecx, esi
call fcn.00406a8a
push eax
call fcn.0040587f
pop ecx
pop esi
test eax, eax
jne 0x403e2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403e2e
lea eax, [ebx + 0xa9c]
lea ecx, [ebx + 0xaa0]
push eax
call fcn.00406a8d
pop edi
pop ebx
leave
ret
Function at 0x40415d
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
and byte [ebp - 0x14], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, ecx
stosb byte es:[edi], al
call fcn.0040cf56
mov edi, eax
lea eax, [ebp - 0xcc]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xcc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xc8]
test edi, edi
mov dword [esi + 0xbb4], eax
je 0x40420f
mov ecx, edi
call fcn.0040d066
mov ebx, eax
test ebx, ebx
je 0x404201
mov ecx, edi
call fcn.0040d103
cmp eax, 1
jne 0x4041d9
mov dword [ebp - 4], 0xaa64
jmp 0x404201
mov ecx, edi
call fcn.0040d0c1
cmp eax, 1
jne 0x4041ee
mov dword [ebp - 4], 6
jmp 0x404201
mov ecx, edi
call fcn.0040d0e2
cmp eax, 1
jne 0x404201
mov dword [ebp - 4], 9
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [ebp - 0xc8]
cmp eax, 0xa
ja 0x404248
jne 0x40421f
cmp dword [ebp - 0xc4], 0
ja 0x404248
cmp eax, 6
jne 0x40422d
cmp dword [ebp - 0xc4], 3
ja 0x404248
push dword [ebp - 0xc4]
push eax
lea eax, [ebp - 0x14]
push str._d_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x404259
lea eax, [ebp - 0x14]
push str.9999
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00436c81
cmp eax, 0x64
pop ecx
jg 0x404289
je 0x4042b1
cmp eax, 0x28
je 0x404350
cmp eax, 0x31
jle 0x4042a4
cmp eax, 0x34
jle 0x4042b1
cmp eax, 0x3b
jle 0x4042a4
cmp eax, 0x3f
jle 0x4042b1
jmp 0x4042a4
sub eax, 0x19a
je 0x404350
sub eax, 0x50
je 0x404350
sub eax, 0x2525
je 0x4042b1
and word [esi + 0xbb0], 0
jmp 0x40437a
test ebx, ebx
je 0x4042eb
cmp dword [ebp - 4], 9
jne 0x4042c6
mov word [esi + 0xbb0], 8
jmp 0x404309
cmp dword [ebp - 4], 6
jne 0x4042d7
mov word [esi + 0xbb0], 4
jmp 0x404309
cmp dword [ebp - 4], 0xaa64
jne 0x404340
mov word [esi + 0xbb0], 0x20
jmp 0x404309
cmp word [ebp - 0x38], 6
je 0x4042cc
cmp word [ebp - 0x38], 9
je 0x4042bb
cmp word [ebp - 0x38], 0
jne 0x404340
mov word [esi + 0xbb0], 2
mov ax, word [esi + 0xbb0]
cmp ax, 8
je 0x404322
cmp ax, 4
je 0x404322
cmp ax, 0x20
jne 0x404334
cmp dword [esi + 0x1114], 0
je 0x404334
mov word [esi + 0xbb0], 2
mov dword [esi + 0xbac], 1
jmp 0x40437a
push str.Error:_Unknown_architecture__
push 1
call fcn.00408bf4
pop ecx
pop ecx
jmp 0x40437a
push 1
pop eax
cmp dword [ebp - 0xbc], eax
jne 0x40436b
and dword [esi + 0xbac], 0
mov word [esi + 0xbb0], ax
jmp 0x40437a
mov word [esi + 0xbb0], 2
mov dword [esi + 0xbac], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40439f
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4432c0
call fcn.0043680c
sub esp, 0x1d0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1dc], 0x1c8
push dword [esi + 0x41c]
call fcn.00423b62
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
call fcn.004066b3
xor edi, edi
xor ebx, ebx
cmp dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
jbe 0x40444e
lea eax, [ebp - 0x1dc]
push eax
push ebx
push dword [esi + 0x41c]
call fcn.00423bc2
add esp, 0xc
test eax, eax
je 0x404411
lea eax, [ebp - 0x1cc]
push str.v3restore.ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x404419
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x4043e1
jmp 0x40444e
mov eax, dword [0x46487c]
lea ecx, [eax + 0xa94]
call fcn.00406a8a
push eax
lea ecx, [ebp - 0x10]
call fcn.00406ab0
lea eax, [ebp - 0xcc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00406cdd
push str.v3restore.exe
lea ecx, [ebp - 0x10]
call fcn.00406cdd
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], edi
jle 0x4044be
push edi
lea ecx, [ebp - 0x10]
call fcn.00406a8a
push eax
call fcn.00436bb0
pop ecx
test eax, eax
pop ecx
jne 0x4044a9
push edi
push edi
push edi
lea ecx, [ebp - 0x10]
call fcn.00406a8a
push eax
push str.Open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
push esi
push dword [ebp - 0x10]
push str._AutoUp__RunEmergencyPatch___s_:_Executed_Return_:__d_
push 1
call fcn.00408bf4
add esp, 0x10
xor eax, eax
cmp esi, 0x20
setg al
cmp eax, edi
mov eax, str.Success
jne 0x4044ae
mov eax, str.Failed
push eax
push str._AutoUp__RunEmergencyPatch__Patch_Work_Finish_:__s
push 1
call fcn.00408bf4
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406733
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404fb7
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.004378ad
and byte [eax], 0
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.004378ad
mov esi, eax
push 0x44e24c
push esi
call fcn.00437718
add esp, 0x18
test eax, eax
jne 0x405022
and byte [esi], al
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
leave
ret
Function at 0x40546e
Capabilities:
Delete file

Disassembly:
mov eax, 0x4433c0
call fcn.0043680c
sub esp, 0x10c
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x118]
push eax
call fcn.00436a23
lea eax, [ebp - 0x118]
push 0x5c
push eax
call fcn.004378ad
add esp, 0x14
inc eax
mov dword [ebp - 0x10], ebx
mov byte [eax], bl
mov eax, str.ahni2t.dll
mov ecx, eax
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x405538
push esi
mov esi, eax
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x118]
push 0xffffffffffffffff
push eax
lea ecx, [ebp + 8]
call fcn.004066bf
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00406cdd
push ebx
lea ecx, [ebp + 8]
call fcn.00406a8a
push eax
call fcn.00405bc1
pop ecx
test eax, eax
pop ecx
je 0x405521
lea ecx, [ebp + 8]
call fcn.00406a8a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406733
mov esi, dword [edi + 4]
add edi, 4
cmp esi, ebx
jne 0x4054e0
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405546
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push esi
call fcn.00405bc1
pop ecx
test eax, eax
pop ecx
je 0x405592
push esi
call fcn.004050bb
test eax, eax
pop ecx
je 0x40558b
call fcn.00405339
push dword [esp + 0x10]
push 0
push dword [esp + 0x14]
push esi
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x405592
push 1
pop eax
pop esi
ret
push esi
call fcn.0040546e
pop ecx
xor eax, eax
pop esi
ret
Function at 0x40587f
Capabilities:
Create directory

Disassembly:
mov eax, 0x4433e4
call fcn.0043680c
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor ebx, ebx
push edi
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
mov dword [ebp - 0x18], eax
je 0x4058b4
push 1
pop eax
jmp 0x40598f
cmp eax, 3
je 0x4058c2
cmp eax, 2
jne 0x405984
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.004066bf
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov eax, dword [eax - 4]
dec eax
push eax
call fcn.00406a60
cmp al, 0x5c
jne 0x405912
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 4]
dec eax
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406e8b
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406a8d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00406733
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00406df0
cmp eax, ebx
je 0x405978
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406e8b
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00406a8d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00406733
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], ebx
jle 0x405968
lea ecx, [ebp - 0x10]
call fcn.00406a8a
push eax
call fcn.0040587f
test eax, eax
pop ecx
je 0x405978
push ebx
push dword [ebp + 8]
call esi
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406733
mov eax, ebx
jmp 0x40598f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406733
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40599e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x443400
call fcn.0043680c
sub esp, 0x148
lea ecx, [ebp - 0x10]
call fcn.004066b3
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004066b3
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x405ac9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jl 0x405ac9
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
call fcn.00406ab0
push 0x44e390
lea ecx, [ebp - 0x14]
call fcn.00406cdd
lea eax, [ebp - 0x154]
lea ecx, [ebp - 0x14]
push eax
call fcn.00406a8a
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
test eax, eax
mov edi, 0x80
je 0x405a96
cmp byte [ebp - 0x128], 0x2e
je 0x405a84
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00406ab0
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x10]
push eax
call fcn.00406cdd
test byte [ebp - 0x154], 0x10
je 0x405a69
lea ecx, [ebp - 0x10]
call fcn.00406a8a
push eax
call fcn.0040599e
pop ecx
jmp 0x405a84
push edi
lea ecx, [ebp - 0x10]
call fcn.00406a8a
push eax
call esi
lea ecx, [ebp - 0x10]
call fcn.00406a8a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x154]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405a2c
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406733
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406733
pop edi
pop esi
pop ebx
jmp 0x405ae1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406733
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406733
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x405c75
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
ret
Function at 0x4063a3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
push esi
push eax
xor esi, esi
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 6
jb 0x4063d2
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x4063d7
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x406401
push str._AutoUp__OpenProcessToken_return_FALSE
push 1
jmp 0x406484
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x406426
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._AutoUp__LookupPrivilegeValue_return_FALSE
jmp 0x4063fa
mov eax, dword [ebp - 0xc]
push 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
pop esi
mov dword [ebp - 0x14], eax
push 0
push 0
lea eax, [ebp - 0x1c]
push 0x10
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x406468
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._AutoUp__AdjustTokenPrivileges_return_FALSE
jmp 0x406483
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
cmp eax, 0x514
jne 0x40648f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._AutoUp__AdjustTokenPrivileges___cannot_adjust_privileges
push esi
call fcn.00408bf4
pop ecx
xor eax, eax
pop ecx
jmp 0x406497
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret