joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a0c9
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x443088
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x40a0e8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov ebx, dword [esp + 0x20]
push 0xf003f
push 0
push ebx
mov ecx, esi
call fcn.00409c70
test eax, eax
jne 0x40a114
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov edx, dword [esp + 0x24]
push edi
test edx, edx
je 0x40a13d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40a13d
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, eax
jmp 0x40a21c
mov ecx, dword [esi + 0x1c]
push ebp
inc ecx
push ecx
call fcn.0043658d
mov edx, dword [esi + 0x1c]
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push 0
inc edx
push 0
lea ecx, [esp + 0x38]
push 0
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 8]
push ecx
push edi
push 0
push edx
call ebp
test eax, eax
je 0x40a1f0
mov eax, dword [0x4553d4]
mov dword [esp + 0x28], eax
push edi
push ebx
lea ecx, [esp + 0x30]
push 0x4546e8
push ecx
mov dword [esp + 0x30], 0
call fcn.00434dec
mov edx, dword [esp + 0x38]
add esp, 0x10
mov ecx, esi
push 0
push edx
call fcn.0040a0b0
push 0xf003f
push 0
push ebx
mov ecx, esi
call fcn.00409c70
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043602c
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 0
inc eax
push 0
lea edx, [esp + 0x38]
push 0
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 8]
push edx
push edi
push 0
push eax
call ebp
test eax, eax
jne 0x40a178
push edi
call fcn.004365b6
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
lea edi, [esi + 0x10]
add esp, 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, edi
mov ebx, eax
call fcn.00435fb7
lea ecx, [esi + 0x14]
call fcn.00435fb7
pop ebp
mov ecx, dword [esp + 0x14]
xor eax, eax
test ebx, ebx
pop edi
pop esi
sete al
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x40a320
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x414]
mov dword [esp], 0
test eax, eax
jne 0x40a33e
mov eax, 0x459560
mov ecx, dword [ecx]
push esi
push ecx
mov ecx, dword [esp + 0x414]
lea edx, [esp + 0xc]
push 0x400
push edx
push eax
mov eax, dword [esp + 0x424]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x40c]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0043609a
mov eax, esi
pop esi
add esp, 0x404
ret 0x10

Function at 0x40a390
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [ecx]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0xc
Function at 0x40a760
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00425340
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
mov ebp, dword [ebx + 8]
mov esi, dword [ebx + 4]
push edi
mov edi, ebp
cmp edi, ebp
mov dword [esp + 0x10], ecx
je 0x40a797
push edi
mov ecx, esi
call fcn.00436165
add edi, 4
add esi, 4
cmp edi, ebp
jne 0x40a785
mov ebp, dword [ebx + 8]
mov edi, esi
cmp esi, ebp
je 0x40a7ae
mov ecx, edi
call fcn.0043602c
add edi, 4
cmp edi, ebp
jne 0x40a7a0
mov eax, dword [esp + 0x10]
mov dword [ebx + 8], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov esi, 0x1000
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push esi
push ecx
lea ebp, [esp + 0x20]
call ebx
mov edi, eax
test edi, edi
ja 0x40a7e4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1004
ret 4
cmp edi, 0xffe
jne 0x40a827
lea edx, [esp + 0x14]
cmp ebp, edx
je 0x40a7fd
push ebp
call fcn.004365b6
add esp, 4
shl esi, 2
push esi
call fcn.0043658d
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40a8af
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push eax
push esi
push ebp
call ebx
mov edi, eax
lea ecx, [esi - 2]
cmp edi, ecx
je 0x40a7ec
mov eax, dword [esp + 0x1018]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 4]
cmp esi, esi
mov dword [esp + 0x10], esi
je 0x40a852
push esi
mov ecx, ebx
call fcn.00436165
mov eax, dword [esp + 0x10]
add esi, 4
add ebx, 4
cmp esi, eax
jne 0x40a83c
mov eax, dword [esp + 0x1018]
mov esi, ebx
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [esp + 0x10], ecx
je 0x40a87f
mov ecx, esi
call fcn.0043602c
mov eax, dword [esp + 0x10]
add esi, 4
cmp esi, eax
jne 0x40a866
mov eax, dword [esp + 0x1018]
push eax
push edi
push ebp
mov dword [eax + 8], ebx
call fcn.0040b830
lea edx, [esp + 0x20]
add esp, 0xc
cmp ebp, edx
mov bl, al
je 0x40a8a0
push ebp
call fcn.004365b6
add esp, 4
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x1004
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1004
ret 4

Function at 0x40a8c0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a915
test al, 0x10
je 0x40a915
push 0x104
call fcn.0043658d
add esp, 4
mov dword [esi], eax
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40a915
mov eax, dword [esi]
push eax
call fcn.004365b6
add esp, 4
mov dword [esi], 0
mov eax, esi
pop edi
pop esi
ret 4

Function at 0x40a920
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
jne 0x40a92d
xor al, al
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esi]
push eax
call fcn.004365b6
add esp, 4
mov dword [esi], 0
mov al, 1
pop esi
ret
Function at 0x40ac50
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x453914]
sub esp, 0x94
test eax, eax
jge 0x40ac8d
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
jne 0x40ac86
cmp dword [esp + 8], 0xa
je 0x40ac88
xor eax, eax
mov dword [0x453914], eax
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
add esp, 0x94
ret

Function at 0x40aca0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x453918]
sub esp, 0x94
test eax, eax
jge 0x40acef
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
jne 0x40ace8
cmp dword [esp + 8], 0xa
jne 0x40ace8
mov ecx, dword [esp + 0xc]
and ecx, 0xffff
cmp ecx, 0x8ae
je 0x40acea
xor eax, eax
mov dword [0x453918], eax
xor edx, edx
test eax, eax
setne dl
mov al, dl
add esp, 0x94
ret

Function at 0x40adb0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x453924]
sub esp, 0x94
test eax, eax
jge 0x40adf6
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x40adef
cmp dword [esp + 4], 5
jne 0x40adef
mov eax, dword [esp + 8]
test eax, eax
jne 0x40adef
mov eax, 1
jmp 0x40adf1
xor eax, eax
mov dword [0x453924], eax
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
add esp, 0x94
ret

Function at 0x40ae10
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x453928]
sub esp, 0x94
test eax, eax
jge 0x40ae54
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x40ae4d
cmp dword [esp + 4], 5
jne 0x40ae4d
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
jae 0x40ae4f
xor eax, eax
mov dword [0x453928], eax
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
add esp, 0x94
ret

Function at 0x40ae70
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x45392c]
sub esp, 0x9c
test eax, eax
jge 0x40aeb8
lea eax, [esp]
mov dword [esp], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov cl, byte [esp + 0x9a]
mov eax, 1
cmp cl, al
jne 0x40aeb1
cmp dword [esp + 4], 6
jne 0x40aeb1
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40aeb3
xor eax, eax
mov dword [0x45392c], eax
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
add esp, 0x9c
ret

Function at 0x40b0b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x40b110
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b12a
test al, 0x10
je 0x40b12a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x40b170
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0040b0b0
mov bl, al
add esp, 4
xor edi, edi
test bl, bl
je 0x40b1a2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
mov edx, dword [fcn.00401040]
test edx, edx
je 0x40b1d5
test bl, bl
mov ecx, 0x459560
jne 0x40b1ba
mov ecx, str.__file_not_found_
test edi, edi
mov eax, 0x454750
jne 0x40b1c8
mov eax, str.Failed
push ecx
push eax
push esi
push str.Delete__s___s__s_n
call edx
add esp, 0x10
xor eax, eax
cmp edi, 1
pop edi
pop esi
sete al
pop ebx
ret

Function at 0x40b1f0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
sub esp, 0x244
push ebx
mov ebx, dword [esp + 0x24c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b251
test al, 0x10
je 0x40b251
lea eax, [esp + 0x14c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
call esi
test eax, eax
je 0x40b251
lea ecx, [esp + 0xc]
push ecx
push 0x4537a8
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b25d
lea edx, [esp + 0x14c]
push edx
call esi
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x244
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, 0x45476c
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b291
test cl, cl
je 0x40b28d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b291
add eax, 2
add esi, 2
test cl, cl
jne 0x40b26d
xor eax, eax
jmp 0x40b296
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40b2f0
mov esi, 0x454768
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b2c7
test cl, cl
je 0x40b2c3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b2c7
add eax, 2
add esi, 2
test cl, cl
jne 0x40b2a3
xor eax, eax
jmp 0x40b2cc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40b2f0
test byte [esp + 0x10], 0x10
je 0x40b2e3
lea eax, [esp + 0x3c]
push eax
call fcn.0040b1f0
jmp 0x40b2ed
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040b170
add esp, 4
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
jne 0x40b264
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
pop ebp
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
add esp, 0x244
ret
Function at 0x40b610
Capabilities:
Get common file path
Get file attributes
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x44328b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
push edi
mov edi, dword [esp + 0x130]
mov dword [esp + 0x10], 0
test edi, edi
jne 0x40b658
mov esi, dword [esp + 0x12c]
push 0x459560
mov ecx, esi
call fcn.0043609a
jmp 0x40b7ad
mov eax, dword [0x4553d4]
mov dword [esp + 8], eax
mov esi, dword [esp + 0x134]
mov dword [esp + 0x124], 1
test esi, esi
je 0x40b685
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x40b685
push esi
jmp 0x40b6b9
lea ecx, [esp + 0x18]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jl 0x40b6b4
mov cl, 0x5c
cmp byte [esp + eax + 0x18], cl
je 0x40b6af
dec eax
jns 0x40b6a4
jmp 0x40b6b4
mov byte [esp + eax + 0x18], 0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0xc]
call fcn.004361b5
cmp byte [edi], 0
jne 0x40b6e7
mov esi, dword [esp + 0x12c]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00435da1
mov dword [esp + 0x10], 1
jmp 0x40b79c
mov ecx, dword [0x4553d4]
mov dword [esp + 0xc], ecx
lea edx, [esp + 0x18]
mov byte [esp + 0x124], 2
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
call fcn.0043609a
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ecx
mov byte [esp + 0x128], 3
call esi
lea edx, [esp + 0x18]
push 0
push edx
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jbe 0x40b758
cmp eax, 0x104
jae 0x40b758
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
call fcn.004361b5
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov esi, dword [esp + 0x12c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00435da1
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 1
mov byte [esp + 0x124], 2
call fcn.0043602c
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 1
call fcn.0043602c
lea ecx, [esp + 8]
mov byte [esp + 0x124], 0
call fcn.0043602c
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret

Function at 0x40ba50
Capabilities:
Get common file path

Disassembly:
mov cl, byte [0x459a54]
mov al, 1
sub esp, 0x208
test al, cl
jne 0x40ba83
mov dl, cl
push 0x40bad0
or dl, al
mov eax, dword [0x4553d4]
mov byte [0x459a54], dl
mov dword [0x459a50], eax
call fcn.00424590
add esp, 4
mov ecx, dword [0x459a50]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40baaf
lea edx, [esp]
push 0x208
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp]
mov ecx, 0x459a50
push eax
call fcn.004361b5
push 0x5c
mov ecx, 0x459a50
call fcn.00434dff
mov eax, 0x459a50
add esp, 0x208
ret
Function at 0x40bae0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4432c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.00435da1
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x24]
push eax
call fcn.00436447
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 8], eax
je 0x40bb81
push eax
mov dword [esp + 0x10], 0
call fcn.0043658d
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40bb81
mov eax, dword [esp + 8]
push ebx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40bb78
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x453734
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40bba5
push ebx
call fcn.004365b6
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0043602c
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x40bbb9
mov esi, dword [esp + 0x10]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.004365b6
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043602c
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40be80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov edi, dword [esp + 0x60]
mov eax, dword [edi]
mov eax, dword [eax - 8]
test eax, eax
jne 0x40be9b
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x54
ret
inc eax
push eax
call fcn.0043658d
mov esi, eax
add esp, 4
test esi, esi
jne 0x40beb4
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x54
ret
mov ecx, dword [edi]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edx, edx
lea eax, [esp + 0x18]
mov dword [esp + 8], edx
push eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x78]
test ecx, ecx
mov dword [esp + 0x44], eax
je 0x40bef6
or al, 1
mov word [esp + 0x48], cx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push eax
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov edi, eax
call fcn.004365b6
add esp, 4
test edi, edi
jne 0x40bf30
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x54
ret
mov eax, dword [esp + 0x70]
test eax, eax
je 0x40bf44
mov ecx, dword [esp + 0x74]
lea edx, [esp + 8]
push ecx
push edx
call eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
lea edx, [esp + 0x60]
push edx
push eax
mov dword [esp + 0x68], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov eax, dword [esp + 0x60]
pop edi
pop esi
add esp, 0x54
ret
Function at 0x40c1d0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call fcn.0040af20
test al, al
je 0x40c244
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40c1fa
xor al, al
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c244
xor al, al
add esp, 0x14
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add esp, 0x14
ret
Function at 0x40cce0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4433b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push edi
call esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0043609a
xor ebx, ebx
mov dword [esp + 0x50], ebx
call esi
mov ebp, eax
mov esi, ebp
cmp byte [ebp], bl
je 0x40ce63
movsx eax, byte [esi]
push eax
call fcn.004257a3
add esp, 4
test eax, eax
je 0x40cd45
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.004257a3
add esp, 4
test eax, eax
jne 0x40cd33
mov al, byte [esi]
cmp al, bl
je 0x40cd63
movsx edx, al
push edx
call fcn.004257a3
add esp, 4
test eax, eax
jne 0x40cd63
mov al, byte [esi + 1]
inc esi
cmp al, bl
jne 0x40cd4b
mov edi, esi
lea eax, [esp + 0x14]
sub edi, ebp
lea ecx, [esp + 0x18]
push edi
push eax
call fcn.004349da
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 1
push ecx
lea ecx, [esp + 0x14]
call fcn.00435da1
mov eax, dword [esp + 0x10]
mov byte [esp + 0x50], 2
cmp byte [eax], 0x22
jne 0x40cdc1
mov edx, eax
sub edx, ebp
cmp byte [edx + esi - 1], 0x22
jne 0x40cdc1
push 1
push ebx
lea ecx, [esp + 0x18]
call fcn.00434658
add edi, 0xfffffffe
push 1
push edi
lea ecx, [esp + 0x18]
call fcn.00434658
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.00425427
add esp, 8
cmp eax, ebx
je 0x40ce39
lea edx, [esp + 0x10]
push str..exe
lea eax, [esp + 0x20]
push edx
push eax
call fcn.004362c1
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.00425427
add esp, 8
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.0043602c
cmp edi, ebx
je 0x40ce39
lea edx, [esp + 0x10]
push str..com
lea eax, [esp + 0x24]
push edx
push eax
call fcn.004362c1
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.00425427
add esp, 8
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.0043602c
cmp edi, ebx
jne 0x40ce40
test byte [esp + 0x2a], 0x40
jne 0x40ce72
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 1
call fcn.0043602c
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], bl
call fcn.0043602c
cmp byte [esi], bl
jne 0x40cd23
mov edi, dword [esp + 0x58]
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x40ced1
xor esi, esi
jmp 0x40ced9
movsx edx, byte [esi]
push edx
call fcn.004257a3
add esp, 4
test eax, eax
je 0x40ce94
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.004257a3
add esp, 4
test eax, eax
jne 0x40ce82
mov edi, dword [esp + 0x58]
push edi
push esi
call fcn.0040c930
mov eax, dword [edi + 4]
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov ecx, edi
call fcn.00404f70
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 1
call fcn.0043602c
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], bl
call fcn.0043602c
jmp 0x40ce67
mov esi, dword [edi + 8]
sub esi, eax
sar esi, 2
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], 0xffffffff
call fcn.0043602c
mov ecx, dword [esp + 0x48]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x40d6a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x443457
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov byte [esp + 0x1c], al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov esi, 1
push 0x459560
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], esi
call fcn.0043609a
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x34], 2
push ecx
lea ecx, [esp + 0x18]
call fcn.00435da1
lea edx, [esp + 0xc]
lea ecx, [esp + 0x18]
push edx
mov byte [esp + 0x38], 3
call fcn.00435da1
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
push esi
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 4
call fcn.0040ea70
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.0043602c
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.0043602c
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 1
call fcn.0043602c
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0040d430
mov ecx, dword [esp + 0x28]
add esp, 8
add ecx, 4
push ecx
mov ecx, dword [esp + 0x40]
call fcn.00435da1
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, eax
mov byte [esp + 0x34], bl
mov edi, eax
mov dword [esp + 0x44], esi
je 0x40d7bc
lea ecx, [esi + 4]
mov dword [esp + 0x34], 6
call fcn.0043602c
mov ecx, esi
mov byte [esp + 0x34], bl
call fcn.0043602c
add esi, 8
cmp esi, edi
mov dword [esp + 0x44], esi
jne 0x40d792
mov esi, dword [esp + 0x20]
push esi
call fcn.004365b6
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret