joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478340
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4783e2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4783b5
mov edx, ebx
mov eax, dword [0x43de38]
call fcn.00441dc4
test al, al
je 0x4783a5
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.00441cd4
call fcn.00427a44
jmp 0x4783e9
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x478370
mov ecx, dword [0x48949c]
mov dl, 1
mov eax, dword [0x414688]
call fcn.00418e1c
call fcn.00427998
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4783e9
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4783f0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x478448
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47844f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x478458
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4784ad
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4784b4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x478524
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x478599
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00478170
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.00441d98
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x478583
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4785a0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4785a8
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x47861d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00478170
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x478607
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478624
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x47d660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x47d6c2
call fcn.0047d610
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00479774
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00479774
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47d740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x487980], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x47d81a
cmp dword [0x48797c], 0
jne 0x47d81a
cmp dword [0x487b60], 0
je 0x47d7d4
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0047d510
add esp, 8
mov ebx, eax
test eax, eax
jne 0x47d7ba
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0047d510
add esp, 8
mov ebx, eax
test eax, eax
jne 0x47d7ba
lea ebx, [ebp - 0x84]
jmp 0x47d7bb
inc ebx
call fcn.0047d6fc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x47d855
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x487984
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00479774
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x487987
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x47d855
cmp dword [0x48797c], 0
je 0x47d834
cmp dword [0x48797c], 0xffffffff
je 0x47d855
push esi
call dword [0x48797c]
pop ecx
mov eax, dword [0x487980]
test eax, eax
je 0x47d855
cmp dword [0x487980], 0xffffffff
je 0x47d855
cmp byte [eax], 0
je 0x47d855
push esi
push eax
call fcn.0047d660
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47dfec
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x48ab40], 0
jne 0x47e06d
cmp dword [0x48ab60], 0
jne 0x47e01c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x48ab60], eax
test eax, eax
jne 0x47e01c
push str.GetEnvironmentStrings_failed
call fcn.0047d86c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x48ab60]
jmp 0x47e030
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00479774
pop ecx
mov edi, eax
test eax, eax
jne 0x47e028
lea edi, [ebp + 1]
push edi
call fcn.00479078
pop ecx
mov ebx, eax
mov dword [0x48ab44], ebx
test ebx, ebx
jne 0x47e05a
xor eax, eax
jmp 0x47e130
push edi
mov edx, dword [0x48ab60]
push edx
push ebx
call fcn.00479624
add esp, 0xc
jmp 0x47e08d
xor esi, esi
mov ebx, dword [0x48ab40]
jmp 0x47e087
push eax
call fcn.00479774
pop ecx
test eax, eax
jne 0x47e083
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x47e077
lea ebx, [esi + 4]
push 4
mov dword [0x48ab48], ebx
inc ebx
push ebx
call fcn.00478b50
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x47e0b0
xor eax, eax
jmp 0x47e130
cmp dword [0x48ab40], 0
jne 0x47e0e1
xor esi, esi
mov ebx, dword [0x48ab44]
mov eax, dword [esp]
mov ebp, eax
jmp 0x47e0d2
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00479774
pop ecx
mov edi, eax
test eax, eax
jne 0x47e0c8
jmp 0x47e112
xor esi, esi
mov ebx, dword [0x48ab40]
mov eax, dword [esp]
mov edi, eax
jmp 0x47e10c
push eax
call fcn.00479774
pop ecx
test eax, eax
je 0x47e101
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x47e105
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x47e0f0
mov eax, dword [0x48ab40]
test eax, eax
je 0x47e122
push eax
call fcn.00479088
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x48ab40], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42105f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x44e8a8
call fcn.00422e90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x420f16
xor ebx, ebx
jmp 0x420f49
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x420f12
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x420f12
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x420f49
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004279ab
test eax, eax
jne 0x420f5d
push 0x1c
call main
pop ecx
call fcn.00427918
test eax, eax
jne 0x420f6e
push 0x10
call main
pop ecx
call fcn.00428296
and dword [ebp - 4], 0
call fcn.004279c0
test eax, eax
jns 0x420f88
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x457adc], eax
call main
mov dword [0x455a24], eax
call main
test eax, eax
jns 0x420fae
push 8
call main
pop ecx
call fcn.00427eb1
test eax, eax
jns 0x420fbf
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x420fd2
push eax
call main
pop ecx
call fcn.00428714
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x420ff4
push esi
call main
call fcn.00426cd7
jmp 0x421029
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00422ed5
ret
call main
jmp 0x420ee8

Function at 0x42d6d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x42d6e3
pop dword [ebp - 0x1c]
mov eax, 0xade72bc4
add eax, 0x525bab1f
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x8e5c085e
sub dword [ebp - 0x2c], 0x4009c313
mov dword [ebp - 0x28], 0x9d962bf9
add dword [ebp - 0x28], 0x949d204c
mov dword [ebp - 0x24], 0xe4e08558
add dword [ebp - 0x24], 0x676bbed6
mov dword [ebp - 0x20], 0x473c1545
add dword [ebp - 0x20], 0xb8c3eabb
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x8bdef98e
add dword [ebp - 0x2c], 0xe8936fc8
mov dword [ebp - 0x28], 0x3deb2401
sub dword [ebp - 0x28], 0xfc7ec28c
mov dword [ebp - 0x24], 0xbcd8f810
add dword [ebp - 0x24], 0xa696745c
mov dword [ebp - 0x20], 0x855173af
sub dword [ebp - 0x20], 0x855173af
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xf90ebf54
sub eax, 0xf8cafc64
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x44f12
push 0
call eax
mov ecx, 0x5c367448
add ecx, 0xa3c9cfdb
mov edx, eax
mov ebx, 0x2c912ef2
sub ebx, 0x2c49d8f2
add ebx, dword [ebp - 0x1c]
mov edi, 0x666b8108
add dword [ebp - 0x18], 0x753bc2d8
mov esi, dword [ebx]
xor dword [ebp - 4], 0xd7f6382d
sub esi, edi
mov dword [ebp - 0x10], 0x47495afe
mov dword [edx], esi
add dword [ebp - 4], esi
add edx, 4
add ebx, 4
loop 0x42d7fa
add eax, 0x37fd3832
add eax, 0xc803cb2d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4063f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x8101bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4046c4
call fcn.00407051
push 4
mov dword [esp + 0x18], 0
call fcn.00407ef6
mov edi, eax
add esp, 4
test edi, edi
je 0x406464
push ebx
call fcn.00406f29
mov dword [edi], eax
call fcn.00406ce8
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00407012
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406458
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040703a
pop ebx
jmp 0x406466
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408961
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x813520]
jne 0x40896b
repz ret
jmp fcn.0040d0bc
Function at 0x411d02
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x813520]
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.0040b061
and dword [ebp - 0x14], 0
cmp dword [0x818a94], 0
mov dword [ebp - 0x18], eax
jne 0x411db5
push 0x403934
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411e5d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403928
push ebx
call edi
test eax, eax
je 0x411e5d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403918
push ebx
mov dword [0x818a94], eax
call edi
push eax
call esi
push 0x403904
push ebx
mov dword [0x818a98], eax
call edi
push eax
call esi
push 0x4038e8
push ebx
mov dword [0x818a9c], eax
call edi
push eax
call esi
mov dword [0x818aa4], eax
test eax, eax
je 0x411db5
push 0x4038d0
push ebx
call edi
push eax
call esi
mov dword [0x818aa0], eax
mov eax, dword [0x818aa0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411e0e
cmp dword [0x818aa4], ecx
je 0x411e0e
push eax
call esi
push dword [0x818aa4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411e0e
test ebx, ebx
je 0x411e0e
call edi
test eax, eax
je 0x411e05
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411e05
test byte [ebp - 8], 1
jne 0x411e0e
or dword [ebp + 0x10], 0x200000
jmp GetConsoleAliasExesA
mov eax, dword [0x818a98]
cmp eax, dword [ebp - 0x18]
je GetConsoleAliasExesA
push eax
call esi
test eax, eax
je GetConsoleAliasExesA
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je GetConsoleAliasExesA
mov eax, dword [0x818a9c]
cmp eax, dword [ebp - 0x18]
je FindFirstFileW
push eax
call esi
test eax, eax
je GetConsoleAliasExesA
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [GetConsoleAliasExesA]
call esi
test eax, eax
je 0x411e5d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411e5f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408961
leave
ret
Function at 0x80ed10
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9d820], 0x37
jne 0x80edb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x404174
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0x4041b0
push 0x404248
push 0x4042c8
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0xb9d824]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x81d884]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x80f000
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9d820]
sub esp, 0x434
push ebx
push ebp
push esi
shr eax, 3
xor ebx, ebx
push edi
mov edi, dword [0x81d884]
cmp eax, ebx
jbe 0x80f1e8
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x80f036
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0xb9d820], 0x1c
jne 0x80f04d
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x814700]
mov eax, dword [0x814704]
mov esi, dword [edi]
mov ebp, dword [0x814708]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x81470c]
mov edi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], 0x20
jmp 0x80f08a
xor ebx, ebx
mov eax, esi
mov edx, esi
shl eax, 4
shr edx, 5
add edx, dword [esp + 0x28]
add eax, ebp
lea ecx, [edi + esi]
xor eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [0xb9c7a4], ebx
mov eax, dword [esp + 0x18]
add dword [0xb9c7a4], eax
mov edx, dword [0xb9c7a4]
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x34]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
cmp dword [0xb9d820], 0x1be
mov eax, dword [esp + 0x14]
lea ebx, [edi + eax]
jne 0x80f124
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0xb9d820], 0x979
mov dword [0xb9c7a8], 0xff6b3619
mov dword [0xb9c7ac], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x80f168
push 0
lea eax, [esp + 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [0xb9d820]
sub esi, dword [esp + 0x10]
cmp eax, 0x93
je 0x80f18a
add edi, 0x61c88647
dec dword [esp + 0x20]
jne 0x80f088
cmp eax, 0x8d4
jne 0x80f1a1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], ecx
cmp dword [0xb9d820], 0x17
jne 0x80f1d7
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea edx, [esp + 0x40]
push edx
push 0x404100
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x80f030
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x434
ret
Function at 0x41580b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 0x10]
push edi
call fcn.00413afc
xor esi, esi
pop ecx
mov ecx, dword [ebp + 8]
mov edx, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
test ecx, ecx
je 0x41588f
cmp ecx, 0xffffffff
je 0x41588f
test eax, eax
je 0x41584d
add eax, eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
lea edx, [ebp - 8]
mov dword [ebp - 4], edi
mov word [ebp - 8], ax
mov word [ebp - 6], ax
cmp dword [ebp + 0x18], esi
setne al
cmp dword [ebp + 0x14], esi
movzx eax, al
push eax
push edx
setne al
movzx eax, al
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push eax
push esi
push esi
push esi
push ecx
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
test eax, eax
jne 0x415884
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x415892
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
jmp 0x415892
push 6
pop esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41589a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
test eax, eax
je 0x4158de
cmp eax, 0xffffffff
je 0x4158de
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jne 0x4158d3
mov eax, dword [ebp - 8]
test eax, eax
je 0x4158e1
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
jmp 0x4158e1
push 6
pop esi
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4158ed
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41599d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
test eax, eax
je 0x4159e1
cmp eax, 0xffffffff
je 0x4159e1
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jne 0x4159d6
mov eax, dword [ebp - 8]
test eax, eax
je 0x4159e4
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
jmp 0x4159e4
push 6
pop esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4159eb
Capabilities:
Continue service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x43c3d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], eax
push eax
mov dword [ebp - 0x2c], ecx
xor edi, edi
mov dword [ebp - 0x24], ebx
call fcn.004156f4
mov esi, eax
pop ecx
test esi, esi
jne 0x415a98
xor esi, esi
test ebx, ebx
jne 0x415a37
push 4
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x415a5f
test edi, edi
jne 0x415acd
push 0x54
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x415acd
push 0x14
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x415acd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x41f
jne 0x415a78
mov esi, 0x4d5
cmp esi, 0x4d5
jne 0x415aa3
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x415a1e
push 0x64
push 0
push eax
call fcn.0040fb50
add esp, 0xc
test eax, eax
je 0x415a1e
cmp esi, 0x4d5
jne 0x415aa3
add esi, 0xfffffff2
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x415ab0
push edi
call ebx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x415aba
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004225c9
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x415af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [eax - 0x420]
neg esi
sbb esi, esi
and esi, eax
jne 0x415a78
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x415b4a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x415a73
cmp eax, 3
jbe 0x415a73
cmp eax, 4
je 0x415aa3
jbe 0x415a73
cmp eax, 6
jbe 0x415a73
cmp eax, 7
jne 0x415a73
lea eax, [ebp - 0x20]
mov esi, 0x4d5
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x415a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x415a78