joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd66f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xd66ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xd67035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00d66e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xd66fc5
mov edi, 0xd818b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xd67035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00d66e00
add edi, 4
add esp, 0xc
cmp edi, 0xd818c0
jb 0xd67000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xd67070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00d6d082
mov esi, eax
add esp, 8
test esi, esi
je 0xd67107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xd67102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00d6c946
add esp, 8
test eax, eax
je 0xd670e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xd670e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00d6c946
add esp, 8
test eax, eax
jne 0xd670c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xd67102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xd67f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xd7c9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xd68002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00d6bdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xd68002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00d636e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00d6c20b
push 0x10
call fcn.00d6c1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xd67fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00d581c0
jmp 0xd67fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00d67b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xd67ff0
mov ecx, edi
call fcn.00d582c0
push edi
call fcn.00d6c1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xd68021
inc ebx
cmp ebx, 0x20
jb 0xd67f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xd69250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd7d808
push 0xd6d288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xd69329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xd69329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00d6c1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xd69329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xd69329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xd6932c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00d69351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xd69d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd69d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xd69d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd69d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xd69d94
push eax
push esi
call fcn.00d6c20b
add esp, 8
pop esi
ret 0x10

Function at 0xd69da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd69e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xd69e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd82320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d6bdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xd69dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xd69e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd69ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd69eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd82320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d6bdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xd69eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd69e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xd6a000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xd6a131
push esi
call fcn.00d6d145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d5c080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd6a131
push 0
push ebp
call fcn.00d5c3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d5c260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd6a08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d5c2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd6a121
push 0xd82918
push edi
call fcn.00d6b3f0
push eax
push ebx
push esi
call fcn.00d69f60
push 0xd828f8
push edi
call fcn.00d6b3f0
push eax
push ebx
push esi
call fcn.00d69f60
push 0xd828d8
push edi
call fcn.00d6b3f0
push eax
push ebx
push esi
call fcn.00d69f60
push 0xd828c0
push edi
call fcn.00d6b3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d69f60
push 0xd828a0
push edi
call fcn.00d6b3f0
push eax
push ebx
push esi
call fcn.00d69f60
push 0xd82888
push edi
call fcn.00d6b3f0
push eax
push ebx
push esi
call fcn.00d69f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xd6b1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d6b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d6b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d6b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d6b140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd6bbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd6bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd7d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd6bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd6bc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40cfd6
Capabilities:
Encode data using xor

Disassembly:
inc eax
add al, 0
add byte [ebx + 0xe832414], cl
and al, 0x83
push cs
add al, 0xeb
jp 0x40cfe4
invalid
jne 0x40cff3
push cs
mov eax, dword [esp + 0xc]
mov word [eax], 1
jmp 0x40d2bc
mov ebp, dword [esp + 0xc]
add al, ah
dec esi
mov bh, 0xb7
inc ebp
add al, 0x66
add dword [ebp], eax
lea eax, [edx - 1]
cmp eax, 2
jl 0x40d117
mov ecx, 2
add dword [ecx + 0x2de3a], 0
add byte [ecx], ch
salc
mov dword [esp + 8], esi
xor esi, esi
mov edx, 1
add bl, ch
invalid
add byte [eax], al
add byte [ebx - 0x15], al
invalid
invalid
dec edx

Function at 0x411ab6
Capabilities:
Encode data using xor

Disassembly:
and al, 0x54
add al, 0
add byte [ebx + 0x44c7242c], cl
and al, 0x3c
sbb al, 0xcf
pop ds
rol edi, 1
inc esp
and al, 0x40
add eax, 0x66d506d3
mov word [esp + 0x44], 0xd7d4
mov dword [esp + 0x46], 0
mov byte [esp + 0x4a], 0
mov dword [esp + 4], 0
inc esp
and al, 4
add byte [eax], al
add byte [eax], al
mov eax, dword [esp + 4]
cmp eax, 0xe
ja 0x411b26
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x3c]
push dword [esp + 4]
push eax
call fcn.0041333b
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x3c], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xf
jb 0x411afb
push ebp
push 0
push 0
Function at 0x445de3
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
add ebx, eax
rol ebp, 0xa
mov edx, ebx
xor edx, esi
and edx, ebp
xor edx, esi
add eax, dword [esp + 0x24]
add eax, edx
add eax, 0x5c4dd124
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 4]
rol ecx, 0xb
mov eax, dword [esp]
add al, 0x24
rol eax, 0xa
mov dword [esp], eax
mov edx, dword [esp + 0xc]
add ecx, edx
mov dword [esp + 4], ecx
not eax
or eax, dword [esp + 8]
xor eax, ecx
mov edi, edx
add edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
rol ecx, 0xd
add eax, edi
add eax, 0xa953fd4e
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x5c]
add ecx, edx
rol esi, 0xa
mov eax, ecx
xor eax, ebx
and eax, esi
xor eax, ebx
add edx, dword [esp + 0x48]
add edx, eax
add edx, 0x5c4dd124
rol edx, 0xb
add edx, ebp
rol ebx, 0xa
mov eax, ecx
not eax
or eax, edx
xor eax, ebx
add ebp, dword [esp + 0x34]
add ebp, eax
add ebp, 0x3a8103f3
fidiv word [eax + 0x6d]
rol ebp, 9
add ebp, esi
rol ecx, 0xa
mov dword [esp + 0x14], ecx
mov eax, edx
not eax
or eax, ebp
xor eax, ecx
add esi, dword [esp + 0x3c]
lea edi, [eax + esi]
add edi, 0x3a8103f3
fidiv word [eax + 0x6d]
mov ecx, dword [esp + 0x18]
rol ecx, 6
Function at 0x4010d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x40f2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40116f
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x40112d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040201c
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea esp, [esp]
lea ecx, [ebp - 0x10c]
push ecx
push str.PointBlank.exe
call edi
test eax, eax
je 0x401182
lea edx, [ebp - 0x130]
push edx
push esi
call ebx
test eax, eax
jne 0x401140
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040201c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040201c
mov esp, ebp
pop ebp
ret

Function at 0x401230
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x40f2f8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 0x114]
push str._s.
push eax
call fcn.0040202b
add esp, 0xc
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401350
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ecx, 0x40d6d4
lea eax, [ebp - 0x228]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4012b0
test dl, dl
je 0x4012ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4012b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401290
xor eax, eax
jmp 0x4012b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401330
mov ecx, 0x40d6d8
lea eax, [ebp - 0x228]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4012e4
test dl, dl
je 0x4012e0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4012e4
add eax, 2
add ecx, 2
test dl, dl
jne 0x4012c4
xor eax, eax
jmp 0x4012e9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401330
lea eax, [ebp - 0x228]
push eax
push esi
lea ecx, [ebp - 0x114]
push str._s_s
push ecx
call fcn.0040202b
add esp, 0x10
test byte [ebp - 0x254], 0x10
je 0x401323
lea edx, [ebp - 0x114]
push edx
call fcn.00401230
add esp, 4
jmp 0x401330
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x254]
push ecx
push edi
call ebx
test eax, eax
jne 0x401283
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040201c
mov esp, ebp
pop ebp
ret
Function at 0x401370
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40f2f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x410ff0
push 0xf003f
push 0
push str.SYSTEMControlSet001ControlIDConfigDBHardware_Profiles0001
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 1
push 0x40d724
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00401bc0
mov dword [ebp - 4], 0
call fcn.004011a0
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4013e7
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401aa0
push 1
mov eax, 0x40d728
lea ecx, [ebp - 0x2c]
call fcn.00401aa0
call fcn.004011a0
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401412
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401aa0
push 1
mov eax, 0x40d728
lea ecx, [ebp - 0x2c]
call fcn.00401aa0
call fcn.004011a0
mov ecx, eax
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401440
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401aa0
push 1
mov eax, 0x40d728
lea ecx, [ebp - 0x2c]
call fcn.00401aa0
call fcn.004011a0
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x401470
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401470
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401aa0
push 1
mov eax, 0x40d728
lea ecx, [ebp - 0x2c]
call fcn.00401aa0
call fcn.004011a0
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x4014a0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4014a0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401aa0
push 1
mov eax, 0x40d72c
lea ecx, [ebp - 0x2c]
call fcn.00401aa0
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x4014d1
lea eax, [ebp - 0x2c]
push 0x1f
push eax
mov eax, dword [0x410ff0]
push 1
push 0
push 0x40d730
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [0x410ff0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
jb 0x401507
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00402ba8
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040201c
mov esp, ebp
pop ebp
ret
Function at 0x401530
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40f2f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
mov esi, ecx
lea ecx, [ebp - 0x108]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x401580
push str.An_error_is_occured_when_trying_to_get_the_full_path_of_the_DLL._n
call fcn.00402aca
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040201c
mov esp, ebp
pop ebp
ret
push edi
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4015b5
push str.An_error_is_occured_when_trying_to_open_the_target_process._n
call fcn.00402aca
add esp, 4
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040201c
mov esp, ebp
pop ebp
ret
push ebx
push str._PROCESS_INJECTION__n
call fcn.00402aca
push str.Process_opened_successfully._n
call fcn.00402aca
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 8
push 0x40
push 0x3000
lea edx, [ebp - 0x108]
push edx
call ebx
inc eax
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x401614
push str.An_error_is_occured_when_trying_to_allocate_memory_in_the_target_process._n
call fcn.00402aca
add esp, 4
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040201c
mov esp, ebp
pop ebp
ret
push esi
push str.Memory_allocate_at_0x_X_n
call fcn.00402aca
add esp, 8
push 0
lea eax, [ebp - 0x108]
push eax
call ebx
inc eax
push eax
lea ecx, [ebp - 0x108]
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401649
push str.An_error_is_occured_when_trying_to_write_the_DLL_path_in_the_target_process._n
jmp 0x4015f9
push str.DLL_path_writen_successfully._n
call fcn.00402aca
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, 0xffffffff
je 0x401601
test eax, eax
je 0x401601
push str.LoadLibraryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x401686
push str.An_error_is_occured_when_trying_to_get__LoadLibraryA__address._n
jmp 0x4015f9
push ebx
push str.LoadLibraryA_address_at_0x_X_n
call fcn.00402aca
add esp, 8
push 0
push 0
push esi
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, 0xffffffff
jne 0x4016b4
push str.An_error_is_occured_when_trying_to_create_the_thread_in_the_target_process._n
jmp 0x4015f9
push str.DLL_Injected___n
call fcn.00402aca
mov ecx, dword [ebp - 4]
add esp, 4
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040201c
mov esp, ebp
pop ebp
ret