joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453c90
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push 0x70
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004151d0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x6a09e667
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xbb67ae85
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x3c6ef372
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0xa54ff53a
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0x510e527f
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x9b05688c
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x1f83d9ab
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], 0x5be0cd19
mov eax, dword [ebp + 8]
mov dword [eax + 0x6c], 0x20
mov eax, 1
pop ebp
ret
Function at 0x456d60
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x367cd507
mov dword [ecx + 0xc], 0x629a292a
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0x3070dd17
mov dword [edx + 0x14], 0x9159015a
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 0xffc00b31
mov dword [ecx + 0x24], 0x67332667
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], 0x68581511
mov dword [edx + 0x2c], 0x8eb44a87
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], 0xbefa4fa4
mov dword [ecx + 0x3c], 0x47b5481d
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], 0
mov dword [edx + 0x44], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xd0], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0xd4], 0x30
mov eax, 1
pop ebp
ret

Function at 0x456e30
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x84caa73b
mov dword [ecx + 0xc], 0xbb67ae85
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xfe94f82b
mov dword [edx + 0x14], 0x3c6ef372
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 0xade682d1
mov dword [ecx + 0x24], 0x510e527f
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], 0x2b3e6c1f
mov dword [edx + 0x2c], 0x9b05688c
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], 0x137e2179
mov dword [ecx + 0x3c], 0x5be0cd19
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], 0
mov dword [edx + 0x44], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xd0], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0xd4], 0x40
mov eax, 1
pop ebp
ret
Function at 0x461a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14
call fcn.0040f000
mov dword [ebp - 8], 1
movsx eax, byte [ebp - 8]
test eax, eax
jne 0x461a8c
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
je 0x461a9a
mov edx, dword [ebp + 8]
push edx
call fcn.00461a00
add esp, 4
jmp 0x461aed
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x10]
shr ecx, 0x1f
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 4], 0
jne 0x461aae
mov esp, ebp
pop ebp
ret
Function at 0x46d190
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18
call fcn.0040f000
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov byte [ecx], 0
cmp dword [ebp + 0xc], 0x80
jle 0x46d1b9
mov dword [ebp + 0xc], 0x80
cmp dword [ebp + 0x14], 0
jg 0x46d1c6
mov dword [ebp + 0x14], 0x400
cmp dword [ebp + 0x14], 0x400
jle 0x46d1d6
mov dword [ebp + 0x14], 0x400
mov dword [ebp - 4], 0
jmp 0x46d1e8
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jge 0x46d202
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ecx], al
jmp 0x46d1df
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 0xc]
movzx edx, byte [ecx - 1]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x46d230
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 4], 0x80
jge 0x46d262
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0x10]
and ecx, 0xff
movzx edx, byte [ecx + 0x4e3a40]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov cl, byte [ebp - 0x10]
mov byte [eax], cl
jmp 0x46d21e
mov edx, dword [ebp + 0x14]
add edx, 7
sar edx, 3
mov dword [ebp - 0x18], edx
mov eax, 0x80
sub eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
neg ecx
and ecx, 7
mov edx, 0xff
sar edx, cl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
and ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x4e3a40]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov cl, byte [ebp - 0x10]
mov byte [eax], cl
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
test edx, edx
je 0x46d2e3
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + ecx]
xor eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x4e3a40]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov al, byte [ebp - 0x10]
mov byte [edx], al
jmp 0x46d2ac
mov ecx, dword [ebp + 8]
add ecx, 0xfc
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x7f
jmp 0x46d301
mov edx, dword [ebp - 4]
sub edx, 2
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jl 0x46d335
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
shl ecx, 8
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
movzx eax, byte [edx - 1]
or ecx, eax
and ecx, 0xffff
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 8]
sub eax, 4
mov dword [ebp - 8], eax
jmp 0x46d2f8
mov esp, ebp
pop ebp
ret
Function at 0x4b5c00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.0040f000
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jmp 0x4b5c25
mov ecx, dword [ebp - 4]
sub ecx, 3
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jle 0x4b5d85
cmp dword [ebp - 4], 3
jl 0x4b5cd0
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
shl eax, 0x10
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 1]
shl edx, 8
or eax, edx
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 2]
or eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shr eax, 0x12
and eax, 0x3f
mov ecx, dword [ebp + 8]
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0xc]
shr ecx, 0xc
and ecx, 0x3f
mov edx, dword [ebp + 8]
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0xc]
shr edx, 6
and edx, 0x3f
mov eax, dword [ebp + 8]
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
and eax, 0x3f
mov ecx, dword [ebp + 8]
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
jmp 0x4b5d6e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
shl edx, 0x10
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], 2
jne 0x4b5cf2
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 1]
shl ecx, 8
or ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shr edx, 0x12
and edx, 0x3f
mov eax, dword [ebp + 8]
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
shr eax, 0xc
and eax, 0x3f
mov ecx, dword [ebp + 8]
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
cmp dword [ebp - 4], 1
jne 0x4b5d3b
mov dword [ebp - 0x10], 0x3d
jmp 0x4b5d4e
mov ecx, dword [ebp - 0xc]
shr ecx, 6
and ecx, 0x3f
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x10]
mov byte [eax], cl
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
mov byte [eax], 0x3d
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
add eax, 3
mov dword [ebp + 0xc], eax
jmp 0x4b5c1c
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4028f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
mov eax, dword [0x448d58]
cmp dword [eax + 0xac], 0
jne 0x40290a
push 1
call fcn.0043dc20
xor eax, eax
pop esi
ret
call fcn.00403780
test eax, eax
jne 0x402917
xor eax, eax
pop esi
ret
call fcn.00432f90
test eax, eax
jne 0x402924
xor eax, eax
pop esi
ret
push eax
mov eax, dword [0x448d58]
add eax, 0xd4
push eax
mov eax, dword [0x448d58]
add eax, 0xc0
push eax
call fcn.00403510
mov esi, eax
test esi, esi
jne 0x40294a
xor eax, eax
pop esi
ret
mov eax, dword [0x448dc8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [0x448dd0]
cmp byte [eax + 0x346a], 0
je 0x402984
mov eax, dword [0x448d58]
push eax
call fcn.00432b90
mov eax, 1
pop esi
ret

Function at 0x4029b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x1c
mov eax, dword [0x448e30]
test byte [eax + 0xe60], 1
push esi
push edi
je 0x4029d2
push 1
call fcn.0043dc20
xor eax, eax
pop edi
pop esi
add esp, 0x1c
ret
mov eax, dword [0x448d58]
mov ecx, dword [0x448e30]
add eax, 0x58
push eax
push ecx
call fcn.0043be00
mov ecx, dword [0x448d58]
cmp dword [ecx + 0xac], 0
je 0x402a0d
push 0
push 1
push 6
call fcn.00402fb0
test eax, eax
jne 0x402a0d
xor eax, eax
pop edi
pop esi
add esp, 0x1c
ret
mov esi, dword [0x448d58]
lea edi, [esp + 0x10]
add esi, 0x58
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x448dc8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
jne 0x402a49
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
pop edi
pop esi
add esp, 0x1c
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [esp + 0xa]
lea edx, [esp + 8]
lea esi, [esp + 0xc]
push ecx
push edx
push esi
push eax
mov esi, 0
call fcn.00402bc0
cmp eax, 0xffffffff
je 0x402a8d
mov ecx, dword [esp + 0xa]
push 0
mov edx, dword [esp + 0xc]
push 1
mov esi, dword [esp + 0x14]
push ecx
push edx
push esi
push eax
mov esi, 1
call fcn.00403660
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [0x448e30]
push eax
call fcn.00433f30
mov eax, dword [0x448d58]
lea ecx, [esp + 0x10]
add eax, 0x58
push eax
push ecx
push 8
call fcn.0043c100
mov eax, esi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x404fe0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ax, word [esi + 0x74]
mov ecx, dword [esi + 0x28]
and ax, 4
cmp ax, 1
mov eax, 0
adc eax, 0xffffffff
and eax, 5
push eax
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call fcn.00409380
pop esi
ret 4
Function at 0x407590
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
push 0
push 0x463
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x463
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call fcn.004078f0
push 0
push 1
push 0xf1
push 0x44c
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
ret 4
Function at 0x40b370
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x118
lea eax, [esp]
push ebx
push esi
push edi
mov esi, dword [esp + 0x128]
push 0x21
push eax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x1712
push esi
call edi
push eax
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
call ebx
lea eax, [esp + 0x30]
push 0xf2
push eax
push 0x1713
push esi
call edi
push eax
call ebx
lea eax, [esp + 0xc]
push eax
call fcn.0043dc40
cmp byte [eax], 0
jne 0x40b3cd
push 0
push 0x30
push 0x359
jmp 0x40b3f3
mov edx, eax
mov cl, byte [edx]
inc edx
test cl, cl
je 0x40b420
cmp cl, 0x22
je 0x40b3ea
cmp cl, 0x2c
je 0x40b3ea
cmp cl, 0x3d
je 0x40b3ea
cmp cl, 0x2a
jne 0x40b3cf
push 0
push 0x30
push 0x35a
push 0
push esi
call fcn.0043ce50
add esp, 0x14
push 1
push 0x1712
push esi
call edi
push eax
push 0x28
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x118
ret 0xc
push eax
mov eax, dword [esp + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x30]
push ecx
call fcn.0043dc40
push 0
cmp byte [eax], 0
jne 0x40b45b
push 0x30
push 0x35b
push 0
push esi
call fcn.0043ce50
add esp, 0x14
push 1
push 0x1713
jmp 0x40b405
mov ecx, dword [esp + 0x134]
push ecx
push eax
push esi
call fcn.00407c50
test eax, eax
jne 0x40b477
push 1
push 0x1713
jmp 0x40b405
mov eax, 1
jmp 0x40b414
Function at 0x40dc20
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x54
xor eax, eax
mov ecx, 0x11
push esi
push edi
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x64]
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], 0x44
mov eax, dword [esp + 0x68]
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40dcc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
cmp eax, 0x10b
jne 0x40dca2
call fcn.0043dd10
push eax
mov eax, dword [0x4493b0]
add eax, 0x101
push eax
push 0
push 0
push 0x26
push 0
call fcn.0043cd20
add esp, 0x18
xor eax, eax
pop edi
pop esi
add esp, 0x54
ret 8
call fcn.0043dd10
push eax
push 0
push 0
push 0x123
push 0
call fcn.0043cd20
add esp, 0x14
xor eax, eax
pop edi
pop esi
add esp, 0x54
ret 8
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov eax, 1
pop edi
pop esi
add esp, 0x54
ret 8

Function at 0x40dd10
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40dd29
mov eax, 1
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043dd10
push eax
push esi
push 0
push 0
push 0x26
push 0
call fcn.0043cd20
add esp, 0x18
xor eax, eax
pop esi
ret 4
Function at 0x40e900
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x2c
push ebx
push esi
push edi
call fcn.00414390
test eax, eax
je 0x40eb10
mov eax, dword [0x448dd0]
cmp dword [eax + 0x630], 0x10
jne 0x40e929
xor ebx, ebx
mov esi, dword [esp + 0x3c]
jmp 0x40e947
mov esi, dword [esp + 0x3c]
push 0xc83
push esi
mov ebx, 0
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
adc ebx, 0xffffffff
and ebx, 4
mov eax, dword [0x448dd0]
cmp dword [eax + 0x630], 4
jne 0x40ea41
mov dword [esp + 0x18], 1
lea eax, [esp + 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x40e9a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043dd10
push eax
push 0
push 0
push 0x32f
push 0
call fcn.0043cd20
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 4
mov dword [esp + 0x24], 2
lea eax, [esp + 0xc]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40e9e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043dd10
push eax
push 0
push 0
push 0x32e
push 0
call fcn.0043cd20
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0x10
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push edx
push 0
push eax
call edi
test eax, eax
jne 0x40ea47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043dd10
push eax
push 0
push 0
push 0x330
push 0
call fcn.0043cd20
mov eax, dword [esp + 0x20]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
xor eax, eax
mov ax, word [0x448810]
cmp eax, 1
je 0x40ea78
cmp eax, 2
je 0x40ea7c
cmp eax, 3
je 0x40ea83
push eax
push 0
push 0
push 0x320
push 0
call fcn.0043cd20
mov eax, dword [esp + 0x28]
add esp, 0x14
jmp 0x40ea8f
push 0
jmp 0x40ea88
push 0
or ebx, 1
jmp 0x40ea88
push 0
or ebx, 2
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40eae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x448dd0]
cmp dword [eax + 0x630], 4
jne 0x40eac8
lea eax, [esp + 0x28]
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
push 0
push ecx
call edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0043dd10
push eax
push 0
push 0
push 0xce
push 0
push esi
call fcn.0043ce50
add esp, 0x18
mov eax, dword [0x448dd0]
cmp dword [eax + 0x630], 0x10
jne 0x40eb10
cmp word [0x448810], 1
jne 0x40eb10
push 0
mov eax, dword [0x448dc8]
push 0x68
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 4
Function at 0x40f7a0
Capabilities:
Delete file

Disassembly:
sub esp, 0x80
push esi
push edi
mov edi, dword [esp + 0x90]
test edi, edi
je 0x40f7eb
push 4
call fcn.00407f80
mov ax, word [eax + 0x24]
mov esi, dword [esp + 0x8c]
mov word [edi + 0xe60], ax
push esi
or byte [edi + 0xe60], 1
lea ecx, [edi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x94]
push ecx
push 1
push edi
jmp 0x40f85e
lea eax, [esp + 8]
push pe_nt_image_headers32
push eax
mov ecx, dword [0x448d48]
push 0xbd
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + eax + 8]
inc dword [0x44884c]
mov ecx, dword [0x44884c]
push ecx
push 0x44b538
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x14]
add esp, 0xc
mov esi, dword [esp + 0x8c]
push 0
push 0
push 1
push 0
push 4
push ecx
push esi
call fcn.00410e40
test eax, eax
je 0x40f863
mov eax, dword [esp + 0x94]
mov ecx, dword [0x448dd0]
push eax
push 0
mov edx, dword [ecx + 0x6a8]
push edx
call fcn.0041c780
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
add esp, 0x80
ret 0xc
Function at 0x410640
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x24c
push ebx
push esi
push edi
push ebp
push 0x2000
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x10], eax
test eax, eax
je 0x41079e
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0x10]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ecx
call esi
mov ecx, dword [esp + 0x10]
push 0x5c
push ecx
call fcn.0043f464
add esp, 8
mov ebx, eax
sub eax, dword [esp + 0x10]
cmp eax, 2
jne 0x41069a
inc ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
sub eax, ebx
push ecx
add eax, 0x2000
lea edx, [esp + 0x20]
push edx
xor ebp, ebp
mov dword [esp + 0x20], eax
call esi
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x410778
test dword [esp + 0x11c], 0x114
jne 0x41072c
lea edi, [esp + 0x148]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edx, [ecx - 1]
cmp edx, dword [esp + 0x18]
jge 0x41072c
mov byte [ebx], 0x20
inc ebx
lea edi, [esp + 0x148]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
inc ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add ebx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x11c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4106d7
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebx], 0
test ebp, ebp
mov ebp, 0
je 0x410778
mov eax, dword [esp + 0x268]
mov ecx, dword [esp + 0x264]
mov edx, dword [esp + 0x10]
push eax
push 0
push ecx
push edx
call fcn.004107c0
mov ebp, eax
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebp
jmp 0x4107b3
push 0
push 0
push 0x126
push 0
call fcn.0043cd20
add esp, 0x10
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24c
ret 0xc

Function at 0x411320
Capabilities:
Get disk information

Disassembly:
sub esp, 4
push esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jl 0x411362
cmp byte [esi + 1], 0x3a
jne 0x411362
mov al, byte [esi]
push 0x44b6b4
lea ecx, [esp + 9]
mov byte [esp + 8], al
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
pop esi
add esp, 4
ret 4
xor eax, eax
pop esi
add esp, 4
ret 4