joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x49f82c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, edx
xor edx, edx
push esi
mov dword [ebp - 8], eax
mov esi, ecx
cmp word [eax], dx
jne 0x49f846
mov eax, esi
jmp 0x49f8a6
push ebx
push edi
jmp 0x49f89d
mov edi, esi
mov ebx, eax
cmp word [esi], dx
je 0x49f88a
movzx eax, word [ebx]
test ax, ax
je 0x49f8c8
movzx ecx, word [edi]
sub ecx, eax
jne 0x49f88a
push edi
call dword [0x101b22c4]
push ebx
mov dword [ebp - 4], eax
call dword [0x101b22c4]
mov edx, dword [ebp - 4]
mov ecx, eax
mov eax, edx
sub ecx, ebx
sub eax, edi
xor ecx, eax
test ecx, 0xfffffffe
je 0x49f8bb
xor edx, edx
cmp word [ebx], dx
je 0x49f8c8
push esi
call dword [0x101b22c4]
mov esi, eax
xor edx, edx
mov eax, dword [ebp - 8]
cmp word [esi], dx
jne 0x49f84a
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
add edi, 2
add ebx, 2
movzx eax, word [ebx]
movzx ecx, word [edi]
sub ecx, eax
je 0x49f8bf
cmp edi, edx
jb 0x49f8ab
xor edx, edx
cmp word [edi], dx
jne 0x49f853
jmp 0x49f88a
mov eax, esi
jmp 0x49f8a4
Function at 0x51c192
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov byte [ebp - 1], dl
push dword [ebx]
call fcn.0051c146
mov eax, dword [ebx]
movzx ecx, word [eax]
mov edi, ecx
cmp edi, 0x66
jg 0x51c296
je 0x51c28c
push 0x30
pop edx
cmp edi, edx
jl 0x51c308
push 0x37
pop esi
cmp edi, esi
jle 0x51c248
push 0x5c
pop esi
cmp edi, esi
je 0x51c239
cmp edi, 0x61
je 0x51c228
cmp edi, 0x63
je 0x51c1f4
cmp edi, 0x65
jne 0x51c308
push 0x1b
jmp 0x51c30e
push dword [ebp + 8]
add eax, 2
push eax
mov dword [ebx], eax
call fcn.0051c146
mov eax, dword [ebx]
lea ecx, [eax + 2]
mov dword [ebx], ecx
movzx esi, word [eax]
lea eax, [esi - 0x61]
cmp ax, 0x19
ja 0x51c220
push esi
call dword [0x101b2480]
pop ecx
movzx esi, ax
xor esi, 0x40
jmp 0x51c314
cmp byte [ebp - 1], 0
je 0x51c308
push 7
jmp 0x51c30e
cmp byte [ebp - 1], 0
je 0x51c308
jmp 0x51c30f
lea ecx, [eax + 2]
mov dword [ebx], ecx
mov ax, word [eax]
sub ax, dx
push 0x37
movzx esi, ax
pop edi
mov ecx, dword [ebx]
movzx eax, word [ecx]
cmp dx, ax
ja 0x51c314
cmp di, ax
jb 0x51c314
push dword [ebp + 8]
lea eax, [eax + esi*8]
add eax, 0xffffffd0
movzx esi, ax
lea eax, [ecx + 2]
push eax
mov dword [ebx], eax
call fcn.0051c146
push 0x30
pop edx
jmp 0x51c259
cmp byte [ebp - 1], 0
je 0x51c308
push 0xc
jmp 0x51c30e
sub edi, 0x6e
je 0x51c302
sub edi, 4
je 0x51c2f8
dec edi
sub edi, 1
je 0x51c2ee
dec edi
sub edi, 1
je 0x51c2e4
dec edi
sub edi, 1
jne 0x51c308
add eax, 2
xor esi, esi
mov dword [ebx], eax
mov edi, dword [ebx]
movzx ecx, word [edi]
call fcn.00506001
test al, al
je 0x51c314
call fcn.00506036
push dword [ebp + 8]
shl esi, 4
add eax, esi
movzx esi, ax
lea eax, [edi + 2]
push eax
mov dword [ebx], eax
call fcn.0051c146
jmp 0x51c2b9
cmp byte [ebp - 1], 0
je 0x51c308
push 0xb
jmp 0x51c30e
cmp byte [ebp - 1], 0
je 0x51c308
push 9
jmp 0x51c30e
cmp byte [ebp - 1], 0
je 0x51c308
push 0xd
jmp 0x51c30e
cmp byte [ebp - 1], 0
jne 0x51c30c
mov esi, ecx
jmp 0x51c30f
push 0xa
pop esi
add eax, 2
mov dword [ebx], eax
pop edi
mov ax, si
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x52aee5
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 8]
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push eax
push edx
call dword [0x101b254c]
test al, al
jne 0x52af0b
mov eax, 0xc000003a
jmp 0x52af65
push edi
push edi
push 0x4000
push 1
push 7
push 0x80
lea eax, [ebp - 8]
mov dword [ebp - 0x28], 0x18
push edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], edi
push eax
push 0x100
push esi
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [0x101b2550]
push dword [ebp - 4]
mov ecx, dword fs:[0x30]
mov esi, eax
push edi
push dword [ecx + 0x18]
call dword [0x101b2528]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x55acb0
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x101b0978], 0
push ebx
push esi
mov esi, ecx
jne 0x55ad32
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov ecx, 1
je 0x55ad26
cmp dword [ebp - 8], 0x660
sbb eax, eax
not eax
and ecx, eax
mov eax, dword [ecx*4 + 0x100090fc]
mov dword [0x101b0978], eax
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x40], 0x67452301
mov dword [esi + 0x44], 0xefcdab89
mov dword [esi + 0x48], 0x98badcfe
mov dword [esi + 0x4c], 0x10325476
mov dword [esi + 0x50], 0xc3d2e1f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x55b550
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
sub esp, 0xc
call fcn.0056b7c7
add esp, 0xc
jmp 0x6c9009
push 0x58
push 0x6dc730
call fcn.006c9650
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor esi, esi
cmp dword [0x6e2208], esi
outsb dx, byte [esi]
add byte [ebp + 0xb], dh
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x6c8eda
mov dword [ebp - 0x1c], esi
jmp 0x6c8f10
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x6c8ed5
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x6c8ed5
cmp dword [eax + 0x400074], 0xe
jbe 0x6c8ed5
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.006cabfe
test eax, eax
jne 0x6c8f21
push 0x1c
call fcn.006c8e73
pop ecx
call fcn.006cc1d9
test eax, eax
jne 0x6c8f32
push 0x10
call fcn.006c8e73
pop ecx
call fcn.006ce251
mov dword [ebp - 4], esi
call fcn.006ce00c
test eax, eax
jns 0x6c8f4b
push 0x1b
call fcn.006ca9d2
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x6e2204], eax
call fcn.006cdfb4
mov dword [0x6e0318], eax
call fcn.006cdf06
test eax, eax
jns 0x6c8f71
push 8
call fcn.006ca9d2
pop ecx
call fcn.006cdcd4
test eax, eax
jns 0x6c8f82
push 9
call fcn.006ca9d2
pop ecx
push 1
call fcn.006ca7b1
pop ecx
cmp eax, esi
je 0x6c8f95
push eax
call fcn.006ca9d2
pop ecx
call fcn.006cdc8e
test byte [ebp - 0x3c], 1
je 0x6c8fa6
movzx ecx, word [ebp - 0x38]
jmp 0x6c8fa9
push 0xa
pop ecx
push ecx
push eax
push esi
push 0x400000
call fcn.006c05d0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x6c8fc4
push eax
call fcn.006ca988
call fcn.006ca9b4
jmp 0x6c8ff9
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.006c9695
ret
call fcn.006ce29d
jmp 0x6c8e9c
Function at 0x55b8b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x55b8ee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x55b8e6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x55b8f0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x55b8d6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x55b9d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x55b9e6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x55ba01
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x64a605
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, edx
xor edx, edx
push esi
mov dword [ebp - 8], eax
mov esi, ecx
cmp word [eax], dx
jne 0x64a61f
mov eax, esi
jmp 0x64a67f
push ebx
push edi
jmp 0x64a676
mov edi, esi
mov ebx, eax
cmp word [esi], dx
je 0x64a663
movzx eax, word [ebx]
test ax, ax
je 0x64a6a1
movzx ecx, word [edi]
sub ecx, eax
jne 0x64a663
push edi
call dword [0x101b22c4]
push ebx
mov dword [ebp - 4], eax
call dword [0x101b22c4]
mov edx, dword [ebp - 4]
mov ecx, eax
mov eax, edx
sub ecx, ebx
sub eax, edi
xor ecx, eax
test ecx, 0xfffffffe
je 0x64a694
xor edx, edx
cmp word [ebx], dx
je 0x64a6a1
push esi
call dword [0x101b22c4]
mov esi, eax
xor edx, edx
mov eax, dword [ebp - 8]
cmp word [esi], dx
jne 0x64a623
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
add edi, 2
add ebx, 2
movzx eax, word [ebx]
movzx ecx, word [edi]
sub ecx, eax
je 0x64a698
cmp edi, edx
jb 0x64a684
xor edx, edx
cmp word [edi], dx
jne 0x64a62c
jmp 0x64a663
mov eax, esi
jmp 0x64a67d
Function at 0x6bb0d0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x6ded78]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push ecx
push 0xff
lea edx, [ebp - 0x204]
push 0x100
push edx
call fcn.006c7800
xor eax, eax
add esp, 0x14
lea ecx, [ebp - 0x204]
mov word [ebp - 6], ax
mov dword [ebp - 0x208], ecx
cmp dword [esi + 0x260], eax
jne 0x6bb12d
mov edx, ecx
push edx
call fcn.006c74a9
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x6bb162
push 0
lea eax, [ebp - 0x208]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.006c7820
mov esp, ebp
pop ebp
ret

Function at 0x6bbb30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6bbba2
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x6bbb71
cmp eax, 2
jne 0x6bbb8c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x6bbb9c
test eax, eax
je 0x6bbb97
test al, 1
jne 0x6bbb8c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x6bbb9c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x6bca30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
push 0x104
lea edi, [esi + 0x268]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x6bcb6c
mov eax, edi
lea edx, [eax + 2]
jmp 0x6bca60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x6bca60
sub eax, edx
sar eax, 1
je 0x6bcb6c
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x268]
push eax
mov dword [ebp - 4], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x6bcaa2
push ebx
call fcn.006c782f
mov edi, eax
add esp, 4
test edi, edi
jne 0x6bcaab
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push edi
push ebx
push ecx
lea eax, [esi + 0x268]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x6bcb5a
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0xc]
push eax
push 0x6d581c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x6bcb5a
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x12]
mov dword [esi + 0x678], ecx
movzx edx, word [eax + 0x10]
mov dword [esi + 0x67c], edx
movzx ecx, word [eax + 0x16]
mov dword [esi + 0x680], ecx
movzx edx, word [eax + 0x14]
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push str.StringFileInfo040904e4OriginalFilename
push edi
mov dword [esi + 0x684], edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x6bcb5a
mov edx, dword [esi + 0x684]
mov eax, dword [esi + 0x680]
mov ecx, dword [esi + 0x67c]
push edx
mov edx, dword [esi + 0x678]
push eax
mov eax, dword [ebp - 8]
push ecx
push edx
push eax
push str._s___d._d._d._d
add esi, 0x470
push esi
call fcn.006bb220
add esp, 0x1c
push edi
call fcn.006c78c3
add esp, 4
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x6bcb80
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x6ded78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x6bcbd9
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x6bcbca
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x6bcd14
push 0x104
lea ecx, [ebp - 0x20e]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x6bcc7a
cmp eax, 0x104
je 0x6bcc7a
mov edx, 0x22
mov word [ebp - 0x210], dx
mov ecx, edx
xor edx, edx
push 0xf003f
push edx
push edx
mov word [ebp + eax*2 - 0x20e], cx
mov word [ebp + eax*2 - 0x20c], dx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x6bcc8d
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.006bb5a0
add esp, 0xc
test eax, eax
jne 0x6bcc65
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0xa10]
push 0x400
push ecx
call fcn.006bb350
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea edx, [ebp - 0xa10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006c7820
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x6bcd08
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea ecx, [ebp - 0xa10]
push ecx
push 0xd80b
call fcn.006bb5a0
add esp, 0xc
test eax, eax
jne 0x6bccf9
push 0x6d5820
lea edx, [ebp - 0xa10]
push 0x400
push edx
call fcn.006bb350
add esp, 0xc
push 0
push edi
lea eax, [ebp - 0xa10]
push eax
jmp 0x6bcc72
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.006c7820
mov esp, ebp
pop ebp
ret
Function at 0x6bcd30
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.006c7bc0
mov eax, dword [0x6ded78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, ecx
mov dword [ebp - 0x1024], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x6bcd9b
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x6bcd8a
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x6bcd90
mov edi, dword [ebp - 0x1024]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x6bcdb1
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006c7820
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x6bce0b
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.006bb5a0
add esp, 0xc
test eax, eax
jne 0x6bcdfc
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.006bb350
add esp, 0xc
push 0
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x6bcf48
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x6bce69
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80c
call fcn.006bb5a0
add esp, 0xc
test eax, eax
jne 0x6bcdfc
push str.Could_not_open_service
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.006bb350
add esp, 0xc
push esi
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x6bcf48
lea eax, [ebp - 0x1020]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x6bcee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x6bcee2
cmp eax, 0x425
jne 0x6bce9a
cmp dword [ebp - 0x101c], 3
je 0x6bcee2
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push 0xd80e
call fcn.006bb5a0
add esp, 0xc
test eax, eax
jne 0x6bced0
push str.Could_not_stop_service
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.006bb350
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1024], eax
call esi
push edi
call esi
cmp dword [ebp - 0x1024], 0
jne 0x6bcd9b
push 0x400
lea ecx, [ebp - 0x1004]
push ecx
push 0xd80d
call fcn.006bb5a0
add esp, 0xc
test eax, eax
jne 0x6bcf3e
push str.Could_not_delete_service
lea edx, [ebp - 0x1004]
push 0x400
push edx
call fcn.006bb350
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.006c7820
mov esp, ebp
pop ebp
ret
Function at 0x6bd040
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x6ded78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.006bba80
mov ebx, eax
cmp ebx, esi
je 0x6bd0ba
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x6bd0a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006c7820
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x6bd13c
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.006bd040
mov ebx, eax
cmp ebx, esi
jne 0x6bd094
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x6bd0f0
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x6bd155
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.006bb930
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x6bd178
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006c7820
mov esp, ebp
pop ebp
ret 4

Function at 0x6bd6b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x6bd6d1
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x6bcf70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x6bd6f8
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x6bf930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d0fa6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x6ded78]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x6bf9ad
call fcn.006bb5f0
mov edi, eax
jmp 0x6bfa92
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x6bf9c6
call fcn.006bb5f0
jmp 0x6bfa89
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x6bf9e4
call fcn.006bb5f0
jmp 0x6bfa89
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x6bfa05
mov edi, 0x8007000e
jmp 0x6bfa8b
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.006be2f0
mov dword [ebp - 4], 1
jmp 0x6bfa3d
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x6bfa4e
mov edi, 0x8007000e
jmp 0x6bfa8b
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x6bfa67
call fcn.006bb5f0
jmp 0x6bfa89
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.006bf650
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x6bfab0
lea ecx, [ebp - 0x418]
call fcn.006bc9f0
jmp 0x6bfab0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006c7820
mov esp, ebp
pop ebp
ret 0x10