joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bbf30
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x55dfb8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], 0x57cb58
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x3ff
lea eax, [ebp]
push eax
push edi
call ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4bbfdb
cmp eax, 0x400
jae 0x4bc0ac
mov byte [ebp + eax], 0
mov ecx, esi
lea eax, [ebp]
push eax
call fcn.00492a10
jmp 0x4bbfa5
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x4bc069
add eax, 0xfffffffe
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040d130
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ebx, dword [esi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4bc04a
cmp dword [ebx + 0xc], 0
jl 0x4bc03f
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4bc03f
call fcn.00408ad0
mov dword [ebp - 0x14], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bc038
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi], eax
jmp 0x4bc04a
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.00408e30
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bc069
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x57cb58
test edi, edi
je 0x4bc089
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.0051dacc
lea esp, [ebp + 0x404]
pop ebp
ret
call fcn.0051e0ba
int3
Function at 0x4bc980
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e1aa
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x5cf024]
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 esi, edx
mov edi, ecx
push str.TEST
push 0
mov edx, str.tin9999.tmp
mov dword [ebp - 0x1c], str.http:__www.google.com
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], str.http:__www.yahoo.com
mov dword [ebp - 0x14], str.http:__www.example.com
call fcn.00409a80
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd0]
push esi
push edi
call fcn.004bccf0
mov byte [ebp - 4], 1
xor bl, bl
mov dword [ebp - 0x58], 0
lea esi, [ebp - 0x1c]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0xd8]
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.00415390
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
push dword [esi]
call fcn.00415390
mov byte [ebp - 4], 3
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0048e870
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0xd0]
call dword [eax + 0x4c]
mov edi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe4]
call fcn.0047e930
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0xd4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bcab2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
or ecx, 0xffffffff
mov eax, dword [ebp - 0xd8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4bcad4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
test edi, edi
je 0x4bcae8
add esi, 4
lea eax, [ebp - 0x10]
cmp esi, eax
jne 0x4bca02
jmp 0x4bcaea
mov bl, 1
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.004a2690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00407e00
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.0051dacc
mov esp, ebp
pop ebp
ret
Function at 0x4beb80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e648
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push esi
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
cmp byte [ebx + 0x40], 0
mov dword [ebp + 0xc], eax
cmovne ecx, eax
mov byte [ebx + 0x10], 1
lea eax, [ebp - 0x14]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x10], eax
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4bec94
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.004beac0
mov esi, eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4bec37
cmp dword [ebp + 0x10], eax
je 0x4bec37
mov esi, 0x2ee2
jmp 0x4bec4f
test esi, esi
jne 0x4bec4f
mov esi, dword [ebx + 4]
cmp esi, dword [edi + 4]
je 0x4bec4d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], esi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4bec7e
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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 0x10
push 0x80004005
call fcn.00408f80
int3
Function at 0x4c0ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ebb8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004092a0
test eax, eax
je 0x4c10ec
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.004092a0
test eax, eax
je 0x4c10ec
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov eax, 0x58e41c
lea ecx, [ebp - 0x18]
test eax, 0xffff0000
jne 0x4c0f73
movzx eax, ax
push eax
call fcn.00415230
jmp 0x4c0f7f
push 3
push 0x58e41c
call fcn.00408e30
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push 0x58e41c
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004c1500
test al, al
sete byte [ebp - 0xd]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c0fbc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x4c0fce
push 0x18
push str.Unable_to_get_temp_file
jmp 0x4c1072
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x24], 0x57cb58
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
jne 0x4c100c
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x57cb58
push eax
jmp 0x4c105e
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0xfeff
push eax
push 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c104e
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x18]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c108d
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x57cb58
test esi, esi
je 0x4c106b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
push 0x1b
push str.Unable_to_save_script_file
lea ecx, [ebx + 4]
call fcn.00408e30
mov eax, dword [ebp - 0x14]
lea ecx, [ebx + 4]
push dword [eax - 0xc]
push eax
call fcn.00418fe0
xor bl, bl
jmp 0x4c10b7
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x57cb58
test esi, esi
je 0x4c10aa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.004c1100
mov bl, al
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4c10d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00408f80
int3
Function at 0x4c1500
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ec80
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0
mov edx, dword [edx]
push eax
call fcn.00409a80
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00487e50
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x4c1564
mov edx, dword [edx]
test edx, edx
jne 0x4c156c
xor ecx, ecx
jmp 0x4c1580
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c1571
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00408e30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00407e00
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407e00
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051dacc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c17f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ed40
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x200
mov esi, 0x100
call fcn.0051e389
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
push dword [ebx + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
cmp ebx, 0xfe
jne 0x4c18a4
add esi, esi
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.0051e384
xor ecx, ecx
mov dword [ebp - 0x14], 0
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051e389
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea eax, [esi - 2]
cmp ebx, eax
je 0x4c1850
mov ecx, dword [ebp + 8]
call fcn.0047e930
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4c1952
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
xor esi, esi
nop dword [eax]
movzx ecx, word [edi + esi*2]
test cx, cx
je 0x4c18e4
push ecx
lea ecx, [ebp - 0x10]
call fcn.0048fc70
jmp 0x4c18fe
cmp dword [eax - 0xc], 0
je 0x4c18f6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0048e870
lea ecx, [ebp - 0x10]
call fcn.00408b90
inc esi
cmp esi, ebx
ja 0x4c1908
mov eax, dword [ebp - 0x10]
jmp 0x4c18d0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c1927
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.0051e384
add esp, 4
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00408f80
int3
Function at 0x4c1b70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ee92
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x58eb24
mov dword [ebp - 4], 5
lea ebx, [esi + 0x20]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4c1bbc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 4
lea eax, [esi + 0x34]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c1be6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
lea eax, [esi + 0x30]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c1c0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
lea eax, [esi + 0x28]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c1c34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
lea eax, [esi + 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c1c5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebx]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c1c7f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [eax]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4c1caa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c56d0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fda0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.005196e0
mov edx, esi
lea ecx, [ebp - 0x14]
call fcn.004c5520
mov dword [ebp - 4], 0
mov edi, dword [eax]
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push eax
push 0x57ca7c
push 1
push 0
push 0x57ca6c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4c574e
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c574a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor bl, bl
jmp 0x4c576e
mov eax, dword [ebp - 0x10]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
setns bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c576e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c5790
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4c57a8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4c57db
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esi]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
jle 0x4c57ee
lea esi, [esi + eax*2]
add esi, 0xffffff62
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x4c5819
cmp edi, 0xea
jne 0x4c5825
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c5850
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x194
push 0xffffffffffffffff
push 0x55fdd8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov esi, ecx
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4c58bc
xor al, al
jmp 0x4c59fb
mov edi, dword [esi]
mov eax, dword [edi - 0xc]
cmp eax, 0x4f
jle 0x4c58cf
lea edi, [edi + eax*2]
add edi, 0xffffff62
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc8
push eax
lea eax, [ebp]
push eax
push 0
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x4c58ff
cmp dword [ebp - 0x18], 0xc8
jbe 0x4c59ed
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4c5a1e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4c597e
mov ecx, dword [esi]
mov edx, dword [ecx - 0xc]
test edx, edx
js 0x4c5a28
cmp word [ecx], 0x22
je 0x4c597e
test edx, edx
jle 0x4c597e
push 0x20
push ecx
call fcn.0051f258
add esp, 8
test eax, eax
je 0x4c597e
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x4c597e
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0048fc70
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00418fe0
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0048fc70
jmp 0x4c5987
push esi
lea ecx, [ebp - 0x10]
call fcn.00477830
mov ecx, dword [ebx]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4c59a8
js 0x4c5a28
cmp word [ecx], 0x20
je 0x4c59a8
push 0x20
lea ecx, [ebp - 0x10]
call fcn.0048fc70
mov ecx, dword [ebx]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00418fe0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c59ed
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.0051dacc
lea esp, [ebp + 0x194]
pop ebp
ret
push 0x80004005
call fcn.00408f80
push 0x80070057
call fcn.00408f80
int3
Function at 0x4c5a40
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fe39
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.004092a0
test eax, eax
je 0x4c5bf1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
mov ebx, 1
mov dword [ebp - 0x14], 0x64
mov ecx, ebx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x64
or eax, ecx
jge 0x4c5ac4
push 0x64
lea ecx, [ebp - 0x10]
call fcn.00408d10
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x64
jl 0x4c5bfb
xor eax, eax
mov dword [esi - 0xc], 0x64
mov word [esi + 0xc8], ax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push dword [esi - 8]
push esi
call fcn.00525e01
add esp, 8
test eax, eax
js 0x4c5bfb
cmp eax, dword [esi - 8]
jg 0x4c5bfb
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.004092a0
test eax, eax
je 0x4c5bf1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov eax, dword [edi]
mov dword [ebp - 0x18], 1
sub ebx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x64
or eax, ebx
jge 0x4c5b4b
push 0x64
mov ecx, edi
call fcn.00408d10
mov ecx, dword [edi]
cmp dword [ecx - 8], 0x64
jl 0x4c5bfb
mov dword [ecx - 0xc], 0x64
xor edx, edx
mov eax, dword [edi]
push 0x64
push ecx
push str.UserDomain
mov word [eax + 0xc8], dx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [edi]
test eax, eax
jne 0x4c5b81
xor ecx, ecx
jmp 0x4c5b93
push dword [eax - 8]
push eax
call fcn.00525e01
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4c5bfb
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x4c5bfb
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
push 1
push 0x583bdc
mov word [eax + ecx*2], dx
mov ecx, edi
call fcn.00418fe0
push dword [esi - 0xc]
mov ecx, edi
push esi
call fcn.00418fe0
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c5bdd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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 0x80004005
call fcn.00408f80
push 0x80070057
call fcn.00408f80
int3
Function at 0x4c6d30
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5600d0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi], 0
je 0x4c6d71
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp + 8]
lea ecx, [esi + 4]
push dword [ebp + 0xc]
mov byte [esi + 1], al
call fcn.00477830
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.004c76a0
mov dword [ebp - 4], 0
mov al, byte [esi + 1]
test al, al
je 0x4c6dc8
push 0
push 0x1388
push 0x7f90
push 0x7f90
push 0xff
push 6
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 8], eax
mov al, byte [esi + 1]
test al, al
jne 0x4c6de3
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
setne bl
mov byte [esi], bl
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c6e0e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8