joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455644
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455777
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x42224c]
call fcn.0042234c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x45574d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004223ec
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00405320
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x45578c
call fcn.004053c8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00422574
lea ecx, [ebp - 4]
mov edx, 0x4557c8
mov eax, dword [ebp - 0xc]
call fcn.004227ec
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040f6a4
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x455730
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4557d4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x48b8ac]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455737
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x455824
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x45586b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45584e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45585f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x45586b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x45df6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x494cdc], 0
je 0x45e0b5
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x48f378]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x45e0b5
mov eax, dword [0x494ce0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x494cdc]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x45e084
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x494cdc]
call fcn.00419450
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x45e07c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x45e07c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x45e07c
mov eax, dword [ebp - 0x14]
call fcn.00468914
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45e07c
push ebp
call fcn.0045df28
pop ecx
test al, al
jne 0x45e07c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00404480
test al, al
je 0x45e07c
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00404480
cmp byte [ebp - 1], 0
je 0x45e07c
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x45e07c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x494ce0]
call fcn.0045d698
inc edi
dec ebx
jne 0x45dfd1
mov eax, dword [0x494ce0]
cmp dword [eax + 8], 0
jle 0x45e09c
mov eax, dword [0x494ce0]
call fcn.0045d750
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45e0b5
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0045dd8c
pop ecx
test al, al
jne 0x45e0b5
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465740
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.004072f0
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004602f4
test ebx, ebx
jne 0x465793
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0046567c
mov ebx, eax
test ebx, ebx
je 0x46587e
cmp esi, ebx
je 0x4657bc
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4657d1
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x465809
add eax, 0xffffff5f
sub eax, 2
jb 0x465821
dec eax
sub eax, 2
jb 0x465835
dec eax
sub eax, 2
jb 0x46582b
jmp 0x46583f
add eax, 0xfffffdff
sub eax, 2
jb 0x465821
dec eax
sub eax, 2
jb 0x465835
dec eax
sub eax, 2
jb 0x46582b
jmp 0x46583f
mov byte [esp + 0x120], 0
jmp 0x465847
mov byte [esp + 0x120], 2
jmp 0x465847
mov byte [esp + 0x120], 1
jmp 0x465847
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00442b34
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00461aac
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x465880
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x46dd28
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x48f54c]
cmp byte [eax + 0xc], 0
je 0x46de95
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46de8e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x494cec], 0
jne 0x46dd7c
push 0x46de9c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x46dea4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494cec], eax
cmp dword [0x48ba7c], 0
jne 0x46de77
push 0x46deb4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x48ba7c], eax
cmp dword [0x48ba7c], 0
je 0x46de77
push 0x46dec0
mov eax, dword [0x48ba7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494cf0], eax
push 0x46ded0
mov eax, dword [0x48ba7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494cf4], eax
push 0x46dee4
mov eax, dword [0x48ba7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494cf8], eax
push 0x46defc
mov eax, dword [0x48ba7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494cfc], eax
push 0x46df14
mov eax, dword [0x48ba7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494d00], eax
push 0x46df28
mov eax, dword [0x48ba7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494d04], eax
push 0x46df40
mov eax, dword [0x48ba7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494d08], eax
push 0x46df58
mov eax, dword [0x48ba7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494d0c], eax
push 0x46df74
mov eax, dword [0x48ba7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494d10], eax
push 0x46df80
mov eax, dword [0x48ba7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494d14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46de95
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x46f460
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403a48
ret

Function at 0x471b84
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x471cf5
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x471cd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00405298
lea eax, [ebp - 0x118]
mov edx, 0x471d0c
call fcn.0040537c
mov eax, dword [ebp - 0x118]
call fcn.00405540
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x471c42
lea eax, [ebp - 0x111]
call fcn.0040a5d0
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004051a0
jmp 0x471c49
mov eax, esi
call fcn.004050b0
cmp bl, 0x61
jae 0x471c6a
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e710
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00405104
jmp 0x471c84
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e67c
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00405104
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x471d18
call fcn.0040ad00
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00405104
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471cd7
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x477368
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405530
xor eax, eax
push ebp
push 0x4773c6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.00477444
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4773ae
lea eax, [ebp - 4]
call fcn.00477444
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4773b0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4773cd
lea eax, [ebp - 4]
call fcn.004050b0
ret
Function at 0x4773d4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405530
xor eax, eax
push ebp
push 0x477438
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.00477444
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a810
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47743f
lea eax, [ebp - 4]
call fcn.004050b0
ret

Function at 0x4779f8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405530
xor eax, eax
push ebp
push 0x477af1
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [esi + 4]
mov word [ebx + 4], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
movzx eax, word [esi + 8]
mov word [ebx + 8], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.004770fc
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x22], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x24], ax
movzx eax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a418
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004783c8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a2d8
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00478440
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477af8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004050d4
ret
Function at 0x477b00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405530
xor eax, eax
push ebp
push 0x477c09
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
movzx eax, word [esi + 4]
mov word [ebx + 6], ax
movzx eax, word [esi + 6]
mov word [ebx + 8], ax
movzx eax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.004770fc
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x477bcf
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a418
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004783c8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a2d8
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00478440
jmp 0x477be1
xor edx, edx
mov eax, ebx
call fcn.004783c8
xor edx, edx
mov eax, ebx
call fcn.00478440
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477c10
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004050d4
ret

Function at 0x47e4d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.0047e70c
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.0047e70c
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x47e544
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x47e56a
inc esi
mov eax, edi
call fcn.0047e528
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.0047e4d0
inc ebx
dec esi
jne 0x47e553
pop edi
pop esi
pop ebx
ret
Function at 0x47e600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405530
xor eax, eax
push ebp
push 0x47e676
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0047e570
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.0047e528
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.0047e4d0
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x47e640
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e67d
lea eax, [ebp - 4]
call fcn.004050b0
ret
Function at 0x47f310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47f4f6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x47f4b2
mov eax, dword [ebp - 4]
call fcn.00480cb8
cmp ebx, eax
jge 0x47f4b2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.00475ab4
mov edx, dword [0x477498]
call fcn.00404434
mov esi, eax
mov eax, esi
call fcn.0047835c
test al, al
je 0x47f4a8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x47f49c
xor eax, eax
push ebp
push 0x47f495
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047f8c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041bcb4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.004057d0
mov eax, dword [ebp - 8]
call fcn.004055a0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0047f68c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f4e0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x47f494
mov eax, dword [ebp - 4]
call fcn.0047f94c
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040a810
jmp 0x47f4e0
mov eax, dword [ebp - 8]
call fcn.004050b0
jmp 0x47f4e0
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.00409bfc
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x416cf8]
call fcn.0040d838
call fcn.00404af8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f4fd
lea eax, [ebp - 0x54]
call fcn.004050b0
ret
Function at 0x486700
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x486778
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00403a48
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, esi
call fcn.00405540
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x48676a
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48677f
ret
Function at 0x487534
Capabilities:
Shutdown system

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
mov esi, eax
xor ebx, ebx
push esp
push 0xf00ff
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x487554
xor ebx, ebx
lea eax, [esp + 0xc]
push eax
push 0x4875e8
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4875a0
xor ebx, ebx
dec esi
je 0x4875ae
dec esi
je 0x4875bb
dec esi
je 0x4875c8
dec esi
je 0x4875d5
jmp 0x4875e0
push 0
push 2
call sub.user32.dll_ExitWindowsEx
mov bl, 1
jmp 0x4875e0
push 0
push 9
call sub.user32.dll_ExitWindowsEx
mov bl, 1
jmp 0x4875e0
push 0
push 5
call sub.user32.dll_ExitWindowsEx
mov bl, 1
jmp 0x4875e0
push 0
push 0
call sub.user32.dll_ExitWindowsEx
mov bl, 1
mov eax, ebx
add esp, 0x18
pop esi
pop ebx
ret
Function at 0x4876f0
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
push ebx
xor eax, eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x487911
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x22c]
xor eax, eax
call fcn.0040340c
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.0040a2d8
mov edx, dword [ebp - 0x228]
lea eax, [ebp - 4]
mov ecx, 0x487928
call fcn.004053c8
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.004037dc
lea eax, [ebp - 0x1d0]
call fcn.00403578
call fcn.00403030
mov edx, 0x48793c
lea eax, [ebp - 0x1d0]
call fcn.00405860
call fcn.00403ccc
call fcn.00403030
push 0x48794c
lea edx, [ebp - 0x234]
xor eax, eax
call fcn.0040340c
push dword [ebp - 0x234]
push 0x48795c
lea eax, [ebp - 0x230]
mov edx, 3
call fcn.00405444
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x1d0]
call fcn.00405860
call fcn.00403ccc
call fcn.00403030
push 0x487968
lea edx, [ebp - 0x23c]
xor eax, eax
call fcn.0040340c
push dword [ebp - 0x23c]
push 0x48795c
push 0x48797c
lea eax, [ebp - 0x238]
mov edx, 4
call fcn.00405444
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x1d0]
call fcn.00405860
call fcn.00403ccc
call fcn.00403030
push 0x48794c
push dword [ebp - 4]
push 0x48795c
lea eax, [ebp - 0x240]
mov edx, 3
call fcn.00405444
mov edx, dword [ebp - 0x240]
lea eax, [ebp - 0x1d0]
call fcn.00405860
call fcn.00403ccc
call fcn.00403030
lea eax, [ebp - 0x1d0]
call fcn.004038a4
call fcn.00403030
lea eax, [ebp - 0x214]
xor ecx, ecx
mov edx, 0x44
call fcn.00403a48
mov dword [ebp - 0x1e8], 1
mov word [ebp - 0x1e4], 0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405540
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4878e8
mov eax, dword [ebp - 0x220]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x224]
push eax
call sub.kernel32.dll_CloseHandle_1
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487918
lea eax, [ebp - 0x240]
mov edx, 7
call fcn.004050d4
lea eax, [ebp - 4]
call fcn.004050b0
ret