joyce8/EMBER2024-capa huggingface dataset:
Function at 0x526ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606769
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004eed70
movzx eax, al
test eax, eax
je 0x526f4c
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004ef480
mov al, byte [ebp - 0x30]
jmp 0x5270f8
lea ecx, [ebp - 0x28]
call fcn.004eea00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp + 8]
call fcn.004ef850
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x60], esp
push eax
push edx
call fcn.004e2fe0
add esp, 8
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x64], esp
push 0x616730
call fcn.004eea50
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 1
call fcn.004f7d20
add esp, 0x34
lea ecx, [ebp - 0x28]
call fcn.004eed60
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x526fdc
mov byte [ebp - 0x2e], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004eeb60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004ef480
mov al, byte [ebp - 0x2e]
jmp 0x5270f8
push 0x1d4c0
push 0x616748
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x5270d6
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push 0x61677c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xffffffff
jne 0x527041
mov byte [ebp - 0x2f], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004eeb60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004ef480
mov al, byte [ebp - 0x2f]
jmp 0x5270f8
mov ecx, dword [ebp - 0x38]
add ecx, 1
push ecx
call fcn.005c286c
add esp, 4
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.005c63d0
add esp, 0xc
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], esp
lea edx, [ebp - 0x28]
push edx
call fcn.004ee9d0
mov dword [ebp - 0x58], eax
call fcn.004e2ef0
add esp, 0x18
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x38]
add edx, 1
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5270d6
mov byte [ebp - 0x31], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004eeb60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004ef480
mov al, byte [ebp - 0x31]
jmp 0x5270f8
mov byte [ebp - 0x2d], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004eeb60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004ef480
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 0x18
Function at 0x528180
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004ef320
mov dword [ebp - 0x2c], 0x615e38
lea ecx, [ebp - 0x20]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp - 0x2c]
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x528232
xor eax, eax
mov word [ebp - 0x23c], ax
push 0x206
push 0
lea ecx, [ebp - 0x23a]
push ecx
call fcn.005c63d0
add esp, 0xc
mov dword [ebp - 0x34], 1
lea ecx, [ebp - 0x1c]
call fcn.004eed60
shl eax, 1
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004ef850
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.004ef850
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x528287
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x528287
lea ecx, [ebp - 0x1c]
call fcn.004eed60
shl eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004ef850
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.004ef850
push eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.004ef480
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 8
Function at 0x528580
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606b30
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], 0
mov dword [ebp - 4], 1
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x238]
call fcn.004ef320
mov byte [ebp - 4], 2
mov dword [ebp - 0x244], 0x616058
lea ecx, [ebp - 0x23c]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp - 0x244]
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x5286fa
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.005c63d0
add esp, 0xc
mov dword [ebp - 0x220], 1
lea edx, [ebp - 0x21c]
push edx
push 0
lea eax, [ebp - 0x220]
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.004ef850
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5286a8
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0
lea ecx, [ebp + 0xc]
call fcn.004ef850
push eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.004ef4d0
jmp 0x5286eb
lea ecx, [ebp + 0x24]
call fcn.004eed60
shl eax, 1
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x238]
call fcn.004ef850
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.004ef850
push eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x52876a
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x244]
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x52876a
lea ecx, [ebp - 0x238]
call fcn.004eed60
shl eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004ef850
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.004ef850
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.004ef3d0
mov ecx, dword [ebp - 0x248]
or ecx, 1
mov dword [ebp - 0x248], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.004ef480
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004ef480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.004ef480
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 0x34
Function at 0x5287d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0x6160d8
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp - 0x14]
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x52884d
lea ecx, [ebp + 0x20]
call fcn.004eed60
shl eax, 1
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp + 0x20]
call fcn.004ef850
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004ef850
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5288a2
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x5288a2
lea ecx, [ebp + 0x20]
call fcn.004eed60
shl eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp + 0x20]
call fcn.004ef850
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004ef850
push eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.004ef480
lea ecx, [ebp + 0x20]
call fcn.004ef480
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 0x30

Function at 0x531fb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x39]
shr cl, 2
and cl, 1
movzx edx, cl
test edx, edx
je 0x532011
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x39]
shr cl, 3
and cl, 1
movzx edx, cl
test edx, edx
jne 0x531fe5
mov byte [ebp - 1], 1
jmp 0x531fe9
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
and al, 1
shl al, 3
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + 0x39]
and dl, 0xf7
or dl, al
mov eax, dword [ebp - 8]
mov byte [eax + 0x39], dl
push 1
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.00533530
jmp 0x532040
mov ecx, dword [ebp - 8]
add ecx, 0x58
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x532040
push 3
push 0
push 0
mov edx, dword [ebp - 8]
add edx, 0x58
push edx
push 0x617194
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
jmp 0x532042
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5335a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0x114
push 0x110
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.005c63d0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x533604
cmp dword [ebp - 0x114], 6
jb 0x533604
mov dword [ebp - 0x11c], 1
jmp 0x53360e
mov dword [ebp - 0x11c], 0
mov al, byte [ebp - 0x11c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret

Function at 0x533f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x533f74
xor eax, eax
jmp 0x533ff4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x533f8b
xor eax, eax
jmp 0x533ff4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x533fd7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x533fd7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x533fae
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x533fe3
xor eax, eax
jmp 0x533ff4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x533ff1
xor eax, eax
jmp 0x533ff4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x535370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x5353b1
xor al, al
jmp 0x535454
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5353dd
xor al, al
jmp 0x535454
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.005c5d80
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00536790
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5364c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x13c], 1
mov ecx, 0x69f4e0
call fcn.005568f0
mov dword [ebp - 0x14c], eax
push 0xf0
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x5366f7
mov edx, dword [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
je 0x5366f7
mov ecx, dword [ebp - 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x5366f7
cmp dword [ebp - 0x13c], 0
je 0x5366f7
mov edx, dword [ebp - 0x10c]
movzx eax, word [edx]
test eax, eax
je 0x5366f7
mov ecx, dword [ebp - 0x10c]
mov dx, word [ecx]
mov word [ebp - 0x134], dx
mov eax, dword [ebp - 0x10c]
add eax, 2
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov dx, word [ecx]
mov word [ebp - 0x138], dx
mov eax, dword [ebp - 0x10c]
add eax, 2
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx]
mov dword [ebp - 0x150], edx
mov eax, dword [ebp - 0x10c]
add eax, 4
mov dword [ebp - 0x10c], eax
movzx ecx, word [ebp - 0x138]
cmp ecx, 0x403
jne 0x536656
push 0x104
lea ecx, [ebp - 0x108]
call fcn.00578440
mov edx, dword [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x108]
call fcn.00521830
lea ecx, [ebp - 0x108]
call fcn.004f0940
push eax
push 0
push 0x143
movzx eax, word [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x144]
add ecx, 4
call fcn.00536ae0
cmp eax, 0xffffffff
jne 0x536646
mov dword [ebp - 0x13c], 0
lea ecx, [ebp - 0x108]
call fcn.00521850
jmp 0x5366e0
movzx ecx, word [ebp - 0x138]
cmp ecx, 0x1234
jne 0x5366e0
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x12c], 0xffffffff
mov edx, dword [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x258]
call fcn.00521830
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
call fcn.004f0940
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x258]
call fcn.00521850
lea eax, [ebp - 0x130]
push eax
push 0
push 0x40b
movzx ecx, word [ebp - 0x134]
push ecx
mov ecx, dword [ebp - 0x144]
add ecx, 4
call fcn.00536ae0
cmp eax, 0xffffffff
jne 0x5366e0
mov dword [ebp - 0x13c], 0
mov edx, dword [ebp - 0x10c]
add edx, dword [ebp - 0x150]
mov dword [ebp - 0x10c], edx
jmp 0x536564
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 4
Function at 0x53a210
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 4], eax
push 0
push str.TrayNotifyWnd
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 4], eax
push 0
push str.SysPager
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 4], eax
push 0
push 0x617d00
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x53a6c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x53a6fe
xor al, al
jmp 0x53a7a1
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x53a72a
xor al, al
jmp 0x53a7a1
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.005c5d80
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00536790
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x53a7b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x53a7ee
xor al, al
jmp 0x53a891
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x53a81a
xor al, al
jmp 0x53a891
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.005c5d80
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00536790
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x53c490
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x83c], ecx
mov dword [ebp - 0x840], 0
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0x83c]
call fcn.0056c970
mov dword [ebp - 0x848], eax
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x53c6dc
mov ecx, dword [ebp - 0x83c]
call fcn.005592e0
test eax, eax
je 0x53c6dc
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x838], 0
cmp dword [ebp - 0x844], 0
jne 0x53c51d
call fcn.0051c0a0
mov dword [ebp - 0x840], eax
jmp 0x53c6cf
push 0xf01ff
mov edx, dword [ebp - 0x83c]
add edx, 0x2c
push edx
mov eax, dword [ebp - 0x844]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0
je 0x53c6c4
mov ecx, dword [ebp - 0x83c]
add ecx, 0x2c
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 2
push 0x110
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0x400
push 0
lea eax, [ebp - 0x804]
push eax
call fcn.005c63d0
add esp, 0xc
push 4
push 0
lea ecx, [ebp - 0x820]
push ecx
call fcn.005c63d0
add esp, 0xc
push 0x6182d0
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x804]
mov dword [ebp - 0x820], eax
lea ecx, [ebp - 0x820]
push ecx
push 1
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0x14
push 0
lea eax, [ebp - 0x834]
push eax
call fcn.005c63d0
add esp, 0xc
push 8
push 0
lea ecx, [ebp - 0x81c]
push ecx
call fcn.005c63d0
add esp, 0xc
mov edx, 8
imul eax, edx, 0
mov dword [ebp + eax - 0x818], 0
mov ecx, 8
imul edx, ecx, 0
mov dword [ebp + edx - 0x81c], 1
mov eax, 8
shl eax, 0
mov dword [ebp + eax - 0x818], 0xea60
mov ecx, 8
shl ecx, 0
mov dword [ebp + ecx - 0x81c], 1
mov edx, 8
shl edx, 1
mov dword [ebp + edx - 0x818], 0
mov eax, 8
shl eax, 1
mov dword [ebp + eax - 0x81c], 0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x834], 0x15180
mov dword [ebp - 0x828], 3
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x824], ecx
mov dword [ebp - 0x82c], 0
lea edx, [ebp - 0x834]
push edx
push 2
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x53c6cf
call fcn.0051c0a0
mov dword [ebp - 0x840], eax
mov edx, dword [ebp - 0x844]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x840]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 4