joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100491a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x100491ab
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 0x100492ad
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 + 0x1008b6e4]
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 + 0x1008b6e4]
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 + 0x1008b6e4]
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 + 0x1008b6e4]
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 + 0x1008b6e4]
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 + 0x1008b6e4]
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 + 0x1008b6e4]
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 + 0x1008b6e4]
xor eax, edx
inc ecx
dec edi
jne 0x100491c6
test esi, esi
je 0x100492cf
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1008b6e4]
xor eax, edx
inc ecx
dec esi
jne 0x100492b1
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x1004fdc0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10089958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x1008bc9c
mov eax, dword [esi + 8]
mov dword [esp + 0x10], 7
cmp eax, 0xffffffff
je 0x1004fe01
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
lea ecx, [esi + 0x44]
call fcn.10017b60
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 6
call fcn.10017b60
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 5
call fcn.1000da40
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 4
call fcn.1000da40
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 3
call fcn.1000da40
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 2
call fcn.1000da40
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 1
call fcn.1000da40
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 0
call fcn.1000da40
lea ecx, [esi + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.1000da40
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10052290
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x10089aab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x620
push esi
push edi
lea ecx, [esp + 0x10]
xor esi, esi
call fcn.10017b50
mov eax, dword [esp + 0x658]
mov dword [esp + 0x630], esi
test eax, eax
je 0x100522d4
push eax
lea ecx, [esp + 0x14]
call fcn.10017da0
mov eax, dword [esp + 0x65c]
test eax, eax
je 0x100522e9
push eax
lea ecx, [esp + 0x14]
call fcn.10017da0
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x229]
mov byte [esp + 0x228], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov dword [esp + 8], 0x400
test eax, eax
jle 0x10052368
lea eax, [esp + 8]
lea ecx, [esp + 0x228]
push eax
push ecx
lea edx, [esp + 0x18]
push 0
push edx
call fcn.10057ec0
add esp, 0x10
test eax, eax
jne 0x10052361
lea ecx, [esp + 0x10]
mov dword [esp + 0x630], 0xffffffff
call fcn.10017b60
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x620]
mov dword fs:[0], ecx
add esp, 0x62c
ret
lea esi, [esp + 0x228]
mov eax, dword [esp + 0x648]
mov ecx, dword [esp + 0x664]
mov edx, dword [esp + 0x660]
push ebx
push ebp
push eax
mov eax, dword [esp + 0x660]
push ecx
mov ecx, dword [esp + 0x660]
push edx
mov edx, dword [esp + 0x658]
push esi
mov esi, dword [esp + 0x650]
push 0
push eax
mov eax, dword [esp + 0x660]
push ecx
mov ecx, dword [esp + 0x660]
push edx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov ebp, eax
test ebp, ebp
je 0x10052421
mov ebx, dword [esp + 0x654]
test ebx, ebx
je 0x10052421
test esi, esi
je 0x10052421
call fcn.100475d0
mov eax, dword [0x100af3e4]
test eax, eax
je 0x10052421
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 ebx
stosw word es:[edi], ax
call fcn.10056f10
add esp, 0x14
lea ecx, [esp + 0x14]
lea eax, [esp + 0x28]
push ecx
push 1
push esi
mov dword [esp + 0x20], eax
call dword [0x100af3e4]
lea ecx, [esp + 0x18]
mov dword [esp + 0x638], 0xffffffff
call fcn.10017b60
mov ecx, dword [esp + 0x630]
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x62c
ret
Function at 0x10052bd0
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x10052bed
cmp edi, 4
jbe 0x10052bed
mov dword [0x100af628], 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 0x10052c0c
push eax
mov eax, dword [str.Type]
push eax
mov ecx, esi
call fcn.1001e630
cmp edi, 0xffffffff
je 0x10052c20
mov ecx, dword [str.Start]
push edi
push ecx
mov ecx, esi
call fcn.1001e630
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x10052c38
mov edx, dword [str.ErrorControl]
push eax
push edx
mov ecx, esi
call fcn.1001e630
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10052c4e
push eax
mov eax, dword [str.DisplayName]
push eax
mov ecx, esi
call fcn.1001e7e0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10052c65
mov ecx, dword [str.Description]
push eax
push ecx
mov ecx, esi
call fcn.1001e7e0
mov edx, dword [esp + 0x28]
test edx, edx
je 0x10052c8b
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [str.ImagePath]
push 2
push eax
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10052ca1
push eax
mov eax, dword [str.Group]
push eax
mov ecx, esi
call fcn.1001e7e0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10052cb8
mov ecx, dword [str.DependOnGroup]
push eax
push ecx
mov ecx, esi
call fcn.1001ec70
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10052ccf
mov edx, dword [str.DependOnService]
push eax
push edx
mov ecx, esi
call fcn.1001ec70
pop esi
pop ebx
mov eax, 1
pop edi
ret
Function at 0x10053a30
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10089cc0
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x10053a63
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp byte [esi], 0
jne 0x10053a7a
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.1001d3b0
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.1001d520
test eax, eax
je 0x10053b26
push 1
push esi
lea ecx, [esp + 0xc]
call fcn.1001f9e0
test eax, eax
jne 0x10053adb
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1001d4a0
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 0x10053b0e
lea ecx, [esp + 0x28]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.1001db30
push eax
mov ecx, edi
mov byte [esp + 0x1c], 1
call fcn.1000dbc0
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call fcn.1000da40
mov eax, dword [esp + 0x24]
pop edi
test eax, eax
je 0x10053bed
mov dword [eax], 0x10
jmp 0x10053bed
mov edx, dword [0x1008a6f0]
mov dword [esp + 0x1c], edx
mov eax, dword [str.SystemCurrentControlSetServicesVxD]
push esi
push eax
lea ecx, [esp + 0x24]
push 0x1009e6e8
push ecx
mov byte [esp + 0x24], 2
call fcn.10010890
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 4]
push 0x20019
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001d520
test eax, eax
jne 0x10053b9a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], al
call fcn.1000da40
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1001d4a0
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 0x10053bd1
mov eax, dword [str.StaticVxD]
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.1001db30
push eax
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.1000dbc0
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 2
call fcn.1000da40
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10053bdf
mov dword [eax], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.1000da40
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1001d4a0
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10053c20
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10089ce8
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 0x10053d2f
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x10053d2f
cmp byte [edi], bl
je 0x10053d2f
cmp byte [esi], bl
je 0x10053d2f
lea ecx, [esp + 0xc]
call fcn.1001d3b0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
cmp eax, 2
je 0x10053ccd
cmp eax, 1
je 0x10053ccd
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.1001d520
test eax, eax
jne 0x10053cbb
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x2001f
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.1001d590
test eax, eax
je 0x10053d1e
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.1001e7e0
mov esi, eax
jmp 0x10053db2
mov edx, dword [0x1008a6f0]
mov dword [esp + 0x24], edx
mov eax, dword [str.SystemCurrentControlSetServicesVxD]
push edi
push eax
lea ecx, [esp + 0x2c]
push 0x1009e6e8
push ecx
mov byte [esp + 0x2c], 1
call fcn.10010890
mov edx, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0xc]
push 0x2001f
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001d520
test eax, eax
jne 0x10053d43
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call fcn.1000da40
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1001d4a0
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 [0x1008a6f0]
mov dword [esp + 0x2c], eax
push 0x5c
push esi
mov byte [esp + 0x24], 2
call fcn.10024a8e
add esp, 8
cmp eax, ebx
je 0x10053d6b
inc eax
lea ecx, [esp + 0x2c]
push eax
call fcn.1000dca0
mov eax, dword [esp + 0x2c]
cmp dword [eax - 8], ebx
jne 0x10053d84
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 1
call fcn.1000da40
jmp 0x10053d11
mov ecx, dword [str.StaticVxD]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.1001e7e0
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x1c], 1
call fcn.1000da40
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call fcn.1000da40
lea ecx, [esp + 0xc]
call fcn.1001d570
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1001d4a0
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 0x10055940
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10089e10
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.100188a0
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.100188a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x100af720]
test eax, eax
je 0x100559f8
cmp ebp, eax
jne 0x100559f8
mov eax, dword [0x100af724]
test eax, eax
je 0x100559f8
cmp ebx, eax
jb 0x100559f8
add eax, 0x493e0
cmp eax, ebx
jb 0x100559f8
mov ebp, dword [0x100af728]
push 1
inc ebp
push 0x100af640
lea ecx, [esp + 0x18]
mov dword [0x100af728], ebp
call fcn.1001d050
push 0x100af670
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.10018a80
push 0x100af660
mov ecx, edi
call fcn.10018a80
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x10055a6e
push edi
push esi
mov dword [0x100af728], 0
call fcn.10055d70
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x100af640
call fcn.1001d050
push 0xffffffffffffffff
push 0
mov ecx, 0x100af670
mov dword [esp + 0x38], 1
mov dword [0x100af720], ebp
mov dword [0x100af724], ebx
call fcn.100188a0
push esi
mov ecx, 0x100af670
call fcn.10018a80
push 0xffffffffffffffff
push 0
mov ecx, 0x100af660
call fcn.100188a0
push edi
mov ecx, 0x100af660
call fcn.10018a80
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.1001d0b0
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
Function at 0x10055d70
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x10089e76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.100188a0
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.100188a0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x10055ea9
mov edx, dword [0x1009c43c]
mov cx, word [0x1009c440]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.10012610
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.10018e40
mov edx, dword [0x1008a6f4]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.10013030
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.10018e40
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.10012db0
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.10012db0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x10055dcb
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x1005b480
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x1005b566
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp edi, 3
jl 0x1005b4f3
xor edx, edx
xor eax, eax
mov dh, byte [esi]
mov al, byte [esi + 2]
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
inc ecx
and edx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x1005b54a
xor edx, edx
mov dl, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x1005b506
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
cmp edi, 1
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
jne 0x1005b536
mov ebx, 0x3d
jmp 0x1005b544
shr edx, 6
and edx, 0x3f
xor ebx, ebx
mov bl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x1005b49a
pop esi
pop ebx
mov eax, ebp
pop edi
mov byte [ecx], 0
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov eax, ebp
pop edi
pop ebp
mov byte [ecx], 0
ret
Function at 0x1005b940
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.10023c70
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x1005b96b
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x1005b97d
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 0x1005bae9
push esi
call fcn.1005f4c0
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x1005b9b3
push str.j____int_sizeof_ctx__key_
push 0x54
push str..cryptohmachmac.c
call fcn.1005c9e0
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x1005b9f2
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.1005a9c0
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call fcn.1005ab30
lea esi, [ebx + 0x34]
lea ecx, [ebx + 0x38]
push esi
push ecx
push edi
call fcn.1005ac30
add esp, 0x24
jmp 0x1005ba31
test ebp, ebp
jl 0x1005b9fe
cmp ebp, 0x80
jle 0x1005ba12
push str.len_0__len__int_sizeof_ctx__key_
push 0x5e
push str..cryptohmachmac.c
call fcn.1005c9e0
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 0x1005ba56
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 0x1005ba5f
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x14]
push ebp
push esi
push edi
call fcn.1005a9c0
push esi
call fcn.1005f4c0
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.1005ab30
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 0x1005ba9b
lea edi, [ebx + 0x24]
push ebp
push esi
push edi
call fcn.1005a9c0
push esi
call fcn.1005f4c0
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.1005ab30
add esp, 0x1c
lea eax, [ebx + 0x14]
add ebx, 4
push eax
push ebx
call fcn.1005ace0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x1005bace
jmp 0x1005ba5d
Function at 0x1005c860
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.10023c70
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1005c8a9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1005c8a9
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x100a1e78
call fcn.100862ea
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.1008629a
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1005c9bb
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x1005c9bb
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 0x1005c9bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1005c9bb
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x1005c9bb
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.10023c70
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 0x1005c9bb
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.100233b4
add esp, 8
test eax, eax
je 0x1005c9bb
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 0x1005dcd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.10023c70
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
test ebx, ebx
push edi
jle 0x1005de24
cmp ebx, 0x80
jg 0x1005de24
mov edi, dword [esp + 0x44]
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x40]
push eax
push edi
push edi
mov dword [esp + 0x28], edx
call fcn.1005e5e0
lea eax, [ebx + 7]
add esp, 0xc
cdq
and edx, 7
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x48]
sar ebp, 3
test eax, eax
je 0x1005dd67
test ebp, ebp
jle 0x1005ddb5
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
lea esi, [esp + 0x20]
sub edx, edi
sub esi, edi
mov ecx, edi
sub ebx, edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
inc ecx
dec ebp
mov byte [esi + ecx - 1], al
mov byte [ebx + ecx - 1], al
jne 0x1005dd54
jmp 0x1005ddb1
xor esi, esi
test ebp, ebp
jle 0x1005ddb5
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x20]
mov ebx, edi
lea edx, [esp + 0x20]
sub eax, ecx
mov ecx, dword [esp + 0x38]
sub ebx, edx
lea edx, [esp + 0x20]
sub ecx, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
jmp 0x1005dd97
mov ebx, dword [esp + 0x34]
lea ecx, [esp + esi + 0x20]
mov dl, byte [eax + ecx]
mov bl, byte [ebx + ecx]
mov byte [ecx], dl
xor bl, dl
mov edx, dword [esp + 0x38]
inc esi
cmp esi, ebp
mov byte [edx + ecx], bl
jl 0x1005dd93
mov ebx, dword [esp + 0x3c]
mov ebp, ebx
and ebp, 0x80000007
jns 0x1005ddc4
dec ebp
or ebp, 0xfffffff8
inc ebp
mov eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
test ebp, ebp
jne 0x1005ddf5
lea eax, [esp + eax + 0x10]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, 8
xor esi, esi
sub ecx, ebp
lea eax, [esp + eax + 0x10]
mov dword [esp + 0x3c], ecx
jmp 0x1005de0c
mov ecx, dword [esp + 0x3c]
mov dl, byte [eax + esi + 1]
mov bl, byte [eax + esi]
shr dl, cl
mov ecx, ebp
shl bl, cl
or dl, bl
mov byte [esi + edi], dl
inc esi
cmp esi, 0x10
jl 0x1005de08
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret