joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102c8c1
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
and dword [ebp - 0x6c], 0
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 4], 0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x68
lea eax, [ebp - 0x6c]
push eax
push 0x33
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x102c901
cmp dword [ebp - 4], 0
jne 0x102c901
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret

Function at 0x102d516
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.01014810
push dword [ebp + 8]
xor edi, edi
lea eax, [ebp - 0x14]
push 0x1006440
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], 4
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call fcn.010157db
mov ebx, eax
add esp, 0xc
cmp ebx, edi
jge 0x102d57e
mov eax, dword [section..data]
cmp eax, section..data
je 0x102d5de
test byte [eax + 0x1c], 1
je 0x102d5de
push ebx
push 0x1006378
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x102d5de
lea ecx, [ebp - 0x14]
call fcn.01015d45
push eax
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x102d5a1
mov dword [esi + 0x18], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x18
push 0x1006418
push 0x1006388
push 0x80000001
call dword [sym.imp.KERNEL32.dll_RegGetValueW]
test eax, eax
jne 0x102d5ce
cmp dword [ebp - 4], edi
setne al
mov dword [esi + 0x1c], eax
xor ebx, ebx
cmp dword [ebp + 8], edi
je 0x102d5de
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
call fcn.01014822
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x102d81e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
call fcn.01014810
xor eax, eax
mov esi, 0x100646c
push esi
lea ecx, [ebp - 0x224]
mov word [ebp - 0x20c], ax
call fcn.01014c4a
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x102d8a0
mov eax, dword [section..data]
cmp eax, section..data
je 0x102da06
test byte [eax + 0x1c], 1
je 0x102da06
push edi
push 0x1006378
push 0x31
jmp 0x102d9fb
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
push 3
push eax
push eax
push eax
push 0x1005ff0
push 0x80000001
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102d9cb
xor edi, edi
cmp dword [ebp - 0x210], edi
je 0x102d9cb
cmp dword [ebp - 0x218], 2
jne 0x102d961
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push 2
lea ecx, [ebx + 4]
mov dword [ebp - 0x214], 0x104
call fcn.01015d45
push eax
push edi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_RegGetValueW]
test eax, eax
jne 0x102d961
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x224]
push 0x1001764
push eax
call fcn.010157db
mov edi, eax
add esp, 0x10
test edi, edi
jge 0x102d961
mov eax, dword [section..data]
cmp eax, section..data
je 0x102da06
test byte [eax + 0x1c], 1
je 0x102da06
push edi
push 0x1006378
push 0x33
jmp 0x102d9fb
lea ecx, [ebp - 0x224]
call fcn.0101482f
add eax, eax
push eax
lea ecx, [ebp - 0x224]
call fcn.01015d45
push eax
push 1
xor edi, edi
push edi
lea ecx, [ebx + 4]
call fcn.01015d45
push eax
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
test eax, eax
je 0x102da06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x102d9ad
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x102da06
test byte [eax + 0x1c], 1
je 0x102da06
push edi
push 0x1006378
push 0x34
jmp 0x102d9fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x102d9df
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x102da06
test byte [eax + 0x1c], 1
je 0x102da06
push edi
push 0x1006378
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
cmp dword [ebp - 0x210], 0
je 0x102da22
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
and dword [ebp - 0x210], 0
lea ecx, [ebp - 0x224]
call fcn.01014822
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010084d5
leave
ret
Function at 0x102fa21
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, 0x800
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0xa10]
push eax
mov edi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0xa10]
push eax
push dword [edi + 0x10c]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x102faed
cmp dword [ebp - 0x210], esi
ja 0x102faed
xor esi, esi
test dword [ebp - 0x210], 0xfffffffc
jbe 0x102fb11
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + esi*4 - 0xa10]
push dword [edi + 0x10c]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x102fad4
lea eax, [ebp - 0x20c]
push eax
call fcn.010162c4
test eax, eax
je 0x102fad4
push 0x1006648
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x102fae4
mov eax, dword [ebp - 0x210]
inc esi
shr eax, 2
cmp esi, eax
jb 0x102fa91
jmp 0x102fb11
mov eax, dword [ebp + esi*4 - 0xa10]
jmp 0x102fb13
mov eax, dword [section..data]
cmp eax, section..data
je 0x102fb11
test byte [eax + 0x1c], 1
je 0x102fb11
push 0x1006638
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010084d5
leave
ret
Function at 0x102fc62
Capabilities:
Get memory capacity

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x24], 0
push ebx
push edi
mov ebx, ecx
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
test edi, edi
jne 0x102fcb1
mov eax, dword [section..data]
cmp eax, section..data
je 0x102fca7
test byte [eax + 0x1c], 1
je 0x102fca7
push 0x1006638
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov eax, 0x80070057
jmp 0x102fd8d
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
and dword [ebp - 4], 0
and dword [ebp + 8], 0
mov dword [edi], 1
lea esi, [ebx + 0x384]
lea eax, [esi - 0x214]
push 0x1005c10
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x102fcf5
mov eax, dword [esi]
test eax, eax
je 0x102fcf5
cmp eax, dword [ebx + 0x108]
ja 0x102fd6a
lea eax, [esi - 0x214]
push 0x1005c20
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x102fd19
mov eax, dword [ebp - 0x1c]
shr eax, 0x14
add eax, 0x20
cmp eax, dword [esi]
jb 0x102fd6a
lea eax, [esi - 0x214]
push 0x1005cd4
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x102fd34
cmp dword [esi], eax
je 0x102fd6a
cmp dword [esi - 0x218], 4
jne 0x102fd4e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x103e45c]
test eax, eax
je 0x102fd4e
cmp dword [esi], eax
ja 0x102fd6f
add dword [ebp + 8], 0x18
inc dword [ebp - 4]
add esi, 0x220
cmp dword [ebp + 8], 0x1f8
jb 0x102fcd0
jmp 0x102fd8a
and dword [edi], 0
jmp 0x102fd8a
mov eax, dword [ebp - 4]
mov ecx, eax
imul ecx, ecx, 0x18
imul eax, eax, 0x220
mov ecx, dword [ecx + 0x103e45c]
mov dword [eax + ebx + 0x384], ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x102fd98
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
lea ecx, [ebp - 0x14]
call fcn.01014810
mov esi, dword [ebp + 8]
test esi, esi
jne 0x102fdea
mov eax, dword [section..data]
cmp eax, section..data
je 0x102fdd5
test byte [eax + 0x1c], 1
je 0x102fdd5
push 0x1006638
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov edi, 0x80070057
lea ecx, [ebp - 0x14]
call fcn.01014822
mov eax, edi
pop edi
pop esi
leave
ret 4
push 0x10066c4
push 0x1005f48
lea eax, [ebp - 0x14]
push 0x1003198
push eax
call fcn.010157db
mov edi, eax
add esp, 0x10
test edi, edi
jge 0x102fe32
mov eax, dword [section..data]
cmp eax, section..data
je 0x102fdda
test byte [eax + 0x1c], 1
je 0x102fdda
push edi
push 0x1006638
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x102fdda
and dword [esi], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x10
push 0x100669c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 4
call fcn.01015d45
push eax
push 0x80000001
call dword [sym.imp.KERNEL32.dll_RegGetValueW]
test eax, eax
je 0x102fea0
cmp eax, 2
je 0x102fe98
mov eax, dword [section..data]
cmp eax, section..data
je 0x102fe8e
test byte [eax + 0x1c], 1
je 0x102fe8e
push 0x1006638
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov edi, 0x80004005
jmp 0x102fdda
mov dword [esi], 1
jmp 0x102feab
xor eax, eax
cmp dword [ebp - 8], 1
setne al
mov dword [esi], eax
xor edi, edi
jmp 0x102fdda

Function at 0x102feb7
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
push edi
lea eax, [ebp - 0xc]
push eax
xor edi, edi
lea eax, [ebp - 8]
push eax
push edi
push 4
push edi
push edi
push edi
push 0x1005f48
push 0x80000001
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
je 0x102ff11
mov eax, dword [section..data]
cmp eax, section..data
je 0x102ff88
test byte [eax + 0x1c], 1
je 0x102ff88
push 0x1006638
push 0x2e
jmp 0x102ff7d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 2
push 1
push edi
push edi
push 0x10066c4
push dword [ebp - 8]
call esi
test eax, eax
je 0x102ff49
mov eax, dword [section..data]
cmp eax, section..data
je 0x102ff88
test byte [eax + 0x1c], 1
je 0x102ff88
push 0x1006638
push 0x2f
jmp 0x102ff7d
push 4
lea eax, [ebp + 8]
push eax
push 4
push edi
push 0x100669c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
test eax, eax
je 0x102ff8f
mov eax, dword [section..data]
cmp eax, section..data
je 0x102ff88
test byte [eax + 0x1c], 1
je 0x102ff88
push 0x1006638
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov ebx, 0x80004005
jmp 0x102ff91
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
je 0x102ffa4
push dword [ebp - 4]
call esi
mov dword [ebp - 4], edi
cmp dword [ebp - 8], edi
je 0x102ffae
push dword [ebp - 8]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x10303a4
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0xc]
call fcn.01014810
push 0
mov ecx, esi
call fcn.010301f5
push 0
mov ecx, esi
call fcn.0102feb7
mov ebx, 0x1006638
mov edi, section..data
test eax, eax
jge 0x10303f6
mov eax, dword [section..data]
cmp eax, edi
je 0x10303f6
test byte [eax + 0x1c], 1
je 0x10303f6
push ebx
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
lea ecx, [esi + 0xfc]
call fcn.01015d45
push eax
lea eax, [ebp - 0xc]
push 0x10066e0
push eax
call fcn.010157db
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x1030439
mov eax, dword [section..data]
cmp eax, edi
je 0x1030477
test byte [eax + 0x1c], 1
je 0x1030477
push esi
push ebx
push 0x43
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1030477
lea ecx, [ebp - 0xc]
call fcn.01015d45
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1030475
mov eax, dword [section..data]
cmp eax, edi
je 0x103046e
test byte [eax + 0x1c], 1
je 0x103046e
push ebx
push 0x44
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov esi, 0x80004005
jmp 0x1030477
xor esi, esi
lea ecx, [ebp - 0xc]
call fcn.01014822
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1030579
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [ebp - 0xc]
call fcn.01014810
lea ecx, [esi + 0xfc]
call fcn.01015d45
push eax
lea eax, [ebp - 0xc]
push 0x10066e0
push eax
call fcn.010157db
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x10305d6
mov eax, dword [section..data]
cmp eax, section..data
je 0x1030621
test byte [eax + 0x1c], 1
je 0x1030621
push esi
push 0x1006638
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1030621
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0x1006794
lea ecx, [ebp - 0xc]
call fcn.01015d45
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x103061f
push eax
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1030621
test byte [eax + 0x1c], 1
je 0x1030621
push esi
push 0x1006638
push 0x22
jmp 0x10305c9
xor esi, esi
lea ecx, [ebp - 0xc]
call fcn.01014822
mov eax, esi
pop esi
leave
ret 4
Function at 0x1030635
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
call fcn.01014810
lea ecx, [esi + 0xfc]
call fcn.01015d45
push eax
lea eax, [ebp - 0x14]
push 0x10066e0
push eax
call fcn.010157db
add esp, 0xc
test eax, eax
jge 0x1030695
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x10306f6
test byte [ecx + 0x1c], 1
je 0x10306f6
push eax
push 0x1006638
push 0x23
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x10306f1
push 4
pop esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x10
push 0x1006794
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.01015d45
push eax
push 0x80000001
call dword [sym.imp.KERNEL32.dll_RegGetValueW]
test eax, eax
jne 0x10306c9
cmp dword [ebp - 4], esi
je 0x10306f6
mov esi, dword [section..data]
cmp esi, section..data
je 0x10306f6
test byte [esi + 0x1c], 1
je 0x10306f6
push eax
call fcn.0100968c
push eax
push 0x1006638
push 0x24
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.01008600
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x14]
call fcn.01014822
mov eax, esi
pop esi
leave
ret
Function at 0x103133c
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x440], esi
call fcn.01014810
lea ecx, [ebp - 0x43c]
call fcn.01014810
xor ebx, ebx
push 0x424
lea eax, [ebp - 0x428]
push ebx
push eax
mov dword [ebp - 0x42c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x430], ebx
call fcn.010154e4
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x43c]
call fcn.0101565e
cmp eax, ebx
jge 0x10313e9
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1031585
test byte [ecx + 0x1c], 1
je 0x1031585
push eax
push 0x100686c
push 0x21
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01008600
jmp 0x1031585
push 0x10068fc
lea ecx, [ebp - 0x43c]
call fcn.01014dd1
cmp eax, ebx
jge 0x1031423
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1031585
test byte [ecx + 0x1c], 1
je 0x1031585
push eax
push 0x100686c
push 0x22
jmp 0x10313d9
lea ecx, [ebp - 0x43c]
call fcn.01015d45
push eax
lea eax, [esi + 0x434]
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x1031585
call fcn.010106e4
test eax, eax
je 0x1031585
push edi
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, ebx
jne 0x10314a7
mov eax, dword [section..data]
cmp eax, section..data
je 0x1031561
test byte [eax + 0x1c], 1
je 0x1031561
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100686c
push 0x23
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1031561
lea eax, [ebp - 0x42c]
push eax
mov esi, 0x428
push edi
mov dword [ebp - 0x42c], esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x10314ed
mov eax, dword [section..data]
cmp eax, section..data
je 0x1031561
test byte [eax + 0x1c], 1
je 0x1031561
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100686c
push 0x24
jmp 0x1031492
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x43c]
call fcn.0101565e
push 0x10068f4
lea ecx, [ebp - 0x43c]
call fcn.01015747
lea ecx, [ebp - 0x43c]
call fcn.01015d45
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x1031557
push esi
lea eax, [ebp - 0x42c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
push edi
mov dword [ebp - 0x42c], esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x103150f
jmp 0x1031561
mov dword [ebp - 0x430], 1
cmp edi, ebx
je 0x103156c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp dword [ebp - 0x430], ebx
je 0x1031585
mov eax, dword [ebp - 0x440]
mov dword [eax + 0x690], 5
lea ecx, [ebp - 0x43c]
call fcn.01014822
lea ecx, [ebp - 0x44c]
call fcn.01014822
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x430]
pop esi
xor ecx, ebp
pop ebx
call fcn.010084d5
leave
ret
Function at 0x10317cf
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x424]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
lea eax, [ebp - 0x468]
push 0
push eax
mov ebx, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x103185b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1031833
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10319a7
test byte [eax + 0x1c], 1
je 0x10319a7
push 0x100686c
push 0x15
jmp 0x1031922
cmp eax, esi
jb 0x103188a
mov edi, 0x8007007a
mov eax, dword [section..data]
cmp eax, section..data
je 0x10319a7
test byte [eax + 0x1c], 1
je 0x10319a7
push 0x100686c
push 0x16
jmp 0x1031922
lea eax, [ebp - 0x20c]
push eax
push 0x1006968
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0100878d
mov edi, eax
add esp, 0x10
test edi, edi
jge 0x10318cf
mov eax, dword [section..data]
cmp eax, section..data
je 0x10319a7
test byte [eax + 0x1c], 1
je 0x10319a7
push 0x100686c
push 0x17
jmp 0x1031922
lea eax, [ebx + 0x434]
push eax
add ebx, 0x22c
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x1006948
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100878d
mov edi, eax
xor esi, esi
add esp, 0x18
cmp edi, esi
jge 0x103192f
mov eax, dword [section..data]
cmp eax, section..data
je 0x10319a7
test byte [eax + 0x1c], 1
je 0x10319a7
push 0x100686c
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x10319a7
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x468], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10319a5
mov eax, dword [section..data]
cmp eax, section..data
je 0x103198d
test byte [eax + 0x1c], 1
je 0x103198d
push 0x100686c
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10319a1
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x10319a7
xor edi, edi
cmp dword [ebp - 0x424], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10319be
push dword [ebp - 0x424]
call esi
cmp dword [ebp - 0x420], 0
je 0x10319cf
push dword [ebp - 0x420]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010084d5
leave
ret
Function at 0x1031a26
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
mov word [ebp - 0x41c], ax
xor esi, esi
lea eax, [ebp - 0x41a]
push esi
push eax
mov dword [ebp - 0x428], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x420], esi
cmp ebx, esi
je 0x1031bd7
cmp edi, esi
je 0x1031bd7
cmp dword [ebp + 0x10], esi
je 0x1031bd7
mov esi, 0x10069a8
push esi
xor eax, eax
push ebx
mov word [edi], ax
call fcn.010327c7
cmp eax, ebx
jne 0x1031ad3
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1031aa3
sub eax, edx
sar eax, 1
lea eax, [ebx + eax*2]
push eax
push 0x10069a0
push dword [ebp + 0x10]
push edi
call fcn.0100878d
add esp, 0x10
test eax, eax
jl 0x1031bdc
jmp 0x1031bd3
lea eax, [ebp - 0x41c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1031bd3
mov esi, 0x1006998
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x41c]
mov eax, ebx
mov dword [ebp - 0x424], edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1031b09
sub eax, edx
sar eax, 1
mov dword [ebp - 0x42c], eax
xor eax, eax
mov word [ebp - 0x214], ax
mov ax, word [edi]
mov word [ebp - 0xc], ax
push 0x103
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1031baa
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1031b50
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, dword [ebp - 0x42c]
jae 0x1031baa
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.010327c7
mov esi, eax
sub esi, ebx
neg esi
sbb esi, esi
inc esi
mov dword [ebp - 0x420], esi
je 0x1031bb0
lea eax, [ebx + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10025f0
push dword [ebp + 0x10]
push dword [ebp - 0x428]
call fcn.0100878d
add esp, 0x14
test eax, eax
jl 0x1031bdc
jmp 0x1031bb0
mov esi, dword [ebp - 0x420]
mov edi, dword [ebp - 0x424]
mov ax, word [edi]
inc edi
inc edi
test ax, ax
jne 0x1031bb6
mov dword [ebp - 0x424], edi
test esi, esi
jne 0x1031bd3
cmp word [edi], si
jne 0x1031b26
xor eax, eax
jmp 0x1031bdc
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010084d5
leave
ret 0xc
Function at 0x10328d5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.010115f5