joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x51011337
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x6dd8360e
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402e7a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x432180]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x442694]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402ee1
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004035de
lea ecx, [esp + 0x1c]
call fcn.00402a0f
cmp eax, dword [esp + 0x14]
je 0x402ef9
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00404017
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402eb1
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409367
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00404017
jmp 0x402ee3

Function at 0x402f7c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x442694], eax
push 0x27
mov esi, 0x440260
mov edx, 0x547
push 0x432c30
mov ecx, esi
call fcn.00402805
pop ecx
pop ecx
mov edx, 0x8aafdc01
call fcn.00402e7a
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x403007
lea ecx, [esp + 0x10]
call fcn.004049da
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], 1
test ecx, ecx
je 0x403011
cmp byte [ecx + 0x6c], 0
jne 0x403011
mov eax, dword [ecx]
push 1
call dword [eax + 8]
lea ecx, [esp + 0x10]
call fcn.0040315a
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 4
pop ecx
call fcn.0040277a
int3
Function at 0x41a9f5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a866

Function at 0x41adef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a430
mov eax, dword [0x432180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00418914
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ae31
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41af8d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424d30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x442358]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041bde6
mov ecx, dword [esi*4 + 0x442358]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41af86
cmp eax, dword [edi + ecx + 0x24]
jne 0x41af86
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41af86
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bde6
add esp, 0x14
test edx, edx
jl 0x41af86
jg 0x41aefc
test eax, eax
jb 0x41af86
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41af86
jl 0x41af16
cmp dword [ebp - 0x1008], eax
ja 0x41af86
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41af34
test ebx, ebx
je 0x41af6d
cmp ecx, edi
jae 0x41af6d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41af4e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41af5a
cmp byte [ecx + 1], 0xa
jne 0x41af5a
inc ecx
jmp 0x41af5a
movzx eax, al
movsx eax, byte [eax + 0x432460]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41af34
cmp edx, ebx
jne 0x41af34
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41af8b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409367
leave
ret
Function at 0x41b284
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x442358]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b2c4
cmp byte [ebx], 0xa
jne 0x41b2c4
or byte [eax + edi + 0x28], 4
jmp 0x41b2c9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b3c7
mov al, byte [edx]
cmp al, 0x1a
je 0x41b3a9
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b2f8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b31d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b327
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41b2da
jmp 0x41b3c7
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b3a4
cmp dword [ebp - 0xc], 0
je 0x41b3a4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x442358]
test byte [eax + edi + 0x28], 0x48
je 0x41b37e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b369
mov byte [esi], dl
jmp 0x41b37a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x442358]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b3c7
cmp byte [ebp - 1], 0xa
jne 0x41b38d
cmp esi, ebx
jne 0x41b38d
mov byte [esi], 0xa
jmp 0x41b3c6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041be04
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b3c7
mov byte [esi], 0xd
jmp 0x41b3c6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x442358]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b3c3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b3c7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b3d0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x442358]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b413
cmp word [esi], dx
jne 0x41b413
or byte [edi + eax + 0x28], 4
jmp 0x41b418
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41b56b
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41b54b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b45a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b490
cmp eax, edx
jae 0x41b49c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41b432
jmp 0x41b56b
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b547
cmp dword [ebp - 0x14], 0
je 0x41b547
mov eax, dword [ebx*4 + 0x442358]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b51f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b4e8
mov word [esi], cx
jmp 0x41b51b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x442358]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x442358]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x442358]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b56b
pop ebx
cmp word [ebp - 4], bx
jne 0x41b530
cmp esi, dword [ebp + 0xc]
jne 0x41b530
mov word [esi], bx
jmp 0x41b568
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041be04
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b56b
push 0xd
jmp 0x41b564
mov ecx, dword [ebx*4 + 0x442358]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b562
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b56b
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4053b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], ebx
push eax
mov edi, edx
mov dword [ebp - 0xc], 1
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40546f
push dword [ebp - 0x14]
call fcn.004e7e21
push dword [ebp - 0x14]
mov edi, eax
push 0
push edi
call fcn.004e0850
add esp, 0x10
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test edi, edi
je 0x40546c
mov bl, 1
mov edx, edi
sub esi, edi
nop dword [eax + eax]
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], cx
test cx, cx
jne 0x405440
push edi
call fcn.004e4113
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x100
push eax
push 0x20019
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4054be
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x405564
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x100
push eax
push 0x20119
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405513
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x405564
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x100
push eax
push 0x20219
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405564
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
Function at 0x405580
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x405645
test edi, edi
je 0x405645
mov dword [ebp - 8], 0
call fcn.00403f50
test al, al
lea eax, [ebp - 8]
push eax
je 0x4055e4
push 0xf013f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405645
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4055d7
jmp 0x40560b
push 0xf003f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405645
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405600
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push str.DriveVCDSName
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret

Function at 0x407320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
pop ebx
cmp ecx, dword [ebp + 0xc]
je 0x40739f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40737e
jle 0x407383
movzx eax, ax
or eax, 0x80070000
jmp 0x407383
mov eax, 0x8007054f
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40738c
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4073ac
mov dword [eax], 0
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407600
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
test eax, eax
jne 0x407616
mov eax, dword [ebp + 8]
mov dword [eax], 0x8007139f
pop ebp
ret 0x38
push edi
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0x28]
push 1
push 2
push 1
push 0xf01ff
push 0x55ace0
push 0x55ace0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x407676
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
je 0x407667
jle 0x40766c
mov eax, dword [ebp + 8]
movzx ecx, cx
or ecx, 0x80070000
pop edi
mov dword [eax], ecx
pop ebp
ret 0x38
mov ecx, 0x8007054f
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
pop ebp
ret 0x38
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4076a3
mov eax, dword [esi]
test eax, eax
je 0x40768b
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp + 8]
mov dword [esi], edi
mov dword [esi + 4], 0
pop esi
mov dword [eax], 0
pop edi
pop ebp
ret 0x38
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp + 8]
pop esi
pop edi
mov dword [eax], 0
pop ebp
ret 0x38
Function at 0x4082c0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52376d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
mov edi, dword [ebx + 8]
mov dword [ebp - 0x2c], edi
cmp dword [edi + 4], 0
je 0x4083e0
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
xorps xmm0, xmm0
push 0x544828
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsWow64Process
push eax
mov dword [ebp - 0x28], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
call edi
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
call fcn.004950a0
test al, al
je 0x40838d
push 0x10
call fcn.004d7fcd
add esp, 4
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 1
mov ecx, eax
movups xmmword [eax], xmm0
call fcn.00407720
mov esi, eax
mov edi, dword [ebp - 0x2c]
mov ecx, 0x544e38
mov eax, dword [edi]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4083ae
mov ecx, edi
call fcn.00407b10
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4083e0
mov dword [ebp - 4], 3
cmp dword [esi + 4], 0
je 0x4083ce
push dword [esi + 0xc]
mov eax, dword [esi + 8]
call eax
push 0x10
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004d8000
add esp, 8
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push edi
call fcn.00407f30
mov eax, dword [ebp - 0x34]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40acd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
mov ebx, ecx
xorps xmm0, xmm0
push edi
push 0x2c
push 0
movups xmmword [ebx], xmm0
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call fcn.004e0850
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x28], 1
cmp word [esi], 0x22
mov word [ebp - 0x24], ax
jne 0x40adf5
lea ebx, [esi + 2]
push 0x22
push ebx
call fcn.004e0671
add esp, 8
test eax, eax
je 0x40adec
xor ecx, ecx
lea edi, [eax + 4]
cmp word [eax + 2], 0x20
cmovne edi, ecx
sub eax, esi
sar eax, 1
dec eax
push eax
push ebx
lea ecx, [ebp - 0x9c]
call fcn.00405730
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x30]
call fcn.00405b90
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x40ad94
lea ecx, [ebp - 0x90]
cmp eax, ecx
je 0x40ad94
push eax
call fcn.004e4113
add esp, 4
mov ebx, dword [ebp - 0x70]
push 0x38
lea eax, [ebp - 0x68]
mov dword [ebp - 0x6c], 0x3c
push 0
push eax
call fcn.004e0850
mov eax, dword [ebp - 0x30]
add esp, 0xc
test eax, eax
mov dword [ebp - 0x68], 0x40
mov ecx, 0x544e38
mov dword [ebp - 0x58], edi
cmovne ecx, eax
mov dword [ebp - 0x60], 0x544804
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x5c], ecx
push eax
mov dword [ebp - 0x50], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40ae58
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40ae65
xor edi, edi
push 0xffffffffffffffff
jmp 0x40ad5e
lea eax, [esi + 2]
push 0x20
push eax
call fcn.004e0671
add esp, 8
lea ecx, [ebp - 0x9c]
test eax, eax
je 0x40ae52
lea edi, [eax + 2]
sub eax, esi
sar eax, 1
push eax
push esi
call fcn.00405730
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x30]
call fcn.00405b90
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x40ad97
lea ecx, [ebp - 0x90]
cmp eax, ecx
je 0x40ad97
push eax
call fcn.004e4113
add esp, 4
jmp 0x40ad97
xor edi, edi
push 0xffffffffffffffff
jmp 0x40ae15
mov eax, dword [ebp - 0x34]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, eax
mov dword [ebx], ecx
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
test eax, eax
je 0x40ae7f
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x40ae7f
push eax
call fcn.004e4113
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f2d0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x41c]
push eax
xor esi, esi
mov dword [ebp - 0x418], 1
push esi
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 0
push eax
push 0x545e08
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
xor bl, bl
call edi
test eax, eax
jne 0x40f370
push dword [ebp - 0x41c]
call fcn.004e7e21
push dword [ebp - 0x41c]
mov esi, eax
push 0
push esi
call fcn.004e0850
add esp, 0x10
mov dword [ebp - 0x418], 1
lea eax, [ebp - 0x41c]
push eax
push esi
lea eax, [ebp - 0x418]
push eax
push 0x545e08
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call edi
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004e0850
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test esi, esi
je 0x40f407
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f3b0
sub ecx, edx
sar ecx, 1
je 0x40f407
lea eax, [ebp - 0x414]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x40f3ed
test cx, cx
je 0x40f3e9
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x40f3ed
add esi, 4
add eax, 4
test cx, cx
jne 0x40f3c7
xor eax, eax
jmp 0x40f3f2
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f409
push 0x545e08
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call edi
mov bl, 1
cmp byte [ebp + 8], 0
je 0x40f468
test bl, bl
je 0x40f479
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f420
sub ecx, edx
sar ecx, 1
lea eax, [ecx*4 + 4]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0x545e08
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret 4
push 0x545e08
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret 4