joyce8/EMBER2024-capa huggingface dataset:
Function at 0x340fdcd0
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
call fcn.340f29a0
test eax, eax
je 0x340fdcec
mov dword [0x341ad488], 0x32
xor eax, eax
add esp, 0x20
ret
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebp
push 1
rep stosd dword es:[edi], eax
push ebp
push ebp
mov dword [0x341ad488], ebp
mov dword [esp + 0x1c], ebp
xor ebx, ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, ebp
jne 0x340fdd2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp esi, ebp
mov ebp, dword [esp + 0x34]
je 0x340fdd49
push 4
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x340fdd83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
je 0x340fdd9f
jne 0x340fdd83
test esi, esi
jne 0x340fdd6d
push 1
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x340fdd6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x340fdd83
push 4
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x340fdd83
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebp, eax
test ebp, ebp
jne 0x340fddbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x340fdda3
mov ebp, dword [esp + 0x10]
test ebx, ebx
je 0x340fddaf
mov dword [0x341ad488], ebx
jmp 0x340fddc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x341ad488], eax
jmp 0x340fddc6
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x340fddd3
push edi
call ebx
test esi, esi
je 0x340fddda
push esi
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x340fe6a0
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x341449db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa20
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
xor ebp, ebp
xor esi, esi
call fcn.340acc50
mov eax, dword [esp + 0xa5c]
mov dword [esp + 0xa34], ebp
cmp eax, ebp
je 0x340fe6e7
push eax
lea ecx, [esp + 0x18]
call fcn.340acea0
mov eax, dword [esp + 0xa60]
cmp eax, ebp
je 0x340fe6fc
push eax
lea ecx, [esp + 0x18]
call fcn.340acea0
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x22e]
mov word [esp + 0x22c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], 0x400
cmp eax, ebp
jle 0x340fe767
lea eax, [esp + 0xc]
lea ecx, [esp + 0x22c]
push eax
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
call fcn.340b3ad0
add esp, 0x10
test eax, eax
jne 0x340fe760
lea ecx, [esp + 0x14]
mov dword [esp + 0xa34], 0xffffffff
call fcn.340acc60
xor eax, eax
jmp 0x340fe835
lea esi, [esp + 0x22c]
mov eax, dword [esp + 0xa4c]
mov ecx, dword [esp + 0xa68]
mov edx, dword [esp + 0xa64]
push ebx
push eax
mov eax, dword [esp + 0xa60]
push ecx
mov ecx, dword [esp + 0xa60]
push edx
mov edx, dword [esp + 0xa58]
push esi
mov esi, dword [esp + 0xa50]
push ebp
push eax
mov eax, dword [esp + 0xa60]
push ecx
mov ecx, dword [esp + 0xa60]
push edx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, eax
cmp ebx, ebp
je 0x340fe81e
mov ebp, dword [esp + 0xa54]
test ebp, ebp
je 0x340fe81e
test esi, esi
je 0x340fe81e
call fcn.34095400
mov eax, dword [0x341a559c]
test eax, eax
je 0x340fe81e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], 0
rep stosd dword es:[edi], eax
push 0
lea edx, [esp + 0x2c]
push 0x104
push edx
push 0xffffffffffffffff
push ebp
stosw word es:[edi], ax
call fcn.340b1110
add esp, 0x14
lea ecx, [esp + 0x14]
lea eax, [esp + 0x28]
push ecx
push 1
push esi
mov dword [esp + 0x20], eax
call dword [0x341a559c]
lea ecx, [esp + 0x18]
mov dword [esp + 0xa38], 0xffffffff
call fcn.340acc60
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0xa2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xa2c
ret
Function at 0x340ff070
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x340ff08d
cmp edi, 4
jbe 0x340ff08d
mov dword [0x341ad48c], 0x57
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
cmp eax, 0xffffffff
mov ebx, dword [esi]
je 0x340ff0ac
push eax
mov eax, dword [str.Type]
push eax
mov ecx, esi
call fcn.340b7040
cmp edi, 0xffffffff
je 0x340ff0c0
mov ecx, dword [str.Start]
push edi
push ecx
mov ecx, esi
call fcn.340b7040
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x340ff0d8
mov edx, dword [str.ErrorControl]
push eax
push edx
mov ecx, esi
call fcn.340b7040
mov eax, dword [esp + 0x20]
test eax, eax
je 0x340ff0ee
push eax
mov eax, dword [str.DisplayName]
push eax
mov ecx, esi
call fcn.340b71f0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x340ff105
mov ecx, dword [str.Description]
push eax
push ecx
mov ecx, esi
call fcn.340b71f0
mov edi, dword [esp + 0x28]
test edi, edi
je 0x340ff12d
push edi
call fcn.340bd4b7
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [str.ImagePath]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x340ff144
mov ecx, dword [str.Group]
push eax
push ecx
mov ecx, esi
call fcn.340b71f0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x340ff15b
mov edx, dword [str.DependOnGroup]
push eax
push edx
mov ecx, esi
call fcn.340b7680
mov eax, dword [esp + 0x34]
test eax, eax
je 0x340ff171
push eax
mov eax, dword [str.DependOnService]
push eax
mov ecx, esi
call fcn.340b7680
pop esi
pop ebx
mov eax, 1
pop edi
ret

Function at 0x34100020
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x34144be8
push eax
mov dword fs:[0], esp
sub esp, 8
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x34100053
xor eax, eax
pop edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
call fcn.340bd4b7
add esp, 4
test eax, eax
jne 0x34100070
pop edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
lea ecx, [esp + 8]
xor esi, esi
call fcn.340b5db0
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x2001f
push eax
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], esi
call fcn.340b5f20
test eax, eax
je 0x341000b6
push edi
lea ecx, [esp + 0xc]
call fcn.340b8260
lea ecx, [esp + 8]
mov esi, eax
call fcn.340b5f70
test esi, esi
jne 0x341000e9
mov ecx, dword [str.SystemCurrentControlSetServicesVxD]
push 0x2001f
push ecx
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x14]
call fcn.340b5f20
test eax, eax
je 0x341000e9
push edi
lea ecx, [esp + 0xc]
call fcn.340b8260
lea ecx, [esp + 8]
mov esi, eax
call fcn.340b5f70
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.340b5ea0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x34100110
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x34144c20
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x34100143
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp word [esi], 0
jne 0x3410015b
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 4]
call fcn.340b5db0
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x20019
push eax
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.340b5f20
test eax, eax
je 0x34100207
push 1
push esi
lea ecx, [esp + 0xc]
call fcn.340b8420
test eax, eax
jne 0x341001bc
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.340b5ea0
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x341001ef
lea ecx, [esp + 0x28]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.340b6550
push eax
mov ecx, edi
mov byte [esp + 0x1c], 1
call fcn.340a74c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call fcn.340a7330
mov eax, dword [esp + 0x24]
pop edi
test eax, eax
je 0x341002ce
mov dword [eax], 0x10
jmp 0x341002ce
mov edx, dword [0x34146a5c]
mov dword [esp + 0x1c], edx
mov eax, dword [str.SystemCurrentControlSetServicesVxD]
push esi
push eax
lea ecx, [esp + 0x24]
push 0x341920e8
push ecx
mov byte [esp + 0x24], 2
call fcn.340aa2b0
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 4]
push 0x20019
push edx
push reloc.WS2_32.dll_bind
call fcn.340b5f20
test eax, eax
jne 0x3410027b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], al
call fcn.340a7330
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.340b5ea0
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov esi, dword [esp + 0x24]
test esi, esi
je 0x341002b2
mov eax, dword [str.StaticVxD]
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.340b6550
push eax
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.340a74c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 2
call fcn.340a7330
mov eax, dword [esp + 0x20]
test eax, eax
je 0x341002c0
mov dword [eax], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.340a7330
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.340b5ea0
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x34100300
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x34144c48
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebx, ebx
cmp edi, ebx
je 0x34100411
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x34100411
cmp word [edi], bx
je 0x34100411
cmp word [esi], bx
je 0x34100411
lea ecx, [esp + 0xc]
call fcn.340b5db0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
cmp eax, 2
je 0x341003af
cmp eax, 1
je 0x341003af
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x2001f
push eax
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x18]
call fcn.340b5f20
test eax, eax
jne 0x3410039d
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x2001f
push ecx
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x18]
call fcn.340b5f90
test eax, eax
je 0x34100400
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.340b71f0
mov esi, eax
jmp 0x34100496
mov edx, dword [0x34146a5c]
mov dword [esp + 0x24], edx
mov eax, dword [str.SystemCurrentControlSetServicesVxD]
push edi
push eax
lea ecx, [esp + 0x2c]
push 0x341920e8
push ecx
mov byte [esp + 0x2c], 1
call fcn.340aa2b0
mov edx, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0xc]
push 0x2001f
push edx
push reloc.WS2_32.dll_bind
call fcn.340b5f20
test eax, eax
jne 0x34100425
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call fcn.340a7330
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.340b5ea0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [0x34146a5c]
mov dword [esp + 0x2c], eax
push 0x5c
push esi
mov byte [esp + 0x24], 2
call fcn.340bda39
add esp, 8
cmp eax, ebx
je 0x3410044f
add eax, 2
lea ecx, [esp + 0x2c]
push eax
call fcn.340a75b0
mov eax, dword [esp + 0x2c]
cmp dword [eax - 8], ebx
jne 0x34100468
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 1
call fcn.340a7330
jmp 0x341003f3
mov ecx, dword [str.StaticVxD]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.340b71f0
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x1c], 1
call fcn.340a7330
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call fcn.340a7330
lea ecx, [esp + 0xc]
call fcn.340b5f70
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.340b5ea0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x34101330
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x3410133b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
mov esi, edi
not eax
jb 0x3410143d
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x341480e8]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x341480e8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x341480e8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x341480e8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x341480e8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x341480e8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x341480e8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x341480e8]
xor eax, edx
inc ecx
dec edi
jne 0x34101356
test esi, esi
je 0x3410145f
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x341480e8]
xor eax, edx
inc ecx
dec esi
jne 0x34101441
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x34103500
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.340be600
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x3410352b
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x3410353d
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x341036a9
push esi
call fcn.34104900
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x34103573
push str.j____int_sizeof_ctx__key_
push 0x54
push str..cryptohmachmac.c
call fcn.34104530
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x341035b2
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.34103a40
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call fcn.34103bb0
lea esi, [ebx + 0x34]
lea ecx, [ebx + 0x38]
push esi
push ecx
push edi
call fcn.34103cb0
add esp, 0x24
jmp 0x341035f1
test ebp, ebp
jl 0x341035be
cmp ebp, 0x80
jle 0x341035d2
push 0x341484f8
push 0x5e
push str..cryptohmachmac.c
call fcn.34104530
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x34103616
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x38]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x3410361f
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x14]
push ebp
push esi
push edi
call fcn.34103a40
push esi
call fcn.34104900
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.34103bb0
add esp, 0x1c
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x3410365b
lea edi, [ebx + 0x24]
push ebp
push esi
push edi
call fcn.34103a40
push esi
call fcn.34104900
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.34103bb0
add esp, 0x1c
lea eax, [ebx + 0x14]
add ebx, 4
push eax
push ebx
call fcn.34103d60
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x3410368e
jmp 0x3410361d
Function at 0x341043b0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.340be600
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x341043f9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x341043f9
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x34192868
call fcn.34130e4c
add esp, 0xc
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call fcn.34130dfc
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x3410450b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x3410450b
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x3410450b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x3410450b
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x3410450b
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.340be600
lea eax, [ebp - 4]
mov edi, esp
push eax
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x3410450b
mov ecx, dword [ebp - 4]
push str.Service_0x
push edi
lea eax, [ecx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call fcn.340be497
add esp, 8
test eax, eax
je 0x3410450b
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push 0
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x34105060
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret
Function at 0x3410fee0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x3410ff41
mov al, byte [edi]
test al, al
je 0x3410ff41
push ebx
push ebp
mov ebx, 0x100
movsx eax, al
or eax, ebx
mov ebp, esi
mov edx, eax
mov ecx, eax
shr edx, 2
and edx, 0xf
and ecx, 0xf
xor edx, ecx
mov ecx, 0x20
sub ecx, edx
add ebx, 0x100
shr ebp, cl
mov ecx, edx
mov edx, eax
imul edx, eax
shl esi, cl
mov al, byte [edi + 1]
or ebp, esi
xor ebp, edx
inc edi
test al, al
mov esi, ebp
jne 0x3410fef9
mov eax, esi
pop ebp
shr eax, 0x10
pop ebx
xor eax, esi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x341237a0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
mov eax, 1
ret
Function at 0x341250b0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0x367cd507
mov dword [eax + 8], 0x3070dd17
mov dword [eax + 0xc], 0xf70e5939
mov dword [eax + 0x10], 0xffc00b31
mov dword [eax + 0x14], 0x68581511
mov dword [eax + 0x18], 0x64f98fa7
mov dword [eax + 0x1c], 0xbefa4fa4
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x1c
mov eax, 1
ret

Function at 0x34125110
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x20
mov eax, 1
ret
Function at 0x34126850
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
mov eax, 1
ret

Function at 0x341268f0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
mov eax, 1
ret
Function at 0x3412bda0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x34145220
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.340accc0
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.340accc0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x341add18]
test eax, eax
je 0x3412be58
cmp ebp, eax
jne 0x3412be58
mov eax, dword [0x341add1c]
test eax, eax
je 0x3412be58
cmp ebx, eax
jb 0x3412be58
add eax, 0x493e0
cmp eax, ebx
jb 0x3412be58
mov ebp, dword [0x341add20]
push 1
inc ebp
push 0x341adc38
lea ecx, [esp + 0x18]
mov dword [0x341add20], ebp
call fcn.340b51a0
push 0x341adc68
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.340acea0
push 0x341adc58
mov ecx, edi
call fcn.340acea0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x3412bece
push edi
push esi
mov dword [0x341add20], 0
call fcn.3412c1d0
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x341adc38
call fcn.340b51a0
push 0xffffffffffffffff
push 0
mov ecx, 0x341adc68
mov dword [esp + 0x38], 1
mov dword [0x341add18], ebp
mov dword [0x341add1c], ebx
call fcn.340accc0
push esi
mov ecx, 0x341adc68
call fcn.340acea0
push 0xffffffffffffffff
push 0
mov ecx, 0x341adc58
call fcn.340accc0
push edi
mov ecx, 0x341adc58
call fcn.340acea0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.340b5200
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret