joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10056afb
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10056b81
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.100a55e0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10056b81
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x10056b76
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.100d43d9
pop ecx
pop ecx
test eax, eax
je 0x10056b91
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10056b56
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100451cc
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x10056b83

Function at 0x10056ed3
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x110
xor edi, edi
lea eax, [ebp - 0x114]
push edi
push eax
call fcn.100a55e0
add esp, 0xc
mov dword [ebp - 0x120], edi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x124], 4
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1005702d
cmp dword [ebp - 0x114], 5
jbe 0x1005702d
lea eax, [ebp - 0x11c]
push eax
push 0x20119
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x1005702d
cmp dword [ebp - 0x114], 6
jb 0x10056ff1
jne 0x10056f85
cmp dword [ebp - 0x110], 2
jb 0x10056ff1
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push edi
push str.ConsentPromptBehaviorAdmin
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push edi
push str.PromptOnSecureDesktop
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x120], edi
jne 0x10056fea
cmp dword [ebp - 0x128], edi
je 0x10056fed
xor edi, edi
inc edi
mov eax, edi
jmp 0x1005702f
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push edi
push str.EnableLUA
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp eax, dword [ebp - 0x120]
sbb eax, eax
neg eax
jmp 0x1005702f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100451cc
leave
ret
Function at 0x1005727d
Capabilities:
Terminate process

Disassembly:
push 0x20
mov eax, 0x1023da50
call fcn.10045b3f
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10057308
cmp esi, 0xffffffff
je 0x10057308
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.1005691c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10057106
add esp, 0x10
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.10021eb0
test bl, bl
je 0x10057308
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10057308
cmp byte [ebp + 0x14], 0
je 0x10057308
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x2c], 0
test esi, esi
je 0x10057326
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10057326
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
call fcn.10045ae9
ret

Function at 0x100574f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.100a55e0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
cmp dword [ebp + 8], 0
mov ecx, 0x102473cc
mov eax, str.open
mov dword [ebp - 0x38], 0x40
cmove eax, ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10057569
cmp byte [ebp + 0x18], 0
je 0x10057569
push dword [ebp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor eax, eax
test ecx, ecx
setne al
leave
ret

Function at 0x100576e8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.100a55e0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.1005769d
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x10057767
cmp dword [ebp - 0x118], ebx
jbe 0x100577ad
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x100577ad
cmp eax, 6
jne 0x10057792
cmp byte [ebp - 6], 1
jne 0x1005778d
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x10057789
sub eax, 1
je 0x10057785
push 7
jmp 0x1005778f
push 5
jmp 0x1005778f
push 3
jmp 0x1005778f
push 4
pop ebx
jmp 0x100577ad
push 0xa
pop ecx
cmp eax, ecx
jne 0x100577aa
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x100577ad
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.100451cc
leave
ret
Function at 0x10057c8c
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.100a55e0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x10057cef
cmp dword [ebp - 0x118], 2
jg 0x10057cef
mov al, 1
jmp 0x10057cf1
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100451cc
leave
ret

Function at 0x10058c6e
Capabilities:
Create thread

Disassembly:
cmp dword [0x102d9194], 0
jne 0x10058cac
push esi
mov ecx, 0x102d91c8
call fcn.10058f44
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push esi
push esi
push 0x10058b3c
push esi
push esi
mov dword [0x102d9190], eax
call fcn.100d4825
add esp, 0x18
mov dword [0x102d9194], eax
pop esi
ret
Function at 0x1005e332
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x3c
mov eax, 0x1023fa01
call fcn.10045b3f
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x1005e355
xor al, al
jmp 0x1005e415
lea edi, [ecx + 4]
cmp dword [edi + 0x10], 0
ja 0x1005e378
lea eax, [ebp - 0x40]
push eax
call fcn.10056684
pop ecx
push eax
mov ecx, edi
call fcn.1001b2c0
lea ecx, [ebp - 0x40]
call fcn.10021eb0
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
and dword [ebp - 0x14], 0
push edi
call fcn.1001d340
xor edi, edi
lea ecx, [ebp - 0x28]
push str.Software_
mov dword [ebp - 4], edi
call fcn.1001c9c0
push dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
call fcn.1001c9c0
test ebx, ebx
je 0x1005e3c0
push 0x102b5bd8
lea ecx, [ebp - 0x28]
call fcn.1001c9c0
push ebx
lea ecx, [ebp - 0x28]
call fcn.1001c9c0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x44]
push ecx
push 0xf003f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], edi
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1005e40b
test esi, esi
je 0x1005e3f8
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1005e402
push edi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.10021eb0
mov al, 1
call fcn.10045ae9
ret 0xc
Function at 0x1005e6f1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
cmp dword [esi + 0x14], ebx
ja 0x1005e749
lea eax, [ebp - 0x1c]
push eax
call fcn.10056684
pop ecx
lea ecx, [esi + 4]
push eax
call fcn.1001b2c0
lea ecx, [ebp - 0x1c]
call fcn.10021eb0
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x1005e754
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push ebx
push eax
push reloc.WS2_32.dll_closesocket
call esi
test eax, eax
je 0x1005e777
xor al, al
jmp 0x1005e830
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push ebx
push str.SoftWare
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x1005e79a
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005e770
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x1005e7cc
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
jmp 0x1005e770
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1005e81f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1005e7f1
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x28]
call esi
mov bl, 1
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100451cc
leave
ret 0x10
Function at 0x10060c97
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x1023fd9e
call fcn.10045b0b
and dword [ebp - 0x20], 0
xor eax, eax
mov ebx, dword [ebp + 8]
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
and dword [ebp - 4], eax
push 0x208
mov dword [ebp - 0x20], 1
call fcn.100219c0
mov edx, eax
xor eax, eax
pop ecx
mov ecx, 0x82
mov dword [ebp - 0x14], edx
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, 0x20019
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10060d9d
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x10060d94
cmp dword [ebp - 0x10], 0x104
jbe 0x10060d65
push dword [ebp - 0x14]
call fcn.10045361
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100219c0
mov edi, eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], edi
push eax
push esi
push edi
call fcn.1001b930
add esp, 0x14
jmp 0x10060d68
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov ecx, ebx
mov esi, eax
push edi
call fcn.10021c20
push edi
call fcn.10045361
mov edi, dword [ebp - 0x1c]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
cmp esi, eax
jne 0x10060dbf
cmp dword [ebp + 0xc], reloc.OLEAUT32.dll_SysReAllocString
jne 0x10060dbf
cmp edi, 0x20019
jne 0x10060dbf
mov edi, 0x20119
jmp 0x10060ce4
mov eax, ebx
call fcn.10045ad4
ret

Function at 0x10060ee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x10060f06
mov ecx, edx
push esi
push edi
xor edi, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10060ef3
sub ecx, esi
pop edi
sar ecx, 1
pop esi
jmp 0x10060f08
xor ecx, ecx
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb al, al
inc al
pop ebp
ret
Function at 0x100616fd
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x1023fdfe
call fcn.10045b3f
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
call fcn.1005819f
and dword [ebp - 4], 0
test esi, esi
je 0x10061725
push esi
jmp 0x1006172c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x30]
call fcn.10058810
lea ecx, [ebp - 0x30]
call fcn.1000c7e0
cmp eax, 1
jne 0x10061748
call fcn.10061619
jmp 0x10061787
push str._1382463573
lea ecx, [ebp - 0x30]
call fcn.10058ae3
test al, al
jne 0x10061765
lea eax, [ebp - 0x30]
push eax
call fcn.1006165b
pop ecx
jmp 0x10061787
test ebx, ebx
mov eax, 0x102b6058
cmovne eax, ebx
test edi, edi
push eax
mov eax, 0x102b606c
cmovne eax, edi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.1006150d
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.100581cd
call fcn.10045ae9
ret

Function at 0x10061d94
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x100629b1
Capabilities:
Check if file exists

Disassembly:
push 0x70
mov eax, 0x1023ff46
call fcn.10045b3f
mov edi, ecx
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
call fcn.10062942
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov esi, eax
mov dword [ebp - 0x2c], 7
xor eax, eax
push 0x10248530
mov word [ebp - 0x40], ax
call fcn.1001c400
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
and dword [ebp - 0x48], 0
xor eax, eax
push 0x10248530
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.1001c400
mov byte [ebp - 4], 1
test esi, esi
je 0x10062ad4
push esi
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.10062e0a
push 0x102b6d74
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1004a064
test al, al
je 0x10062a62
push esi
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.10062eae
push eax
lea ecx, [ebp - 0x28]
call fcn.1001b2c0
lea ecx, [ebp - 0x70]
call fcn.10021eb0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10062ac8
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x40]
call fcn.1001c400
lea eax, [ebp - 0x58]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.1001d340
mov ecx, edi
call fcn.1006283a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10021eb0
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x40]
push eax
mov dword [ebx], esi
call fcn.10021d60
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x58]
push eax
call fcn.10021d60
lea ecx, [ebp - 0x58]
call fcn.10021eb0
lea ecx, [ebp - 0x40]
call fcn.10021eb0
call fcn.10045ae9
ret 0x10
Function at 0x10062bd0
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x102b6d74
mov dword [ebp - 0xa38], eax
call fcn.1001c400
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100a55e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x10062c74
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x10062c74
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100219c0
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.100a55e0
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x10062c87
push ebx
call fcn.10045361
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100451cc
leave
ret 8
mov eax, dword [0x10247544]
mov dword [ebp - 0xc], eax
mov ax, word [0x10247548]
push 0x208
mov word [ebp - 8], ax
call fcn.100219c0
mov edi, eax
mov dword [ebp - 0xa34], ebx
movzx eax, word [ebx]
pop ecx
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x10062cfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10062d9b
push edi
call fcn.10045361
push 2
call fcn.100219c0
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10062d9b
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x10062d03
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.100b2288
add esp, 0xc
test eax, eax
je 0x10062d4b
mov esi, dword [ebp - 0xa34]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x10062d2d
movzx eax, word [esi]
mov dword [ebp - 0xa34], esi
test ax, ax
je 0x10062d9b
jmp 0x10062caf
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.1004aa4c
add esp, 0x14
lea eax, [ebp - 0xa18]
lea ecx, [ebp - 0xa30]
push eax
call fcn.1001c380
mov ecx, dword [ebp - 0xa38]
push eax
call fcn.1001b2c0
lea ecx, [ebp - 0xa30]
call fcn.10021eb0
push ebx
call fcn.10045361
push edi
call fcn.10045361
pop ecx
pop ecx
mov al, 1
jmp 0x10062c76
Function at 0x10062e0a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], edi
call fcn.100a55e0
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10062e8e
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x10062e87
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.1001c380
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100451cc
leave
ret 8

Function at 0x10062eae
Capabilities:
Enumerate processes

Disassembly:
push 0x470
mov eax, 0x1023ffd9
call fcn.10045b3f
mov dword [ebp - 0x478], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x47c], esi
mov edi, 0x102b6d74
mov dword [ebp - 0x21c], 7
xor ebx, ebx
mov word [ebp - 0x230], ax
push edi
mov dword [ebp - 0x220], ebx
call fcn.1001c400
push 0x22c
lea eax, [ebp - 0x474]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.100a55e0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10062f2c
push edi
mov ecx, esi
call fcn.1001c380
jmp 0x1006306d
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10063058
mov edi, dword [ebp + 0xc]
and dword [ebp - 0x238], 0
lea ecx, [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x450]
push eax
call fcn.1001c400
mov byte [ebp - 4], 1
cmp dword [ebp - 0x46c], edi
je 0x10062fab
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.10021eb0
lea eax, [ebp - 0x474]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10062f4e
jmp 0x10063058
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100a55e0
add esp, 0xc
push dword [ebp - 0x46c]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1006304d
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.1001c400
push 0x102b6d74
lea ecx, [ebp - 0x230]
call fcn.1004a064
test al, al
je 0x1006304d
mov ecx, dword [ebp - 0x478]
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.10062bd0
push 0x102b6d74
lea ecx, [ebp - 0x230]
call fcn.1004a064
test al, al
je 0x1006304d
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x230]
call fcn.1001c400
lea ecx, [ebp - 0x248]
call fcn.10021eb0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.1001d690
lea ecx, [ebp - 0x230]
call fcn.10021eb0
mov eax, esi
call fcn.10045ae9
ret 8