joyce8/EMBER2024-capa huggingface dataset:
Function at 0x546a08
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
xor esi, esi
mov ebx, dword [esp]
jmp 0x546a1c
inc ebx
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jg 0x546a1b
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov ebx, eax
mov eax, edi
xor ecx, ecx
mov edx, ebx
call sub.rtl120.bpl__System__LStrSetLength_qqrv
xor ebx, ebx
cmp esi, dword [esp]
jge 0x546b80
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
movzx edx, byte [ebp + esi]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 1]
cmp eax, dword [esp]
jge 0x546b39
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [ebp + esi + 1]
and cl, 0xf0
movzx ecx, cl
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 2]
cmp eax, dword [esp]
jge 0x546b08
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [ebp + esi + 2]
and cl, 0xc0
movzx ecx, cl
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
movzx edx, byte [ebp + esi + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
jmp 0x546b74
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
mov byte [eax + ebx - 1], 0x3d
jmp 0x546b74
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [esp]
jl 0x546a50
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x547db0
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, 0x30
mov edi, 0x59de64
mov ecx, dword [esp]
lea edx, [esp + 0xc]
movzx ebx, byte [edi]
movzx ebx, byte [eax + ebx - 1]
xor bl, byte [ecx]
mov byte [edx], bl
inc edx
inc ecx
inc edi
dec esi
jne 0x547dcf
mov esi, 1
mov edx, 0x59df6c
mov ecx, esi
dec ecx
mov eax, ecx
add eax, eax
lea eax, [eax + eax*2]
add ecx, ecx
add ecx, ecx
movzx ebx, byte [esp + eax + 0xc]
mov edi, ebx
add edi, edi
movzx ebx, byte [esp + eax + 0x11]
add edi, ebx
movzx ebx, byte [esp + eax + 0xd]
add ebx, ebx
add ebx, ebx
add ebx, ebx
movzx ebp, byte [esp + eax + 0xe]
add ebp, ebp
add ebp, ebp
add ebx, ebp
movzx ebp, byte [esp + eax + 0xf]
add ebp, ebp
add ebx, ebp
movzx eax, byte [esp + eax + 0x10]
add ebx, eax
mov dword [esp + 8], ebx
mov eax, 1
mov ebx, eax
dec ebx
je 0x547e48
dec ebx
je 0x547e6a
dec ebx
je 0x547e8c
dec ebx
je 0x547ead
jmp 0x547ec7
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 8
movzx ebx, bl
shr ebx, 3
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x547ec7
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 4
movzx ebx, bl
shr ebx, 2
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x547ec7
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 2
movzx ebx, bl
shr ebx, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x547ec7
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
inc eax
cmp eax, 5
jne 0x547e38
inc esi
add edx, 0x40
cmp esi, 9
jne 0x547deb
mov esi, 0x20
mov eax, 0x59de94
mov edx, dword [esp + 4]
movzx ecx, byte [eax]
movzx ecx, byte [esp + ecx + 0x3b]
mov byte [edx], cl
inc edx
inc eax
dec esi
jne 0x547eec
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x547f28
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], ecx
mov esi, eax
movzx eax, dl
movzx ebx, byte [eax + 0x59df1b]
test bl, bl
jbe 0x547f59
lea eax, [esi + 0x3e0]
call fcn.00547f04
lea eax, [esi + 0x3fc]
call fcn.00547f04
dec bl
jne 0x547f3f
mov cl, 0x30
mov edi, 0x59deec
mov eax, dword [esp]
movzx edx, byte [edi]
cmp dl, 0x1c
ja 0x547f7a
movzx edx, dl
movzx edx, byte [esi + edx + 0x3df]
mov byte [eax], dl
jmp 0x547f87
movzx edx, dl
movzx edx, byte [esi + edx + 0x3df]
mov byte [eax], dl
inc eax
inc edi
dec cl
jne 0x547f63
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x547f94
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov bl, 1
lea esi, [ebp - 0x421]
mov eax, edi
mov edx, ebx
call fcn.00547d48
mov byte [esi], al
inc ebx
inc esi
cmp bl, 0x41
jne 0x547fb0
mov bl, 0x1c
mov esi, str.91__
lea edi, [ebp - 0x41]
movzx edx, byte [esi]
mov eax, dword [ebp - 8]
call fcn.00547d48
mov byte [edi], al
movzx edx, byte [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.00547d48
mov byte [edi + 0x1c], al
inc edi
inc esi
dec bl
jne 0x547fcc
mov bl, 1
lea esi, [ebp - 0x3a1]
mov ecx, esi
lea eax, [ebp - 0x421]
mov edx, ebx
call fcn.00547f28
inc ebx
add esi, 0x30
cmp bl, 0x11
jne 0x547ff6
mov bl, 1
mov eax, 0x59dde4
lea edx, [ebp - 0xa1]
cmp bl, 0x20
ja 0x54802f
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
jmp 0x54803c
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
inc ebx
inc edx
inc eax
cmp bl, 0x41
jne 0x54801b
mov byte [ebp - 9], 1
lea esi, [ebp - 0x3a1]
cmp byte [ebp + 8], 0
je 0x548066
lea ecx, [ebp - 0x61]
mov edx, esi
lea eax, [ebp - 0x81]
call fcn.00547db0
jmp 0x54808d
movzx eax, byte [ebp - 9]
mov edx, 0x11
sub edx, eax
mov eax, edx
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax*8 - 0x3d1]
lea ecx, [ebp - 0x61]
lea eax, [ebp - 0x81]
call fcn.00547db0
mov bl, 0x20
lea eax, [ebp - 0xa1]
movzx edx, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x548095
push esi
lea esi, [ebp - 0x81]
lea edi, [ebp - 0xa1]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebp - 0x61]
lea edi, [ebp - 0x81]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
inc byte [ebp - 9]
add esi, 0x30
cmp byte [ebp - 9], 0x11
jne 0x54804e
mov bl, 0x40
mov esi, 0x59de24
lea eax, [ebp - 0x3e1]
movzx edx, byte [esi]
cmp dl, 0x20
ja 0x5480fb
movzx edx, dl
movzx edx, byte [ebp + edx - 0x82]
mov byte [eax], dl
jmp 0x548108
movzx edx, dl
movzx edx, byte [ebp + edx - 0xc2]
mov byte [eax], dl
inc eax
inc esi
dec bl
jne 0x5480e4
mov bl, 1
lea esi, [ebp - 0x3e1]
movzx ecx, byte [esi]
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.00547d70
inc ebx
inc esi
cmp bl, 0x41
jne 0x548116
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x548c6c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, ecx
mov dword [esp], edx
mov esi, eax
movzx edx, byte [esi]
mov byte [esp + 4], dl
shl edx, 7
and dl, 0xff
movzx eax, byte [esi + 1]
movzx ecx, al
shr ecx, 1
or dl, cl
mov byte [esp + 5], dl
shl eax, 6
and al, 0xff
movzx edx, byte [esi + 2]
movzx ecx, dl
shr ecx, 2
or al, cl
mov byte [esp + 6], al
shl edx, 5
and dl, 0xff
movzx eax, byte [esi + 3]
movzx ecx, al
shr ecx, 3
or dl, cl
mov byte [esp + 7], dl
shl eax, 4
and al, 0xff
movzx edx, byte [esi + 4]
shr edx, 4
or al, dl
mov byte [esp + 8], al
movzx eax, byte [esi + 4]
add eax, eax
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 5]
shr edx, 5
or al, dl
mov byte [esp + 9], al
movzx eax, byte [esi + 5]
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 6]
shr edx, 6
or al, dl
mov byte [esp + 0xa], al
movzx eax, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [esp + 0xb], al
mov ebp, 8
lea eax, [esp + 4]
mov edx, 1
xor esi, esi
mov ecx, edx
movzx ebx, byte [eax]
shl ebx, cl
mov ecx, ebx
xor ecx, esi
and ecx, 1
mov esi, ecx
inc edx
cmp edx, 8
jne 0x548d1d
movzx edx, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec ebp
jne 0x548d18
mov eax, edi
xor ecx, ecx
mov edx, 8
call sub.rtl120.bpl__System__LStrSetLength_qqrv
push 1
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
mov edx, eax
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
call fcn.00547f94
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x586310
Capabilities:
Delete file
Move file

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call sub.rtl120.bpl__Sysutils_DeleteFile_qqrx20System_UnicodeString
test al, al
je 0x586329
mov eax, ebx
call sub.rtl120.bpl__Sysutils_FileExists_qqrx20System_UnicodeString
test al, al
je 0x58633a
push 4
push 0
mov eax, ebx
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_MoveFileExW
pop ebx
ret
Function at 0x6417d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x6417f5
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x641868
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x64182a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x64185d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x64185b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x641821
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x6417ec
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x406371
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e86a
call fcn.0040d30f
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166e8]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4064e2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4064e2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4064e2
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4064e2
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40645b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4064d4
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4064d4
mov ecx, 0x1234
cmp cx, ax
jne 0x4064d4
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x4064ae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4063c9
mov eax, edi
call fcn.0040d2ca
ret 4

Function at 0x409413
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x409422
pop dword [ebp - 0x14]
mov eax, 0x3972f8ec
add eax, 0xc6cd9b36
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x37d5e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0xc4e4ac7a
add ecx, 0x3b1b9976
mov edi, eax
mov ebx, 0xe8cf23aa
sub ebx, 0xe88d79aa
add ebx, dword [ebp - 0x14]
mov esi, 0xff089043
sub esi, 0x9ff3e082
add dword [ebp - 0x10], 0xa99ce301
mov edx, dword [ebx]
xor dword [ebp - 8], 0x87246e62
xor edx, esi
sub dword [ebp - 0xc], edi
mov dword [edi], edx
mov dword [ebp - 0x10], 0xc84e03ff
add edi, 0x141d6d1d
add edi, 0xebe292e7
add ebx, 0x3a711e1a
add ebx, 0xc58ee1ea
loop 0x40947c
add eax, 0x24015276
add eax, 0xdbffb81d
mov ebx, eax
add eax, 0x13e23dba
sub eax, 0x13e23db5
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4209ab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4209ea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4209ea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4209ea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4209ea
cmp dword [ecx + 0x74], 0xe
jbe 0x4209ea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43318d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43318d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401000
Capabilities:
Create service
Get common file path
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40103b
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401129
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40110f
push 0x402128
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x40110f
push esi
push 0
push 0
push 0
push 0
push 0
push ebx
push 1
push 2
push 0x10
push 0xf01ff
push str.SvcHost
push str.SvcHost
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x4010dc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call fcn.00401137
add esp, 4
or eax, 0xffffffff
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401129
mov esp, ebp
pop ebp
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push ebx
call fcn.00401137
add esp, 4
xor eax, eax
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401129
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop ebx
xor ecx, ebp
pop edi
call fcn.00401129
mov esp, ebp
pop ebp
ret

Function at 0x40193e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40197d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40197d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40197d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40197d
cmp dword [ecx + 0x74], 0xe
jbe 0x40197d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4066b1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0x24
je 0x4066c7
xor eax, eax
jmp 0x4067ce
push esi
push edi
xor edi, edi
cmp dword [0x443380], edi
jne 0x40672f
push 0x2c
lea eax, [ebp - 0x3c]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x40], 0x30
mov dword [ebp - 0x18], str.ColorChooserClass
mov dword [ebp - 0x20], 5
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], 0x405a26
mov dword [ebp - 0x30], 0x38
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov dword [0x443380], 1
push edi
mov esi, 0xc80000
mov dword [ebp - 0xc], edi
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
mov dword [ebp - 8], 0x15f
mov dword [ebp - 4], 0xd1
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push edi
push edi
push edi
push dword [ebx + 4]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
mov eax, 0x80000000
push eax
push eax
push esi
push str.Choose_Color
push str.ColorChooserClass
push 1
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, eax
push 5
push esi
mov dword [edi], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0xc]
push esi
call fcn.00406b40
pop ecx
pop ecx
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call fcn.0043b617
mov esi, dword [edi + 0x44]
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40879c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
xor edi, edi
add eax, 0x14
mov ebx, edi
mov edx, edi
mov ecx, dword [eax]
lea esi, [eax - 8]
cmp ecx, eax
je 0x4087db
mov edi, dword [ebp + 8]
cmp dword [esi + 0x18], ebx
jbe 0x4087d0
cmp dword [esi + 0x18], edi
jae 0x4087d0
mov ebx, dword [esi + 0x18]
mov edx, dword [esi + 0x28]
lea esi, [ecx - 8]
mov ecx, dword [ecx]
cmp ecx, eax
jne 0x4087c0
xor edi, edi
movzx ecx, word [edx]
or eax, 0xffffffff
mov esi, edx
jmp 0x4087f3
cmp cx, 0x5c
lea esi, [esi + 2]
movzx ecx, word [esi]
cmove eax, edi
inc edi
test cx, cx
jne 0x4087e5
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x408801
mov dword [ecx], ebx
inc eax
pop edi
pop esi
pop ebx
lea eax, [edx + eax*2]
pop ebp
ret
Function at 0x408a34
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0xcc010000
mov dword [ebp - 0x1c], 0x1400d801
mov dword [ebp - 0x18], 0x3c00f001
mov dword [ebp - 0x14], 0xe4012800
mov dword [ebp - 0x10], 0x6c00a001
mov dword [ebp - 0xc], 0xb4017800
mov dword [ebp - 8], 0x9c015000
mov dword [ebp - 4], 0x44008801
push esi
movzx esi, ax
test ebx, ebx
jle 0x408ac7
push edi
mov edi, dword [ebp + 8]
movzx edx, byte [edi]
mov ecx, esi
and ecx, 0xf
shr si, 4
mov eax, edx
shr edx, 4
and eax, 0xf
mov cx, word [ebp + ecx*2 - 0x20]
xor cx, word [ebp + eax*2 - 0x20]
xor cx, si
movzx ecx, cx
mov eax, ecx
shr cx, 4
and eax, 0xf
mov ax, word [ebp + eax*2 - 0x20]
xor ax, word [ebp + edx*2 - 0x20]
xor ax, cx
inc edi
movzx esi, ax
dec ebx
jne 0x408a85
pop edi
mov ax, si
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40907a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0xc], ebx
cmp edi, 0xffffffff
jne 0x4090b0
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor eax, eax
jmp 0x40912e
push esi
push str..pipe_
push dword [ebp + 8]
call fcn.0040964e
pop ecx
pop ecx
test eax, eax
je 0x4090f3
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push ebx
push eax
push 4
lea eax, [ebp - 4]
push eax
push edi
call esi
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
push 0
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push edi
call esi
jmp 0x40911c
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
push 0
mov ebx, eax
lea eax, [ebp - 8]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop esi
mov dword [ecx], eax
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret