joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180009030
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov edx, 0x18
mov r8d, 0xf0000000
lea rcx, [rsp + 0x50]
mov rdi, r9
call fcn.180008d80
lea rcx, [rsp + 0x50]
call fcn.180008e80
test rax, rax
jne 0x18000907b
xor bl, bl
jmp 0x18000910d
lea rcx, [rsp + 0x48]
call fcn.180008d70
mov r9d, dword [rbx + 8]
lea rdx, [rsp + 0x50]
mov r8, qword [rbx]
lea rcx, [rsp + 0x48]
call fcn.1800096f0
test eax, eax
jne 0x180009101
lea edx, [rax + 1]
lea rcx, [rsp + 0x48]
call fcn.1800098e0
test eax, eax
jne 0x180009101
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x48]
call fcn.180009890
test eax, eax
jne 0x180009101
lea rcx, [rsp + 0x48]
call fcn.180001870
test rax, rax
je 0x180009101
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x40], edi
xor r8d, r8d
mov qword [rsp + 0x20], rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
cmp eax, 1
sete bl
jmp 0x180009103
xor bl, bl
lea rcx, [rsp + 0x48]
call fcn.180008e50
lea rcx, [rsp + 0x50]
call fcn.180008de0
mov rbp, qword [rsp + 0x78]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x180009140
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbp, r8
mov rbx, rdx
xor r8d, r8d
mov rdi, rcx
lea rcx, [rsp + 0x50]
mov rsi, r9
lea edx, [r8 + 1]
call fcn.180008d80
lea rcx, [rsp + 0x50]
call fcn.180008e80
test rax, rax
jne 0x18000918d
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x18000924a
lea rcx, [rsp + 0x48]
call fcn.180008d70
mov r9d, dword [rdi + 8]
lea rdx, [rsp + 0x50]
mov r8, qword [rdi]
lea rcx, [rsp + 0x48]
call fcn.1800097c0
lea rcx, [rsp + 0x48]
call fcn.180001870
test rax, rax
je 0x1800091e9
xor r9d, r9d
mov dword [rsp + 0x30], ebp
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x28], rcx
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1800091f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x180009240
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
dec eax
movsxd r8, eax
test eax, eax
jle 0x18000923e
mov r9, rbx
mov rax, rbx
neg r9
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r8 + rbx]
movzx edx, byte [rax]
mov byte [rax], cl
lea rax, [rax + 1]
mov byte [r8 + rbx], dl
lea rcx, [r9 + rax]
dec r8
cmp rcx, r8
jl 0x180009220
mov bl, 1
lea rcx, [rsp + 0x48]
call fcn.180008e50
lea rcx, [rsp + 0x50]
call fcn.180008de0
mov rbp, qword [rsp + 0x78]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x180009270
Capabilities:
Decode data using base64 via winapi

Disassembly:
jmp 0x180009270
sub rsp, 0x48
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
lea r8d, [rax + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xor eax, eax
add rsp, 0x48
ret

Function at 0x1800092a0
Capabilities:
Encode data using base64 via winapi

Disassembly:
jmp 0x1800092a0
sub rsp, 0x38
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8d, 1
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
xor eax, eax
add rsp, 0x38
ret

Function at 0x1800092c0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov edx, 0x18
mov r8d, 0xf0000000
lea rcx, [rsp + 0x38]
mov ebp, r9d
call fcn.180008d80
lea rcx, [rsp + 0x38]
call fcn.180008e80
test rax, rax
je 0x180009388
lea rcx, [rsp + 0x38]
call fcn.180008e80
mov rcx, rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180009382
mov rcx, qword [rsi]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180009382
mov eax, dword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rsp + 0x80]
mov r8d, eax
mov dword [rsp + 0x30], eax
call fcn.18000fc98
mov r8, qword [rsp + 0x80]
lea r9, [rsp + 0x30]
mov rcx, qword [rsi]
xor edi, edi
mov dword [rsp + 0x20], edi
lea edx, [rdi + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x18000938b
call qword [sym.imp.KERNEL32.dll_GetLastError]
or edi, 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.180008de0
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x180009440
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov edx, 0x18
mov r8d, 0xf0000000
lea rcx, [rsp + 0x40]
mov rbp, r9
call fcn.180008d80
lea rcx, [rsp + 0x40]
call fcn.180008e80
test rax, rax
jne 0x18000948f
or ebx, 0xffffffff
jmp 0x1800095b4
lea rcx, [rsp + 0x38]
call fcn.180008d70
mov r9d, ebx
lea rdx, [rsp + 0x40]
mov r8, rsi
lea rcx, [rsp + 0x38]
call fcn.1800096f0
test eax, eax
je 0x1800094ba
or ebx, 0xffffffff
jmp 0x1800095aa
lea rcx, [rsp + 0x38]
call fcn.180001870
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.180008e80
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rbx
mov edx, 0x8009
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1800095a2
mov rcx, qword [rdi]
lea r8, [rsp + 0x50]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea edx, [r9 + 5]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x50], eax
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x1800095a2
mov r8d, dword [rsp + 0xb0]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1800095a2
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
xor ebx, ebx
xor r8d, r8d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x20], ebx
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1800095a2
mov r9, qword [rsp + 0xc8]
mov eax, dword [r9]
cmp dword [rsp + 0x30], eax
je 0x180009584
or ebx, 0xffffffff
jmp 0x1800095aa
mov r8, qword [rsp + 0xc0]
mov edx, 2
mov rcx, qword [rdi]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1800095aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x38]
call fcn.180008e50
lea rcx, [rsp + 0x40]
call fcn.180008de0
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180009690
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ebx, r8d
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rdi, rdx
lea edx, [r8 + 1]
call fcn.180008d80
lea rcx, [rsp + 0x20]
call fcn.180008e80
test rax, rax
je 0x1800096d6
mov r8, rdi
mov edx, ebx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1800096d6
xor ebx, ebx
jmp 0x1800096d9
or ebx, 0xffffffff
lea rcx, [rsp + 0x20]
call fcn.180008de0
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1800096f0
Capabilities:
Encrypt data using aes via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rbp, rcx
mov edi, r9d
mov rcx, rdx
mov rsi, r8
mov rbx, rdx
call fcn.180008e80
test rax, rax
je 0x1800097a2
xor eax, eax
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x3c]
mov qword [rsp + 0x38], rax
mov r8d, edi
mov rdx, rsi
mov dword [rsp + 0x30], 0x208
mov dword [rsp + 0x34], 0x660e
xor r14d, r14d
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], eax
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call fcn.180008e80
mov rcx, rax
mov qword [rsp + 0x28], rbp
xor r9d, r9d
mov dword [rsp + 0x20], r14d
lea r8d, [r14 + 0x2c]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov r14, qword [rsp + 0x70]
test eax, eax
jne 0x1800097a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x1800097a9
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000b930
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x180019310]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18000b96c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.18000ff84
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call fcn.18000fc98
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x18000ba28
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x18000ba8e
test ebx, ebx
jne 0x18000ba8e
lea ecx, [rax + 2]
call fcn.18000ff84
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.18000ff60
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret

Function at 0x18000bcc0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000bd1c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000bd1c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000bd1c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000bd1c
cmp dword [rcx + 0x84], 0xe
jbe 0x18000bd1c
cmp dword [rcx + 0xf8], 0
je 0x18000bd1c
mov ecx, ebx
call fcn.18000bc50
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x18001b538]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.18000bad0
cmp dword [rsp + 0x60], 0
jne 0x18000bd5f
mov ecx, ebx
call fcn.18000bc00
int3
add rsp, 0x40
pop rbx
ret
Function at 0x180002ef0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push rbx
mov eax, 0x10b0
call fcn.180010940
sub rsp, rax
mov rax, qword [0x18001c010]
xor rax, rsp
mov qword [rsp + 0x10a0], rax
cmp dword [0x18001de30], 0
mov rbx, rdx
je 0x180002ff7
lea rcx, str.ntdll.dll
call qword [0x1800120a8]
mov rcx, rax
mov rdx, rbx
call qword [0x180012028]
mov rbx, rax
test rax, rax
je 0x18000310f
lea rcx, str.ntdll.dll
call qword [0x1800120a8]
sub rbx, rax
cmp dword [0x18001de30], 0
je 0x180002ffc
lea rcx, str.ntdll.dll
call qword [0x1800120a8]
mov r8d, 0x1000
lea rcx, [rsp + 0xa0]
mov rdx, rax
call fcn.180006de0
mov ecx, 0x5a4d
cmp word [rsp + 0xa0], cx
jne 0x18000310f
movsxd rax, dword [rsp + 0xdc]
lea r8, [rsp + 0xa0]
add r8, rax
cmp dword [r8], 0x4550
jne 0x18000310f
movzx eax, word [r8 + 0x14]
lea rdx, [r8 + 0x18]
movzx r9d, word [r8 + 6]
add rdx, rax
xor ecx, ecx
test r9, r9
je 0x180003063
mov r8d, dword [rdx + 0xc]
cmp r8, rbx
ja 0x180002fe9
mov eax, dword [rdx + 8]
add eax, r8d
cmp rbx, rax
jbe 0x180003063
add rdx, 0x28
inc rcx
cmp rcx, r9
jb 0x180002fd5
jmp 0x180003063
mov rbx, qword [rsp + 0x20]
lea rcx, str.ntdll.dll
call qword [0x1800120a8]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000310f
movsxd r8, dword [rax + 0x3c]
add r8, rax
cmp dword [r8], 0x4550
jne 0x18000310f
movzx eax, word [r8 + 0x14]
lea rdx, [r8 + 0x18]
movzx r9d, word [r8 + 6]
add rdx, rax
xor ecx, ecx
test r9, r9
je 0x180003063
mov r8d, dword [rdx + 0xc]
cmp r8, rbx
ja 0x180003057
mov eax, dword [rdx + 8]
add eax, r8d
cmp rbx, rax
jbe 0x180003063
add rdx, 0x28
inc rcx
cmp rcx, r9
jb 0x180003043
mov eax, dword [rdx + 0x14]
sub eax, dword [rdx + 0xc]
add eax, ebx
test eax, eax
je 0x18000310f
mov ecx, eax
lea rbx, [rsp + 0x30]
mov rax, qword [0x18001de48]
mov qword [rsp + 0x10c0], rdi
mov edi, dword [0x18001de30]
movups xmm0, xmmword [rcx + rax]
movaps xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movaps xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movaps xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rcx + rax + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rcx + rax + 0x40]
movaps xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rcx + rax + 0x50]
movaps xmmword [rsp + 0x80], xmm1
mov eax, dword [rcx + rax + 0x60]
mov dword [rsp + 0x90], eax
nop dword [rax + rax]
mov r8d, edi
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180002920
mov eax, eax
cmp rax, 5
jne 0x1800030fd
cmp byte [rbx], 0xb8
je 0x180003102
add rbx, rax
jmp 0x1800030e0
mov eax, dword [rbx + 1]
mov rdi, qword [rsp + 0x10c0]
jmp 0x180003114
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x10a0]
xor rcx, rsp
call fcn.1800035f0
add rsp, 0x10b0
pop rbx
ret

Function at 0x1800035a0
Capabilities:
Execute syscall

Disassembly:
mov eax, ecx
cmp edx, 1
jl 0x1800035c8
mov r10, r8
cmp edx, 2
jl 0x1800035c8
xchg r9, rdx
cmp r9d, 3
jl 0x1800035c8
mov r8, qword [rsp + 0x28]
cmp r9d, 4
jl 0x1800035c8
mov r9, qword [rsp + 0x30]
add rsp, 0x10
syscall
sub rsp, 0x10
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
pop rsi
pop rcx
add rax, rdx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140003060
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbx
sub rsp, 0x3a0
mov rax, qword [0x140013240]
xor rax, rsp
mov qword [rsp + 0x390], rax
test rdx, rdx
mov rbx, rcx
je 0x14000308f
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1400030a0
lea rdx, str.OracleMTSRecoveryService
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str.Oracle_Services_for_MTS
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140003149
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14000325e
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea rdx, str.TypesSupported
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 7
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140003253
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140003253
lea rdx, [rsp + 0x170]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140003253
lea rcx, [rsp + 0x170]
mov edx, 0x5c
mov qword [rsp + 0x3c0], rdi
call qword [sym.imp.MSVCR80.dll_strrchr]
lea rcx, [rsp + 0x40]
mov edx, 0x20
mov byte [rax], 0
call fcn.14000bc10
test eax, eax
jne 0x1400031bc
lea rdx, [0x14000def0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x170]
lea rdx, str._somtsrecoevnt_s.dll
lea rcx, [rsp + 0x280]
call qword [sym.imp.USER32.dll_wsprintfA]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x280]
lea rdx, str.EventMessageFile
mov r9d, 2
repne scasb al, byte [rdi]
lea rax, [rsp + 0x280]
xor r8d, r8d
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rdi, qword [rsp + 0x3c0]
test eax, eax
jne 0x140003253
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.Oracle_Services_for_MTS
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov qword [rbx + 0x130], rax
mov eax, 1
jmp 0x140003260
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14000be00
add rsp, 0x3a0
pop rbx
ret
Function at 0x140003280
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x60
mov rbx, r9
movzx ebp, r8w
mov r12d, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rdi + 0x130], 0xffffffffffffffff
jne 0x1400032db
lea rdx, str.Oracle_Services_for_MTS
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
cmp rax, 0xffffffffffffffff
mov qword [rdi + 0x130], rax
jne 0x1400032db
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x140003356
mov rcx, rdi
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
lea rax, [rdi + 0x28]
mov qword [rsp + 0x50], rax
mov si, 1
je 0x140003304
mov si, 2
mov qword [rsp + 0x58], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x130]
xor r11d, r11d
mov qword [rsp + 0x40], r11
lea rax, [rsp + 0x50]
mov r9d, r12d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r11d
xor r8d, r8d
movzx edx, bp
mov word [rsp + 0x28], si
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140003410
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
sub rsp, 0x898
mov rax, qword [0x140013240]
xor rax, rsp
mov qword [rsp + 0x880], rax
cmp qword [rcx + 0x50], 0xffffffffffffffff
mov rbp, r8
mov rsi, rcx
je 0x14000358b
cmp edx, dword [0x1400132a8]
ja 0x14000358b
mov qword [r11 + 0x10], rbx
xor ebx, ebx
test r8, r8
mov dword [rsp + 0x60], ebx
je 0x14000357f
cmp byte [r8], bl
je 0x14000357f
or rcx, 0xffffffffffffffff
mov qword [r11 - 0x18], rdi
xor eax, eax
mov rdi, r8
mov rdx, rbp
repne scasb al, byte [rdi]
mov eax, 0x3e0
not rcx
sub rcx, 1
mov rdi, rcx
cmp ecx, eax
lea rcx, [r11 - 0x428]
cmova edi, eax
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rcx, [rsp + 0x68]
mov byte [rsp + rdi + 0x480], bl
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [rsp + 0x76]
movzx edx, word [rsp + 0x74]
movzx edi, word [rsp + 0x72]
movzx r10d, word [rsp + 0x70]
movzx r11d, word [rsp + 0x68]
movzx r9d, word [rsp + 0x6e]
movzx r8d, word [rsp + 0x6a]
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r10d
lea rdx, str.___2.2d___2.2d___4.4d___2.2d:__2.2d:__2.2d:__3.3d____8.8x___s_r_n
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x20], r11d
call qword [sym.imp.USER32.dll_wsprintfA]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x80]
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140003566
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x80]
mov r8d, edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 0x68], ebx
je 0x14000356a
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x14000356a
mov dword [rsp + 0x60], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [rsp + 0x60]
mov rdi, qword [rsp + 0x890]
mov eax, ebx
mov rbx, qword [rsp + 0x8b8]
jmp 0x14000358d
xor eax, eax
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.14000be00
add rsp, 0x898
pop rsi
pop rbp
ret