joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1017484]
and word [ebp - 0x20c], 0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], ecx
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x1004d3c
inc ebx
inc ebx
jmp 0x1004d42
lea ebx, [ebp - 0x20c]
lea ecx, [ebp - 0x20c]
mov eax, ebx
sub eax, ecx
sar eax, 1
sub esi, eax
push esi
push 0x10017ec
mov dword [ebp - 0x210], esi
mov esi, dword [sym.imp.msvcrt.dll_wcsncpy]
push ebx
call esi
mov eax, dword [ebp - 0x214]
add esp, 0xc
push dword [ebp - 0x218]
push 0x1004176
push dword [eax]
lea eax, [ebp - 0x20c]
push 1
push dword [ebp + 8]
push eax
call fcn.010061d8
mov edi, eax
test edi, edi
jl 0x1004ee3
cmp dword [ebp + 8], 0
mov eax, dword [ebp - 0x214]
mov dword [eax + 0xa0], 1
je 0x1004ee3
push dword [ebp - 0x210]
push 0x10017d4
push ebx
call esi
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.01005bb0
mov edi, eax
test edi, edi
jl 0x1004ee3
push dword [ebp - 0x210]
push 0x10017bc
push ebx
call esi
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.01005bb0
mov edi, eax
test edi, edi
jl 0x1004ee3
push dword [ebp - 0x210]
push 0x10017a4
push ebx
call esi
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.01005bb0
mov edi, eax
test edi, edi
jl 0x1004ee3
push dword [ebp - 0x210]
push 0x100178c
push ebx
call esi
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.01005bb0
mov edi, eax
test edi, edi
jl 0x1004ee3
push dword [ebp - 0x210]
push 0x1001774
push ebx
call esi
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.01005bb0
mov edi, eax
test edi, edi
jl 0x1004ee3
push dword [ebp - 0x210]
push 0x1001758
push ebx
call esi
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.01005bb0
mov edi, eax
test edi, edi
jl 0x1004ee3
push dword [ebp - 0x210]
push 0x1001738
push ebx
call esi
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004ed8
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.01005bb0
mov edi, eax
test edi, edi
jl 0x1004ee3
call fcn.01005f8c
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01012bde
leave
ret 8
Function at 0x1005427
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1017484]
push ebx
mov dword [ebp - 4], eax
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
push 8
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1005548
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
jne 0x100553a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100553a
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
jne 0x10054b5
xor eax, eax
jmp 0x1005546
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x1c]
call edi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x100552b
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x100552b
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x1005522
lea eax, [esi + 4]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100551b
add dword [ebp - 0x14], 8
inc edi
cmp edi, dword [esi]
jb 0x10054fe
jmp 0x1005522
mov dword [ebp - 0x10], 1
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01012bde
leave
ret
Function at 0x1005558
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1017484]
push esi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call sub.MIGISM.dll_IsmGetTempStorage
test eax, eax
je 0x10056b5
push edi
push 0x5c
pop edi
cmp word [ebp - 0x20c], di
lea eax, [ebp - 0x20c]
jne 0x10055e7
push 0x1001890
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
add esp, 0x10
test eax, eax
je 0x10055fa
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x10055fa
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x10055fa
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
jmp 0x10055ef
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x10055fa
and word [eax + 2], 0
push 0x100187c
push 0x1001860
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
je 0x100563a
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
call eax
test eax, eax
jne 0x1005695
jmp 0x10056b5
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x10056af
mov eax, dword [ebp - 0x21c]
imul eax, dword [ebp - 0x220]
cdq
mov ecx, eax
mov eax, dword [ebp - 0x218]
mov esi, edx
cdq
push edx
push eax
push esi
push ecx
call fcn.01013000
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], edx
cmp dword [ebp - 0x210], 0
jne 0x10056b5
cmp dword [ebp - 0x214], 0x100000
jae 0x10056b5
xor eax, eax
inc eax
jmp 0x10056b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.01012bde
leave
ret
Function at 0x100717e
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x1017484]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x62c], eax
mov eax, dword [ebp + 0x14]
test eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x628], edi
mov dword [ebp - 0x624], eax
je 0x10071bb
cmp word [eax], 0
jne 0x10071c1
mov dword [ebp - 0x624], edi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x620], 0x104
sub dword [ebp - 0x620], eax
push dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push eax
call esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call edi
cmp dword [ebp + 0x20], 0
jne 0x1007229
push dword [ebp - 0x620]
lea eax, [ebp - 0x414]
push dword [ebp - 0x62c]
push eax
call esi
push dword [ebp - 0x624]
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1007272
push 0x104
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [ebp - 0x620]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0x628]
lea eax, [ebp - 0x20c]
push eax
call edi
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x1007293
push dword [ebp - 0x624]
lea eax, [ebp - 0x20c]
push eax
push dword [0x101a3b8]
call fcn.01014a72
jmp 0x10072a8
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp + 0x24], esi
pop edi
pop esi
jne 0x10072b2
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.01012bde
leave
ret 0x20
Function at 0x1007f65
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x1017484]
and dword [ebp - 0x2b8], 0
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 8
mov dword [ebp - 4], eax
xor eax, eax
and dword [ebp - 0x2dc], eax
mov ecx, 0xac
lea edi, [ebp - 0x2b4]
rep stosd dword es:[edi], eax
pop ecx
push 0x4011
lea edi, [ebp - 0x2d8]
push 0x2b4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2b8]
push eax
push 0x80
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x1008004
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2d8], eax
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2c8], eax
lea eax, [ebp - 0x2dc]
push eax
push 0
push 0x40c
push esi
mov dword [ebp - 0x2dc], 6
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1008007
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01012bde
leave
ret 0xc

Function at 0x100801a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1017484]
mov dword [ebp - 4], eax
mov eax, dword [0x1001a44]
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [0x1001a48]
push edi
xor edi, edi
mov dword [ebp - 8], eax
xor esi, esi
lea eax, [esi + 0x41]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x1008057
inc edi
inc esi
cmp esi, 0x1a
jb 0x1008040
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.01012bde
leave
ret

Function at 0x1008070
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1017484]
mov dword [ebp - 4], eax
mov eax, dword [0x1002370]
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [0x1002374]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
xor esi, esi
lea eax, [esi + 0x41]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x10080b4
mov eax, edi
dec edi
test eax, eax
je 0x10080cc
inc esi
cmp esi, 0x1a
jb 0x1008097
mov ax, 0x30
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01012bde
leave
ret 4
mov ax, word [ebp - 0xc]
jmp 0x10080be

Function at 0x100819d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1017484]
mov dword [ebp - 4], eax
mov ax, word [ebp + 8]
cmp ax, 0x41
jb 0x10081bd
cmp ax, 0x5a
jbe 0x10081c9
cmp ax, 0x61
jb 0x10081f8
cmp ax, 0x7a
ja 0x10081f8
mov ecx, dword [0x1001a44]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x1001a48]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x10081f3
cmp eax, 5
jne 0x10081f8
xor eax, eax
inc eax
jmp 0x10081fa
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01012bde
leave
ret 4
Function at 0x100820b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1017484]
mov dword [ebp - 4], eax
mov ax, word [ebp + 8]
cmp ax, 0x41
jb 0x100822b
cmp ax, 0x5a
jbe 0x1008237
cmp ax, 0x61
jb 0x1008265
cmp ax, 0x7a
ja 0x1008265
mov ecx, dword [0x1001a44]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x1001a48]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1008265
cmp eax, 1
je 0x1008265
xor eax, eax
inc eax
jmp 0x1008267
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01012bde
leave
ret 4

Function at 0x10082ce
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1017484]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
cmp word [ebp - 0x20a], 0x3a
push 0x5c
pop ebx
jne 0x1008318
cmp word [ebp - 0x208], bx
jne 0x1008318
lea eax, [ebp - 0x206]
jmp 0x1008359
cmp word [ebp - 0x20c], bx
jne 0x1008353
cmp word [ebp - 0x20a], bx
jne 0x1008353
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x10083be
add eax, 2
push ebx
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x10083be
inc eax
inc eax
je 0x10083be
jmp 0x100835f
lea eax, [ebp - 0x20c]
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
push ebx
push eax
call esi
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x10083be
and word [edi], 0
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov dword [ebp - 0x210], eax
jne 0x100839f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10083ee
mov dword [ebp - 0x210], 1
mov word [edi], bx
inc edi
inc edi
je 0x10083b5
push ebx
add edi, 2
push edi
call esi
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x100836b
cmp dword [ebp - 0x210], 0
je 0x10083ee
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov dword [ebp - 0x210], eax
jne 0x10083ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10083ee
mov dword [ebp - 0x210], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
call fcn.01012bde
leave
ret 4
Function at 0x1009113
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x1017484]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
mov dword [ebp - 0x62c], ecx
mov ecx, 0x104
mov dword [ebp - 0x620], 0x80004005
mov dword [ebp - 0x634], ecx
mov dword [ebp - 0x638], ecx
mov dword [ebp - 0x624], 1
jne 0x1009166
lea ecx, [eax + 2]
cmp word [ecx], 0x2e
je 0x1009183
push eax
lea eax, [ebp - 0x61a]
push eax
mov word [ebp - 0x61c], 0x2e
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x61c]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push edi
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x624]
push eax
push 0
push ecx
mov edi, 0x80000000
push edi
call ebx
test eax, eax
jne 0x10092ac
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x624]
push eax
push 0x10024c4
lea eax, [ebp - 0x414]
push eax
push edi
call ebx
test eax, eax
jne 0x1009281
cmp word [ebp - 0x20c], 0x40
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x628], eax
jne 0x100920b
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x628], eax
push 0x2c
push dword [ebp - 0x628]
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x1009281
and word [eax], 0
inc eax
inc eax
je 0x1009281
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
mov esi, eax
test esi, esi
pop ecx
jge 0x1009281
push 2
push 0
push dword [ebp - 0x628]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100927c
push dword [ebp - 0x630]
neg esi
push dword [ebp - 0x62c]
push esi
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
xor ecx, ecx
test eax, eax
setg cl
and dword [ebp - 0x620], 0
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jne 0x10092ab
mov edi, 0x80000000
lea eax, [ebp - 0x630]
push eax
push dword [ebp - 0x62c]
lea eax, [ebp - 0x624]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push edi
call ebx
test eax, eax
jne 0x10092ab
and dword [ebp - 0x620], eax
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x620]
pop edi
pop ebx
call fcn.01012bde
leave
ret 0xc
Function at 0x1009525
Capabilities:
Get common file path
Terminate process

Disassembly:
push 0x458
push 0x1002590
call fcn.01012f9c
mov eax, dword [0x1017484]
mov dword [ebp - 0x1c], eax
push 0x1001860
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x454], eax
xor ebx, ebx
cmp eax, ebx
je 0x10096c5
push 0x1002570
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov edi, eax
push 0x1002560
push dword [ebp - 0x454]
call esi
mov dword [ebp - 0x45c], eax
push 0x1002550
push dword [ebp - 0x454]
call esi
mov dword [ebp - 0x460], eax
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x10096bc
cmp eax, ebx
je 0x10096bc
cmp dword [ebp - 0x45c], ebx
je 0x10096bc
push ebx
push 2
call edi
mov dword [ebp - 0x458], eax
cmp eax, 0xffffffff
je 0x10096bc
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x464], eax
cmp eax, ebx
je 0x10095f7
cmp eax, 0xf7
jae 0x10095f7
push 0x1002534
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x1009609
push 0x1002504
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x450], 0x22c
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x458]
call dword [ebp - 0x45c]
test eax, eax
je 0x10096b0
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push 0x1002534
lea eax, [ebp - 0x42c]
push eax
call edi
test eax, eax
je 0x100965a
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x42c]
push eax
call edi
test eax, eax
jne 0x1009699
push dword [ebp - 0x448]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x468], esi
cmp esi, ebx
je 0x1009699
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov dword [0x101a3d8], eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10096b0
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x458]
call dword [ebp - 0x460]
test eax, eax
jne 0x1009634
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
call fcn.010096d5
mov ecx, dword [ebp - 0x1c]
call fcn.01012bde
call fcn.01012fd7
ret 0xc

Function at 0x10097d8
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x10025b8
push 0x80000001
mov dword [ebp - 8], 0x30
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100982f
cmp dword [ebp - 4], eax
je 0x100982f
push 4
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x100259c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 0xc
Function at 0x1009838
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor edi, edi
push edi
push 0x1002640
push 0x80000001
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10098f5
cmp dword [ebp - 4], edi
je 0x10098f5
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
mov esi, 0x1002628
push esi
push dword [ebp - 4]
call ebx
cmp eax, edi
je 0x100989c
cmp eax, 0xea
jne 0x10098ea
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10098ea
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x10098e3
cmp dword [ebp - 0xc], 3
jne 0x10098e3
cmp dword [ebp - 8], 0x24
jne 0x10098e3
and dword [edi + 0x20], 0xfffffffd
push dword [ebp - 8]
push edi
push 3
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop edi
leave
ret 0xc
Function at 0x1009cd3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x10026c8
xor ebx, ebx
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1009d58
cmp dword [ebp - 4], ebx
je 0x1009d58
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, 0x10026b4
push edi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x1009d4d
cmp dword [ebp - 0xc], 4
jne 0x1009d4d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1009d4d
mov eax, dword [ebp - 0x10]
shr eax, 3
and eax, 1
mov dword [0x101a3f4], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1009d62
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x10026c8
xor ebx, ebx
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1009df9
cmp dword [ebp - 4], ebx
je 0x1009df9
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, 0x10026b4
push edi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x1009dee
cmp dword [ebp - 0xc], 4
jne 0x1009dee
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1009dee
cmp dword [0x101a3f4], ebx
je 0x1009dde
test byte [ebp - 0x10], 8
jne 0x1009dee
jmp 0x1009de4
test byte [ebp - 0x10], 8
je 0x1009dee
mov dword [0x101a3f0], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1009e03
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
xor ebx, ebx
cmp dword [0x101a3d8], ebx
je 0x1009e8a
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
push 0x1002754
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x1009e55
push 0x100273c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1009e4e
push 1
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x200
push ebx
push ebx
push ebx
push dword [0x101a3d8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1009e88
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc