joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa8af90
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 0xa8affb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xa8b035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00a8ae00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xa8afc5
mov edi, 0xaa58b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xa8b035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00a8ae00
add edi, 4
add esp, 0xc
cmp edi, 0xaa58c0
jb 0xa8b000
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 0xa8b070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00a91082
mov esi, eax
add esp, 8
test esi, esi
je 0xa8b107
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 0xa8b102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00a90946
add esp, 8
test eax, eax
je 0xa8b0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xa8b0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00a90946
add esp, 8
test eax, eax
jne 0xa8b0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xa8b102
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 0xa8bf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xaa09fb
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 0xa8c002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00a8fdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xa8c002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00a876e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00a9020b
push 0x10
call fcn.00a901d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xa8bfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00a7c1c0
jmp 0xa8bfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00a8bb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xa8bff0
mov ecx, edi
call fcn.00a7c2c0
push edi
call fcn.00a901c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xa8c021
inc ebx
cmp ebx, 0x20
jb 0xa8bf3e
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 0xa8d250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xaa1808
push 0xa91288
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 0xa8d329
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 0xa8d329
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.00a901d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xa8d329
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 0xa8d329
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 0xa8d32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00a8d351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa8dd20
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 0xa8dd58
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 0xa8dd60
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 0xa8dd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xa8dd94
push eax
push esi
call fcn.00a9020b
add esp, 8
pop esi
ret 0x10

Function at 0xa8dda0
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 0xa8de22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xa8de15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xaa6320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a8fdff
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 0xa8ddda
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 0xa8de30
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 0xa8dec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xa8deb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xaa6320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a8fdff
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 0xa8deab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xa8de6a
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 0xa8e000
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 0xa8e131
push esi
call fcn.00a91145
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.00a80080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa8e131
push 0
push ebp
call fcn.00a803a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a80260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa8e08b
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.00a802f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa8e121
push 0xaa6918
push edi
call fcn.00a8f3f0
push eax
push ebx
push esi
call fcn.00a8df60
push 0xaa68f8
push edi
call fcn.00a8f3f0
push eax
push ebx
push esi
call fcn.00a8df60
push 0xaa68d8
push edi
call fcn.00a8f3f0
push eax
push ebx
push esi
call fcn.00a8df60
push 0xaa68c0
push edi
call fcn.00a8f3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a8df60
push 0xaa68a0
push edi
call fcn.00a8f3f0
push eax
push ebx
push esi
call fcn.00a8df60
push 0xaa6888
push edi
call fcn.00a8f3f0
push eax
push ebx
push esi
call fcn.00a8df60
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 0xa8f1b0
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.00a8f140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a8f140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a8f140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a8f140
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 0xa8fbfa
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 0xa8fc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xaa187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa8fc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa8fc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x1003e608
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
test edi, edi
je 0x1003e6cd
lea eax, [ebp - 0x28]
xor esi, esi
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1003e6cd
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
push 3
pop edx
mov dword [ebx], eax
mov dword [ecx], edx
cmp dword [ebp - 0xc], esi
je 0x1003e660
push 8
pop esi
jmp 0x1003e6c9
cmp eax, dword [ebp + 0xc]
jbe 0x1003e66c
mov esi, 0xea
jmp 0x1003e6c9
push esi
push 0x8100080
push edx
push esi
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1003e693
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1003e6c9
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003e6b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1003e6c2
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x2c]
je 0x1003e6c2
mov esi, 0x3e3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1003e6d0
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003f808
Capabilities:
Link many functions at runtime

Disassembly:
push 0xc
mov eax, 0x10167cd4
call fcn.101673a2
mov esi, ecx
mov dword [ebp - 0x14], esi
push 1
push 0x10018be0
lea ecx, [esi + 0x18]
call fcn.1003f4ac
xor edi, edi
push 0x10018bfc
mov dword [ebp - 4], edi
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10018c14
push dword [esi + 0x1c]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10018c2c
push dword [esi + 0x1c]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10018c44
push dword [esi + 0x1c]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10018c60
push dword [esi + 0x1c]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10018c7c
push dword [esi + 0x1c]
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x14], eax
cmp dword [esi], edi
je 0x1003f8b6
cmp dword [esi + 4], edi
je 0x1003f8b6
cmp dword [esi + 8], edi
je 0x1003f8b6
cmp dword [esi + 0xc], edi
je 0x1003f8b6
cmp dword [esi + 0x10], edi
je 0x1003f8b6
test eax, eax
je 0x1003f8b6
mov eax, esi
call fcn.10167370
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1003f8cb
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1003f8f1
test byte [eax + 0x44], 1
je 0x1003f8f1
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0xa
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 0x10]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1004011a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x10167df7
call fcn.101673a2
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1005db8f
cmp dword [ebp - 0x10], ebx
je 0x10040150
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push 0x10018cf0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jle 0x1004017d
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1004019e
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1004028f
test byte [eax + 0x44], 1
jne 0x1004027b
jmp 0x1004028f
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], 0
je 0x100401b0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x24]
push eax
push 0x18
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test esi, esi
jne 0x10040219
cmp dword [ebp - 0x18], 4
jne 0x100401ea
cmp dword [ebp - 0x24], 4
jne 0x100401ea
cmp dword [ebp - 0x1c], eax
jmp 0x1004021c
mov eax, dword [0x101973c0]
mov esi, 0x8000ffff
cmp eax, 0x101973c0
je 0x1004028f
test byte [eax + 0x44], 1
je 0x1004028f
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0x1a
jmp 0x10040289
cmp esi, 2
je 0x10040264
test esi, esi
jle 0x1004022d
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10040251
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1004028f
test byte [eax + 0x44], 1
je 0x1004028f
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0x1b
jmp 0x10040289
cmp dword [ebp - 0x10], 0
je 0x10040260
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x10040275
cmp dword [ebp - 0x10], 0
je 0x10040273
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
call fcn.10167370
ret
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0x19
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 0x20]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x100402a6
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xc
mov eax, 0x10167e22
call fcn.101673a2
mov bl, dl
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1005db8f
cmp dword [ebp - 0x10], 0
je 0x100402e0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
push 0x10018cf0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jle 0x1004030a
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1004032b
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10040410
test byte [eax + 0x44], 1
jne 0x100403fc
jmp 0x10040410
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x1004033e
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x100403a8
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push 0
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jle 0x1004036e
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x100403e7
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10040396
test byte [eax + 0x44], 1
je 0x10040396
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0x1d
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 0x14]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
jmp 0x10040420
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jle 0x100403c3
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x100403e7
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10040410
test byte [eax + 0x44], 1
je 0x10040410
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0x1e
jmp 0x1004040a
cmp dword [ebp - 0x10], 0
je 0x100403f6
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10167370
ret
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0x1c
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 0x18]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x100410c4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
mov ebx, edx
push esi
push 0x8100080
push 2
push esi
push esi
push 0x40000000
push ecx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
test eax, eax
je 0x10041118
cmp eax, 0xffffffff
je 0x10041118
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
push esi
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10041118
cmp dword [ebp - 4], edi
je 0x1004112d
mov esi, 0x80004004
jmp 0x1004112d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004112d
movzx esi, si
or esi, 0x80070000
lea ecx, [ebp - 8]
call fcn.1003f382
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10041140
Capabilities:
Delete file
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea ebx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x10041150
sub edi, ebx
sar edi, 1
lea eax, [edi*2 + 2]
push eax
push dword [ebp + 8]
push 1
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x10041195
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jg 0x1004118c
mov esi, edi
jmp 0x10041195
movzx esi, di
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100420bc
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov edi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
mov esi, ebx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp eax, 0x104
jb 0x1004210f
mov esi, 0x8007007a
jmp 0x1004214c
test eax, eax
jne 0x10042131
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004212a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x10042131
mov esi, 0x80004005
test esi, esi
js 0x1004214c
push 0x10018fb0
mov edx, 0x104
lea ecx, [ebp - 0x210]
call fcn.1003f209
mov esi, eax
push 0x410
lea eax, [ebp - 0x620]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
js 0x1004225b
mov eax, 0x10018bdc
cmp byte [ebp + 0xc], bl
jne 0x10042178
mov eax, 0x10018fe0
push edi
push eax
lea eax, [ebp - 0x210]
push eax
push 0x10018fe8
lea eax, [ebp - 0x620]
push 0x208
push eax
call fcn.1003f277
mov esi, eax
add esp, 0x18
test esi, esi
js 0x1004225b
xor eax, eax
lea edi, [ebp - 0x630]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x678]
pop edi
push edi
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x678], edi
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x678]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10042246
push 0xea60
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x10042217
cmp eax, 0x102
jne 0x1004222c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004222c
movzx esi, si
or esi, 0x80070000
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004225b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004225b
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
ret 8