joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a4d
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x400
push esi
push edi
xor esi, esi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, 0x58ced85
jg 0x401a71
inc edi
cmp edi, 0x1f6502b1
jl 0x401a59
cmp dword [0x2c32a9c], 0x400
jne 0x401ac9
push str.sadahoziyofejonoh_niforapo_pihekezavokigubodatojup_rafepigojamulexiwodugaxexude_jam
push str.nelugidoneyari
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeKeepStringHandle]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
push 0x47f1a8
call fcn.00402038
push str.yogihubuwefugus
push esi
call fcn.004020f5
push esi
push esi
call fcn.00401ee4
push esi
call fcn.00402339
push esi
call fcn.00402348
add esp, 0x20
xor edi, edi
cmp edi, 0xd0fe
jge 0x401ada
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
cmp edi, 0x3a37ee
jg 0x401b01
inc edi
cmp edi, 0xe52f
jl 0x401acb
mov eax, dword [0x4742dc]
mov dword [0x2c32a9c], eax
call fcn.00401780
mov edi, 0x3078f
cmp dword [0x2c32a9c], 0x51f
jne 0x401b2d
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec edi
jne 0x401b15
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x406f5f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x473410]
jne 0x406f69
repz ret
jmp fcn.00409d17
Function at 0x407b9f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x473410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404ea1
and dword [ebp - 0x14], 0
cmp dword [0x47ee68], 0
mov dword [ebp - 0x18], eax
jne 0x407c52
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407cfa
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407cfa
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47ee68], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47ee6c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47ee70], eax
call edi
push eax
call esi
mov dword [0x47ee78], eax
test eax, eax
je 0x407c52
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47ee74], eax
mov eax, dword [0x47ee74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407cab
cmp dword [0x47ee78], ecx
je 0x407cab
push eax
call esi
push dword [0x47ee78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407cab
test ebx, ebx
je 0x407cab
call edi
test eax, eax
je 0x407ca2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407ca2
test byte [ebp - 8], 1
jne 0x407cab
or dword [ebp + 0x10], 0x200000
jmp 0x407cde
mov eax, dword [0x47ee6c]
cmp eax, dword [ebp - 0x18]
je 0x407cde
push eax
call esi
test eax, eax
je 0x407cde
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407cde
mov eax, dword [0x47ee70]
cmp eax, dword [ebp - 0x18]
je 0x407cde
push eax
call esi
test eax, eax
je 0x407cde
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47ee68]
call esi
test eax, eax
je 0x407cfa
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407cfc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406f5f
leave
ret
Function at 0x43558a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
test eax, eax
je 0x4355b2
xor ebx, ebx
cmp word [eax], bx
je 0x4355b2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4355ae
test al, 0x10
jne 0x4355ae
mov bl, 1
mov al, bl
jmp 0x4355b4
xor al, al
pop ebx
pop ebp
ret

Function at 0x435a4d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45f038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, 0x208
push edi
push 0
push eax
call fcn.004399a0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x435aab
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00435afc
pop ecx
pop ecx
test eax, eax
jne 0x435aed
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004399a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x435ae6
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00435afc
pop ecx
pop ecx
test eax, eax
jne 0x435aed
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437d86
leave
ret

Function at 0x435caa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45f038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 1
push ebx
push 0x403fe8
push 0x80000001
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435d19
push esi
push 4
pop esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], esi
push eax
push ebx
push 0x406710
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x435d18
cmp dword [ebp - 8], esi
jne 0x435d18
cmp dword [ebp - 0xc], esi
jne 0x435d18
cmp dword [ebp - 0x10], ebx
jne 0x435d18
mov bl, 1
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00437d86
leave
ret

Function at 0x444a27
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004446ea

Function at 0x444a32
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044486b
Function at 0x454492
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x280
mov eax, 0x45ab7f
call fcn.00437e02
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x288], eax
test edi, edi
jne 0x4544d5
test ebx, ebx
je 0x4544d5
push 0x57
pop eax
jmp 0x4546a7
xor eax, eax
lea ecx, [ebp - 0x280]
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x25c]
push 0x109
push eax
call fcn.004531f0
mov dword [ebp - 0x280], 0x410d60
and dword [ebp - 4], 0
lea eax, [ebp - 0x12c]
push 0
push 0x109
push eax
lea ecx, [ebp - 0x150]
call fcn.004531f0
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x280]
push esi
mov dword [ebp - 0x150], 0x410d60
call fcn.004539e2
mov esi, eax
test esi, esi
jne 0x45467e
test ebx, ebx
jne 0x45456a
test edi, edi
jne 0x45456a
push eax
push eax
push dword [ebp - 0x288]
push eax
push dword [ebp - 0x270]
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
jmp 0x45467e
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x270]
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x45467e
cmp dword [ebp - 0x18], 2
je 0x4545c0
cmp dword [ebp - 0x18], 7
je 0x4545c0
cmp dword [ebp - 0x18], 1
je 0x4545c0
test ebx, ebx
jne 0x4545b0
mov eax, dword [ebp - 0x14]
jmp 0x45467c
push edi
push ebx
push dword [ebp - 0x288]
push dword [ebp - 0x28c]
jmp 0x454551
push dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
call fcn.00453b1c
mov esi, eax
test esi, esi
jne 0x45467e
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x140]
push dword [ebp - 0x288]
push dword [ebp - 0x28c]
push dword [ebp - 0x270]
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x45467e
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
dec eax
push eax
call fcn.00453345
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x150]
call fcn.00453ac4
mov esi, eax
test esi, esi
jne 0x45467e
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
test ebx, ebx
jne 0x45463b
lea eax, [ecx + ecx]
jmp 0x45467c
mov eax, dword [edi]
shr eax, 1
cmp ecx, eax
jbe 0x45464a
mov esi, 0xea
jmp 0x454636
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
and dword [ebp - 0x20], 0
dec eax
push eax
call fcn.00453345
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
call fcn.00453b3a
mov esi, eax
test esi, esi
jne 0x45467e
mov eax, dword [ebp - 0x20]
add eax, eax
mov dword [edi], eax
mov ebx, 0x410d60
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x150], ebx
call fcn.0045324b
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x280], ebx
call fcn.0045324b
mov eax, esi
call fcn.00437dac
ret 0x18
Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x56c26805
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x5ad50c0d
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x417647
Capabilities:
Encode data using xor

Disassembly:
mov ah, 0xd3
je 0x4175f5
adc dh, byte [ebx - 0x204b93ef]
inc esp
and byte [ebp - 0xb], 0xce
mov byte [0x234e9cb1], al
jo 0x417658
pop ebx
invalid

Function at 0x417e10
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc0
push esi
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
lea eax, [esp + 8]

Function at 0x44568f
Capabilities:
Encode data using xor

Disassembly:
sbb eax, 0x3a4d1934
salc
adc al, 0xd7
cmp ch, byte [edi - 0x12]
or byte [edi + edx*8 + 0x5e23c6ea], dl
mov word [eax + eax*4], ss
xor ch, byte [edx]
pop ebp
das
salc
jecxz 0x4455da
outsb dx, byte [esi]
push 0x17
leave
shl dword [esi], 7
and eax, 0xcd10822
mov eax, dword [0x9337277d]
fdiv qword [ebp - 0x52f3f769]
salc
push edx
or dword [edi], esp
sub dword [edx - 0x3e], 0xe99f008d
pop ss
xchg byte [ecx + 0xac60c3a], ch
invalid
jbe 0x4455d2
and dword [ecx + 0x78e103f], esi
pop esp
mov cl, 0xbd
xchg ecx, eax
jno 0x44562b
jecxz 0x44566c
cmp al, 0x2e
pop es
aas
invalid
invalid

Function at 0x4bb3b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3390
cmp edx, dword [eax]
je 0x4bb3d7
add eax, 8
inc ecx
cmp eax, 0x4c3420
jl 0x4bb3c8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3390]
jne 0x4bb505
mov eax, dword [0x4c7d1c]
cmp eax, 1
je 0x4bb4df
test eax, eax
jne 0x4bb408
cmp dword [0x4c32b8], 1
je 0x4bb4df
cmp edx, 0xfc
je 0x4bb505
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb43f
lea eax, [ebp - 0x1a4]
push 0x4c0848
push eax
call fcn.004bbda0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc230
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb482
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc230
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0844
push edi
call fcn.004be100
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0828
push eax
call fcn.004bbda0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbdb0
lea eax, [ebp - 0xa0]
push 0x4c0824
push eax
call fcn.004bbdb0
push dword [esi + 0x4c3394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbdb0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c07fc
push eax
call fcn.004be074
add esp, 0x2c
pop edi
jmp 0x4bb505
lea eax, [ebp + 8]
lea esi, [esi + 0x4c3394]
push 0
push eax
push dword [esi]
call fcn.004bc230
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401500
Capabilities:
Create process on windows
Get token membership

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x184
call fcn.0041b460
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 0
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 5
lea eax, [ebp - 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x220
mov dword [esp + 8], 0x20
mov dword [esp + 4], 2
lea eax, [ebp - 0x12]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
call eax
sub esp, 0x2c
test eax, eax
setne al
test al, al
je 0x4015c5
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
call eax
sub esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_FreeSid]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4016c3
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call eax
sub esp, 0xc
test eax, eax
setne al
test al, al
je 0x401697
lea edx, [ebp - 0x158]
mov eax, 0
mov ecx, 0xf
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x158], 0x3c
mov dword [ebp - 0x14c], str.runas
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x13c], 1
lea eax, [ebp - 0x158]
mov dword [esp], eax
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
sete al
test al, al
je 0x401690
mov dword [esp + 4], str.Failed_to_obtain_admin_privileges.
mov dword [esp], 0x489040
call fcn.0047d200
mov dword [esp], 0x47b270
mov ecx, eax
call fcn.004532b0
sub esp, 4
mov eax, 0
jmp 0x401695
mov eax, 1
jmp 0x4016ed
mov dword [esp + 4], str.Failed_to_get_module_file_name.
mov dword [esp], 0x489040
call fcn.0047d200
mov dword [esp], 0x47b270
mov ecx, eax
call fcn.004532b0
sub esp, 4
mov eax, 0
jmp 0x4016ed
mov dword [esp + 4], str.Already_running_with_administrator_privileges.
mov dword [esp], 0x4891c0
call fcn.0047d200
mov dword [esp], 0x47b270
mov ecx, eax
call fcn.004532b0
sub esp, 4
mov eax, 1
mov edi, dword [ebp - 4]
leave
ret
Function at 0x401839
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
call fcn.0041b460
mov dword [ebp - 0x44], 0x480d60
mov dword [ebp - 0x40], 0x4816ca
lea eax, [ebp - 0x3c]
lea ebx, [ebp - 0x18]
mov dword [eax], ebx
mov edx, 0x40192d
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call fcn.0040f6e0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x48a07b
mov dword [ebp - 0x58], 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.00427650
sub esp, 8
lea edx, [eax + 1]
lea eax, [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov ecx, eax
call fcn.00427f80
sub esp, 0xc
lea eax, [ebp - 0x20]
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x58], 1
call fcn.0047dafc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x58], 2
mov ecx, eax
call fcn.00455920
lea eax, [ebp - 0x20]
mov dword [ebp - 0x58], 3
mov ecx, eax
call fcn.00427dc0
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp + 8]
call fcn.00427dc0
mov esi, dword [ebp - 0x60]
mov dword [esp + 4], esi
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_MoveFileA]
call eax
sub esp, 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x58], 0xffffffff
mov ecx, eax
call fcn.00455920
jmp 0x4019bf
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call fcn.0040f850
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401ef7
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
call fcn.0041b460
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov edx, eax
lea eax, [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x28
mov dword [esp], edx
mov eax, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call eax
sub esp, 0xc
test eax, eax
sete al
test al, al
je 0x401f5a
mov dword [esp + 4], str.OpenProcessToken_failed.
mov dword [esp], 0x489040
call fcn.0047d200
mov dword [esp], 0x47b270
mov ecx, eax
call fcn.004532b0
sub esp, 4
jmp 0x402040
lea eax, [ebp - 0x1c]
add eax, 4
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeShutdownPrivilege
mov dword [esp], 0
mov eax, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
call eax
sub esp, 0xc
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea edx, [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call eax
sub esp, 0x18
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
test eax, eax
setne al
test al, al
je 0x401ff9
mov dword [esp + 4], str.AdjustTokenPrivileges_failed.
mov dword [esp], 0x489040
call fcn.0047d200
mov dword [esp], 0x47b270
mov ecx, eax
call fcn.004532b0
sub esp, 4
jmp 0x402040
mov dword [esp + 4], 0
mov dword [esp], 6
mov eax, dword [sym.imp.USER32.dll_ExitWindowsEx]
call eax
sub esp, 8
test eax, eax
sete al
test al, al
je 0x402040
mov dword [esp + 4], str.ExitWindowsEx_failed.
mov dword [esp], 0x489040
call fcn.0047d200
mov dword [esp], 0x47b270
mov ecx, eax
call fcn.004532b0
sub esp, 4
leave
ret
Function at 0x402042
Capabilities:
Change the wallpaper
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
call fcn.0041b460
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 1
mov dword [esp + 4], 0x48a20c
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__wfopen]
call eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4021c4
mov word [ebp - 0x22], 0x4d42
mov eax, 0x36
add eax, 4
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], 0
mov word [ebp - 0x1a], 0
mov eax, 0x36
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x50], 0x28
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov word [ebp - 0x44], 1
mov word [ebp - 0x42], 0x20
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x24], 0
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x26], 0
mov byte [ebp - 0x23], 0
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0xe
lea eax, [ebp - 0x22]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x28
lea eax, [ebp - 0x50]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 4
lea eax, [ebp - 0x26]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [esp + 0xc], 3
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x14
mov eax, dword [sym.imp.USER32.dll_SystemParametersInfoW]
call eax
sub esp, 0x10
test eax, eax
sete al
test al, al
je 0x4021c2
mov dword [esp + 4], str.Failed_to_set_desktop_wallpaper.
mov dword [esp], 0x489040
call fcn.0047d200
mov dword [esp], 0x47b270
mov ecx, eax
call fcn.004532b0
sub esp, 4
jmp 0x4021e9
mov dword [esp + 4], str.Failed_to_create_black_BMP_file.
mov dword [esp], 0x489040
call fcn.0047d200
mov dword [esp], 0x47b270
mov ecx, eax
call fcn.004532b0
sub esp, 4
leave
ret