joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1022ce20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x10248a88], 0x1cbb
mov dword [0x10248a8c], 0xfffff8ec
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1022d790
lea ecx, [0x1022cd60]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x44], 0x168e00
mov edx, dword [0x10248a74]
mov dword [esp + 0x74], edx
mov edx, dword [0x10248a78]
mov dword [esp + 0x80], edx
mov edx, dword [0x10248a7c]
mov dword [esp + 0x88], edx
mov edx, dword [0x10248a80]
mov dword [esp + 0x8c], edx
mov edx, dword [0x10248a84]
mov dword [esp + 0x40], edx
mov dword [0x10248a8c], 0x12c7
mov dword [0x10248a88], 0xde7
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
jne 0x1022cee8
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x1022cefc
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x1022cec1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x64], eax
mov dword [0x10248a88], 0xfdd
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x48], eax
call fcn.1022be20
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x1022cf72
lea eax, [esp + 0x38]
mov ecx, dword [0x10248a88]
add ecx, 0xffffda97
mov dword [0x10248a8c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1022cb80
mov dword [0x10248a88], 0xa7c
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1022d370
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x9c
mov al, 0x6b
xor ecx, ecx
lea edx, [ebp - 0x6c]
mov dword [0x10248a88], 0x138
mov byte [ebp - 0x2c], 0x6b
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x72
mov byte [ebp - 0x29], 0x6e
mov byte [ebp - 0x28], 0x65
mov byte [ebp - 0x27], 0x6c
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x6c
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0xfc
mov dword [0x10248a8c], 0xfffff38d
mov dword [ebp - 0x70], edx
mov byte [ebp - 0x71], al
mov dword [ebp - 0x78], ecx
jmp 0x1022d48c
mov eax, dword [ebp - 0x7c]
mov cx, word [eax + 0x24]
mov dword [0x10248a88], 0x5c5
mov edx, dword [eax + 0x28]
mov dword [0x10248a8c], 0x1f3a
shr cx, 1
movzx esi, cx
cmp cx, 0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x88], esi
je 0x1022d4c4
jmp 0x1022d42b
xor eax, eax
mov dword [ebp - 0x8c], eax
jmp 0x1022d5a1
xor eax, eax
mov dword [ebp - 0x90], eax
jmp 0x1022d4df
mov dword [0x10248a8c], 0x12c7
mov dword [0x10248a88], 0x3ac1
mov ecx, dword fs:[0x18]
xor eax, eax
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x10248a88], 0x15da
mov ecx, dword [ecx + 0x14]
cmp ecx, edx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x8c], eax
je 0x1022d5a1
jmp 0x1022d4b6
mov eax, dword [ebp - 0x78]
mov cl, byte [ebp - 0x71]
movsx edx, cl
mov si, dx
mov word [ebp + eax*2 - 0x6c], si
mov edx, eax
add edx, 1
mov cl, byte [ebp + eax - 0x2b]
cmp cl, 0
mov byte [ebp - 0x71], cl
mov dword [ebp - 0x78], edx
je 0x1022d438
jmp 0x1022d48c
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x7c], eax
jmp 0x1022d3dd
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x98]
cmp ecx, edx
mov dword [ebp - 0x7c], ecx
je 0x1022d41e
jmp 0x1022d3dd
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x84]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x9c], eax
mov word [ebp - 0x9e], dx
mov word [ebp - 0xa0], di
jb 0x1022d528
mov ax, word [ebp - 0x9e]
mov word [ebp - 0xa0], ax
mov ax, word [ebp - 0xa0]
mov ecx, dword [ebp - 0x9c]
cmp word [ebp + ecx*2 - 0x6c], ax
sete dl
add ecx, 1
cmp ax, 0
setne dh
mov bl, dl
and bl, dh
mov esi, dword [ebp - 0x88]
cmp ecx, esi
setb dh
and dh, bl
test dh, 1
mov dword [ebp - 0x90], ecx
mov byte [ebp - 0xa1], dl
jne 0x1022d4df
mov al, byte [ebp - 0xa1]
mov dword [0x10248a88], 0x1792
test al, 1
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0xa8], ecx
jne 0x1022d592
jmp 0x1022d4c4
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1022e220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [0x10248a88], 0x1df4
mov dword [ebp - 0x10], eax
call fcn.1022bf60
xor ecx, ecx
mov edx, eax
mov esi, dword [0x10248a8c]
mov edi, esi
add edi, 0xffffee37
mov dword [0x10248a88], edi
mov edi, dword [eax + 0x3c]
add esi, 0xfffffd16
mov dword [0x10248a88], esi
mov esi, dword [eax + edi + 0x78]
mov dword [0x10248a8c], 0xcf8
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x10248a88], 0x727
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x1022e386
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov bl, cl
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
mov byte [ebp - 0x43], bl
je 0x1022e329
mov eax, dword [ebp - 0x40]
add eax, 1
mov cl, byte [ebp - 0x41]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x42]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dl, byte [ebp - 0x42]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x43], dl
jne 0x1022e2cd
mov al, byte [ebp - 0x43]
test al, 1
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x48], ecx
jne 0x1022e35a
mov eax, dword [ebp - 0x30]
add eax, 1
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov edx, dword [ebp - 0x18]
cmp eax, edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
jb 0x1022e2b3
jmp 0x1022e37f
mov eax, dword [ebp - 0x48]
movzx eax, word [eax]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x1c]
mov esi, dword [ebp - 0x1c]
add esi, dword [ecx + eax*4]
mov dword [0x10248a88], 0x241b
mov dword [ebp - 0x24], esi
jmp 0x1022e386
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x1022e386
mov eax, dword [ebp - 0x24]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1022e620
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [0x10248a88]
add edi, 0xffffea62
mov dword [0x10248a88], edi
mov dword [0x10248a90], 0
mov dword [0x10248a94], 0
mov dword [0x10248aa0], 0
mov dword [0x10248a8c], 0x5a1
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1022e783
jmp 0x1022e68d
jmp 0x1022e783
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x1022e69e
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10248a90], edx
mov dword [0x10248a88], 0x9ec
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10248a94], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10248a98], cl
mov dword [0x10248a88], 0xbdb
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10248a98]
mov edx, dword [0x10248a94]
mov byte [edi + edx], cl
mov dword [0x10248a8c], 0x138
mov edx, dword [0x10248a90]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10248a94]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x10248aa0], ebx
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
xor cl, byte [edx + ebx]
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], cl
add ebx, 1
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x38], ebx
je 0x1022e688
mov eax, dword [0x10248a90]
mov ecx, dword [0x10248a94]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x1022e69e
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4062e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b508
cmp edx, dword [eax]
je 0x406307
add eax, 8
inc ecx
cmp eax, 0x40b598
jl 0x4062f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b508]
jne 0x406435
mov eax, dword [0x40ba54]
cmp eax, 1
je 0x40640f
test eax, eax
jne 0x406338
cmp dword [0x40b1b4], 1
je 0x40640f
cmp edx, 0xfc
je 0x406435
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40636f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40957c
push edi
call fcn.004077b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037c0
lea eax, [ebp - 0xa0]
push 0x40955c
push eax
call fcn.004037c0
push dword [esi + 0x40b50c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407726
add esp, 0x2c
pop edi
jmp 0x406435
lea eax, [ebp + 8]
lea esi, [esi + 0x40b50c]
push 0
push eax
push dword [esi]
call fcn.004038a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x429703
Capabilities:
Resolve function by parsing pe exports

Disassembly:
not edx
not edx
mov eax, 0
cld
clc
nop
cld
not ebp
not ebp
cld
dec esp
inc esp
cld
push eax
nop
sahf
wait
mov ch, ch
not dh
not dh
imul eax, eax, 0x10
stc
xchg dword [esp], eax
jmp 0x4295b6
add al, dl
lea edx, [edx + ebx]
sub cl, 0x31
push dword [edx + 0x20]
pop esi
lea esi, [ebx + esi]
jmp 0x42972c
cmp dh, 0x94
add esi, ebx
clc
ret 4
sahf
cmc
sub dword [esp], eax
cld
movzx eax, byte [edi]
sub edi, 0xffffffff
jmp 0x4297b3
mov edi, dword [edx + 0x1c]
cmp eax, 0xffffffa2
not eax
adc eax, 0xe68ae329
mov eax, 0x334a8761
cmp ah, 2
mov esi, dword [edx + 0x24]
dec dh
cld
add esi, ebx
xchg edx, edx
movzx eax, word [esi + ecx*2]
jmp 0x429671
mov dl, dh
add edi, ebx
mov esi, dword [edi + eax*4]
jmp 0x4295ad
lea ecx, [ecx]
not esi
not esi
not bl
not bl
jne 0x4250d3
xchg edx, edx
xchg edx, edx
lea ecx, [ecx]
xor eax, 0x69521502
jmp 0x4298e8
ret
push dword [ebx + 0x3c]
mov edx, ecx
cmp cl, 0xb8
xchg ecx, edi
xchg ecx, esi
nop
lahf
cld
sbb al, bl
pop eax
mov edi, ecx
mov edx, dword [eax + ebx + 0x78]
jmp 0x4294cc
add ecx, 1
cmp edi, 0xffffffa9
lodsd eax, dword [esi]
jmp 0x42979e
push 0xffffffffffffffff
xchg ah, al
cmp ah, dl
xchg edi, edi
not al
mov edi, esi
and al, dh
pop ecx
jmp 0x429720
lea edi, [eax + ebx]
xchg edx, ebp
xchg edx, ebp
cmp ecx, dword [edx + 0x18]
je 0x429700
jmp 0x4250be
sub dword [esp], eax
pop eax
test byte [edi], 0xff
jmp 0x429697
nop
sub eax, dword [esp + 4]
jne 0x429720
jmp 0x429617
Function at 0x404560
Capabilities:
Encode data using xor

Disassembly:
push eax
call esi
add esp, 8
push 0x16
call dword [0x405d70]
xor byte [eax + 0x559090b0], dl
push ebp
mov al, 0x90
nop
push ebp
push esp
in al, dx
push ecx
mov eax, dword [0x344140bd]
push ebx
mov ebx, dword [ebp + 8]
push esi
xchg ebx, eax
push ebx
push eax
loop 0x40454d
adc al, byte [eax]
add byte [0xea414040], bl
mov edi, ebx
mov esp, 0xc033ffc9
repne scasb al, byte es:[edi]
mov esi, dword [0x40c103]
jno 0x40455d
dec ecx
cmp ecx, 7
jbe 0xa8466d
push 7
push str.http:__
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x4045e8
add ebx, 7
push 0x2f
push ebx
jmp [edi + 0x7c]
loope 0x4045ed
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edi + 8]
mov esi, dword [0x456fea2b]
inc edi
or byte [ebx + 0x6fea2b35], cl
inc ebp
xor dword [eax], eax
add al, 0x15
dec esp
inc eax
inc ecx
add byte [edx + 0x50], dl
xchg ebx, eax
inc ebp
cld
push 0x4117f4
push eax
push 0xac1800
add eax, 0x280e
test eax, eax
jne 0x544655
mov eax, dword [0x411800]
test eax, eax
js 0xac404717
mov eax, dword [ebp - 4]
test eax, eax
jne 0x404717
mov eax, dword [edx + 0x4c]
add byte [eax + eax + 0x11e89a56], 0x12
add byte [eax], al
mov dword [0x4117e4], eax
invalid
pop edi
pop esi
mov eax, connect
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100014c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [0x1001c44c]
push esi
push edi
mov esi, edx
mov dword [esi], eax
mov edi, ecx
mov ecx, dword [0x1001c450]
mov dword [esi + 4], ecx
mov edx, dword [0x1001c454]
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
mov dword [esi + 8], edx
mov eax, dword [0x1001c458]
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
mov dword [esi + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000158a
push 0x103
push eax
lea edx, [esp + 0x1d]
push edx
mov byte [esp + 0x20], al
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000157f
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x26
jne 0x1000157f
lea edi, [esp + 0x14]
call fcn.10001380
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.100192c6
add esp, 0x11c
ret
Function at 0x100015b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x130]
push ebx
mov ebx, dword [esp + 0x130]
push ebp
mov ebp, dword [esp + 0x128]
push esi
mov esi, dword [esp + 0x134]
push edi
mov edi, dword [esp + 0x134]
push 0x103
lea ecx, [esp + 0x29]
push 0
push ecx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], 0
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x2c]
mov edx, eax
shr edx, 0x18
push edx
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
push edx
mov ecx, eax
shr ecx, 8
movzx edx, cl
push edx
movzx eax, al
push eax
mov ecx, ebx
shr ecx, 0x18
push ecx
mov edx, ebx
shr edx, 0x10
movzx eax, dl
push eax
mov ecx, ebx
shr ecx, 8
movzx edx, cl
push edx
movzx eax, bl
push eax
mov ecx, esi
shr ecx, 0x10
push ecx
movzx edx, si
push edx
push edi
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
lea eax, [esp + 0x60]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x44
lea ecx, [esp + 0x10]
push ecx
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1000169a
lea edx, [esp + 0x10]
push edx
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1000169a
xor eax, eax
jmp 0x100016d6
lea eax, [esp + 0x24]
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 0x10]
inc eax
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push esi
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x100016c9
xor esi, esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100192c6
add esp, 0x11c
ret 0x14
Function at 0x10001ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1001a69c
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x128], eax
mov eax, dword [0x10023050]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0x29]
push 0
push eax
mov byte [esp + 0x30], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
mov dword [esp + 0xc], 0x104
call fcn.1000fe70
cmp eax, reloc.OLEAUT32.dll_SysStringLen
je 0x10001b54
test eax, eax
jne 0x10001bb1
lea eax, [esp + 0x24]
lea edx, [eax + 1]
jmp 0x10001b60
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001b60
sub eax, edx
cmp eax, 8
jbe 0x10001bb1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
lea ecx, [esi + 0xc4]
mov dword [esp + 0x13c], 0
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 0x138], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 1
jmp 0x10001bb3
xor eax, eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.100192c6
add esp, 0x138
ret
Function at 0x10002050
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1001aaab
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x114], eax
push ebp
push esi
push edi
mov eax, dword [0x10023050]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov eax, dword [0x10023afc]
mov edx, dword [eax + 0xc]
mov ecx, 0x10023afc
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x103
lea eax, [esp + 0x21]
push 0
mov dword [esp + 0x138], 0
push eax
mov byte [esp + 0x28], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edi, [esp + 0x1c]
call fcn.10003b80
mov ecx, edi
push ecx
push str._s_ravmond.exe
lea edi, [esp + 0x1c]
call fcn.10002a40
mov edi, dword [esp + 0x1c]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebp, 0xffffffff
push edi
mov esi, 0x100236a0
cmp eax, ebp
jne 0x10002124
push str._s_File_Not_Exist
push 0
push 0x80
call fcn.10003ad0
lea eax, [edi - 0x10]
add esp, 0x10
mov dword [esp + 0x130], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
jmp 0x100021ab
push str.RsInstallService_file_s
push 0
push 0x80
call fcn.10003ad0
xor ecx, ecx
add esp, 0x10
cmp ecx, str.RsRavMon
je 0x10002199
push edi
push str.RsRavMon
call fcn.100023a0
test eax, eax
je 0x10002199
push str.RsRavMon
call fcn.100021f0
lea edx, [esp + 0x18]
push edx
mov eax, str.RsRavMon
mov dword [esp + 0x1c], str.setup
call fcn.10002500
lea eax, [edi - 0x10]
mov dword [esp + 0x130], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x10002192
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x100021bb
lea eax, [edi - 0x10]
mov dword [esp + 0x130], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x100021b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100192c6
add esp, 0x124
ret
Function at 0x100023a0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
cmp byte [ebp], 0
push esi
push edi
je 0x100023f5
push ebp
push str.RsInstallService__s_
push 0
push 0x80
mov esi, 0x100236a0
call fcn.10003ad0
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x100023ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_Failed__Err_Code:__d
push ebx
push 4
call fcn.10003ad0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push 0xf01ff
push ebp
push ebx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x1000246f
push eax
push eax
push str.RpcSs
push eax
mov eax, dword [esp + 0x2c]
push str.COM_Infrastructure
push eax
push 1
push 2
push 0x110
push 0xf01ff
push str.Rav_Service
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
jne 0x100024c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_Failed__Err_Code:__d
push edi
push 4
mov esi, 0x100236a0
call fcn.10003ad0
add esp, 0x10
mov dword [esp + 0x18], edi
jmp 0x100024ca
mov esi, dword [esp + 0x1c]
push str.Rav_Service
push 0
push 0
push str.RpcSs
push 0
push str.COM_Infrastructure
push esi
push 1
push 2
push 0x110
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x100024c3
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeServiceConfig_Failed__Err_Code:__d_lpszBinaryPathName_s
push 0
push 4
mov esi, 0x100236a0
call fcn.10003ad0
add esp, 0x14
mov dword [esp + 0x18], 0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x18]
push ecx
push ebp
push str.RsInstallService__s__Return:__d
push 0
push 0x80
mov esi, 0x100236a0
call fcn.10003ad0
mov eax, dword [esp + 0x2c]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8