joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1050
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c598
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x592884]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x597cf1], 0
jne 0x4c121f
push 0x564ac0
lea ecx, [ebp - 0x24]
call fcn.0040e070
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
call fcn.00426490
mov ecx, eax
call fcn.00426550
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040abd0
test edi, edi
je 0x4c12cf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5656c8
push edi
call esi
push 0x5656b8
push edi
mov dword [0x597d20], eax
call esi
push 0x564bb8
push edi
mov dword [0x597d34], eax
call esi
push str.GetSecurityInfo
push edi
mov dword [0x597d24], eax
call esi
push str.InitializeAcl
push edi
mov dword [0x597d04], eax
call esi
push 0x56b4bc
push edi
mov dword [0x597d0c], eax
call esi
push 0x56b49c
push edi
mov dword [0x597d2c], eax
call esi
push str.AddAce
push edi
mov dword [0x597d00], eax
call esi
push str.DeleteAce
push edi
mov dword [0x597d14], eax
call esi
push str.SetSecurityInfo
push edi
mov dword [0x597d28], eax
call esi
push str.OpenProcessToken
push edi
mov dword [0x597d10], eax
call esi
push str.GetTokenInformation
push edi
mov dword [0x597d08], eax
call esi
push str.CopySid
push edi
mov dword [0x597d1c], eax
call esi
push str.GetLengthSid
push edi
mov dword [0x597cfc], eax
call esi
push 0x565210
push edi
mov dword [0x597d18], eax
call esi
cmp dword [0x597d20], 0
mov dword [0x597d30], eax
je 0x4c1232
cmp dword [0x597d34], 0
je 0x4c1232
cmp dword [0x597d24], 0
je 0x4c1232
cmp dword [0x597d04], 0
je 0x4c1232
cmp dword [0x597d0c], 0
je 0x4c1232
cmp dword [0x597d2c], 0
je 0x4c1232
cmp dword [0x597d00], 0
je 0x4c1232
cmp dword [0x597d14], 0
je 0x4c1232
cmp dword [0x597d28], 0
je 0x4c1232
cmp dword [0x597d10], 0
je 0x4c1232
cmp dword [0x597d08], 0
je 0x4c1232
cmp dword [0x597d1c], 0
je 0x4c1232
cmp dword [0x597cfc], 0
je 0x4c1232
cmp dword [0x597d18], 0
je 0x4c1232
test eax, eax
je 0x4c1232
mov byte [0x597cf1], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [0x597cf1], 0
mov dword [0x597d20], 0
mov dword [0x597d34], 0
mov dword [0x597d24], 0
mov dword [0x597d04], 0
mov dword [0x597d0c], 0
mov dword [0x597d2c], 0
mov dword [0x597d00], 0
mov dword [0x597d14], 0
mov dword [0x597d28], 0
mov dword [0x597d10], 0
mov dword [0x597d08], 0
mov dword [0x597d1c], 0
mov dword [0x597cfc], 0
mov dword [0x597d18], 0
mov dword [0x597d30], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c5b70
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x592884]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004f9c00
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c5bd7
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4c5bc0
jne 0x4c5bd7
cmp dword [esp + 8], 0
jbe 0x4c5bd7
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004f6f55
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004f6f55
add esp, 0x118
ret

Function at 0x4c5bf0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x592884]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004f9c00
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4c5c45
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004f6f55
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004f6f55
add esp, 0x118
ret

Function at 0x4c5c70
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x592884]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004f9c00
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4c5cc5
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004f6f55
add esp, 0x118
ret
cmp dword [esp + 4], 0xa
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004f6f55
add esp, 0x118
ret

Function at 0x4c5cf0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x592884]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
mov dword [esp + 4], 0x11c
push 0
push eax
call fcn.004f9c00
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c5d66
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x4c5d4f
jne 0x4c5d66
mov eax, dword [esp + 8]
cmp eax, 1
ja 0x4c5d4f
jne 0x4c5d66
cmp word [esp + 0x114], 1
jb 0x4c5d66
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004f6f55
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor al, al
xor ecx, esp
call fcn.004f6f55
add esp, 0x120
ret

Function at 0x4c5d80
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x592884]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004f9c00
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c5de7
mov eax, dword [esp + 4]
cmp eax, 6
jbe 0x4c5dde
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004f6f55
add esp, 0x118
ret
jb 0x4c5de7
cmp dword [esp + 8], 2
jae 0x4c5dc7
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004f6f55
add esp, 0x118
ret
Function at 0x4c7090
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541180
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 8]
call fcn.0040df80
movzx eax, al
test eax, eax
jne 0x4c70dd
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415560
add esp, 4
movzx edx, al
test edx, edx
jne 0x4c70e2
jmp 0x4c7186
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e0d0
mov dword [ebp - 4], 0
push 0x10
lea ecx, [ebp - 0x28]
push ecx
call fcn.00418410
add esp, 8
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x44]
call fcn.004c9710
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00416840
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040abd0
push 0x10
lea edx, [ebp - 0x28]
push edx
call fcn.00418410
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.00415560
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x4c7177
lea edx, [ebp - 0x28]
push edx
call fcn.00415600
add esp, 4
movzx eax, al
test eax, eax
je 0x4c7177
lea ecx, [ebp - 0x28]
call fcn.0040df90
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040abd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f6f55
mov esp, ebp
pop ebp
ret 4
Function at 0x4c9990
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
call fcn.0040df80
movzx eax, al
test eax, eax
jne 0x4c99f2
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415560
add esp, 4
movzx edx, al
test edx, edx
je 0x4c99f2
mov eax, dword [ebp + 8]
push eax
call fcn.0042b3b0
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415560
add esp, 4
movzx edx, al
test edx, edx
je 0x4c99f2
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
call fcn.0040df90
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esp, ebp
pop ebp
ret 4
Function at 0x4caa60
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x41c
mov eax, dword [0x592884]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
mov ebx, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x42c]
push edi
mov edi, ecx
test ebx, ebx
jne 0x4caa8f
xor al, al
jmp 0x4caac7
mov eax, dword [edi + 4]
lea ecx, [esp + 0xc]
push ecx
or eax, 0x20019
mov dword [esp + 0x10], 0
push eax
push esi
push ebx
mov ecx, edi
call fcn.004cb000
test al, al
je 0x4caac5
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0
je 0x4caae1
mov byte [edi + 1], 1
mov al, 1
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f6f55
add esp, 0x41c
ret 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4caaeb
mov eax, dword [esi]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x4caac5
cmp dword [esi + 0x14], 8
jb 0x4caaff
mov esi, dword [esi]
push 0x412
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004f9c00
lea ecx, [esp + 0x1c]
add esp, 0xc
mov eax, ecx
mov edx, 0x208
sub esi, eax
lea eax, [edx + 0x7ffffdf6]
test eax, eax
je 0x4cab3e
movzx eax, word [esi + ecx]
test ax, ax
je 0x4cab3e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4cab20
push dword [edi + 4]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004cb310
add esp, 0xc
test eax, eax
setne al
jmp 0x4caac7
Function at 0x4cae40
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x48], ebx
test ebx, ebx
jne 0x4cae81
xor al, al
jmp 0x4caf3c
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x4caeb0
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x44], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4caee0
sub ecx, dword [ebp - 0x44]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040e3c0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
push ebx
call fcn.004cb100
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040abd0
test bl, bl
je 0x4caf29
cmp byte [edi], 0
je 0x4caf5a
mov byte [edi + 1], 1
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040abd0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f6f55
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x14], 8
jb 0x4caf62
mov esi, dword [esi]
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4caf29
xor bl, bl
jmp 0x4caf2b
Function at 0x4cb310
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x592884]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x228]
lea eax, [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x228]
push 0x208
push 0
push eax
call fcn.004f9c00
add esp, 0xc
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4cb37d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x234]
or eax, 0x20019
push eax
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4cb399
cmp eax, 2
jne 0x4cb49f
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004f6f55
add esp, 0x21c
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
je 0x4cb3bc
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov word [edi], ax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4cb47e
push esi
lea esi, [esp + 0x20]
sub esi, edi
nop dword [eax]
nop dword [eax + eax]
mov edx, 0x208
mov eax, edi
nop word [eax + eax]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x4cb42e
movzx ecx, word [esi + eax]
test cx, cx
je 0x4cb42e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4cb410
push dword [esp + 0x238]
lea ecx, [eax - 2]
test edx, edx
push ebx
cmovne ecx, eax
xor eax, eax
push ebp
mov word [ecx], ax
call fcn.004cb310
add esp, 0xc
test eax, eax
je 0x4cb47d
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4cb400
pop esi
xor eax, eax
mov word [edi - 2], ax
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
test eax, eax
je 0x4cb37d
mov ecx, dword [esp + 0x220]
xor eax, eax
pop ebp
pop ebx
xor ecx, esp
call fcn.004f6f55
add esp, 0x21c
ret
Function at 0x4cb4e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541b28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x30], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x4cb527
xor al, al
jmp 0x4cb607
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x28]
push ecx
push ebx
push edi
mov ecx, eax
call fcn.004cb100
test al, al
je 0x4cb5b8
cmp byte [ebp + 0x14], 0
je 0x4cb57b
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00412d20
add esp, 8
test al, al
je 0x4cb5b8
mov bl, 1
jmp 0x4cb5f6
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4cb585
mov ecx, dword [esi]
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmovae edi, dword [ebp - 0x28]
cmp edx, dword [esi + 0x10]
jne 0x4cb5b5
test edx, edx
je 0x4cb5b1
sub edi, ecx
nop
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4cb5b5
add ecx, 2
sub edx, 1
jne 0x4cb5a0
mov bl, 1
jmp 0x4cb5f6
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
cmp byte [eax], 0
je 0x4cb5c8
mov byte [eax + 1], 1
mov bl, 1
jmp 0x4cb5f6
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4cb5d3
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
jb 0x4cb5db
mov ebx, dword [ebx]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4cb5b1
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040abd0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f6f55
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4cc840
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x410
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.004f9c00
add esp, 0xc
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4cc88e
xor al, al
jmp 0x4cc8e7
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4cc8c0
cmp dword [ebp - 0x418], 0
je 0x4cc8bc
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x4cc8e7
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040dfd0
cmp dword [ebp - 0x418], 0
je 0x4cc8e5
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6f55
mov esp, ebp
pop ebp
ret

Function at 0x4ccc50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push 0x3c
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.004f9c00
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x40], ecx
cmp dword [ebp + 0x20], 0
je 0x4ccc81
mov edx, dword [ebp + 0x20]
mov dword [ebp - 4], edx
jmp 0x4ccc8a
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4ccce0
cmp dword [ebp - 0x24], 0x20
jbe 0x4cccd2
mov dword [ebp - 8], 1
jmp 0x4cccd9
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
jmp 0x4cccf3
cmp dword [ebp + 0x18], 0
je 0x4cccf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4cdbc0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x592884]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x592010], 0
jne 0x4cdc42
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004f9c00
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cdc23
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, section..data
call fcn.0040e3c0
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004f6f55
add esp, 0x214
ret

Function at 0x4cddd0
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x542158
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x596b34]
test eax, eax
jle 0x4cde21
inc eax
mov dword [0x596b34], eax
mov al, 1
jmp 0x4cdf13
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.0042caf0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042d710
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0042cb70
test bl, bl
je 0x4cdf03
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4cdf03
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x4cdefc
inc dword [0x596b34]
mov eax, dword [edi]
test eax, eax
je 0x4cdea6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x592028], 0
mov dword [ebp - 0x10], 0
jne 0x4cdefc
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.004f9c00
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x592018
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.0040dfd0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4cdf11
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004f6f55
lea esp, [ebp + 0x210]
pop ebp
ret
Function at 0x4d2920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542d53
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x592884]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, word [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x54d190
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4d2a8b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4d2a8b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d2a8b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4d2a8b
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4d2a8b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4d2a84
push ebx
push esi
push eax
call fcn.004f9680
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4d2a84
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4d2a84
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4d2a3b
mov dword [esi], vtable.Gdiplus::Image.0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x10], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
jmp 0x4d2a3d
xor esi, esi
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
je 0x4d2a70
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x4d2a70
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret