joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10055ee9
Capabilities:
Create process on windows

Disassembly:
push 0x8c
mov eax, 0x1023e9cf
call fcn.10045b3f
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
push 0x44
pop edi
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.100a4c40
mov dword [ebp - 0x98], edi
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x10055f97
push eax
lea ecx, [ebp - 0x40]
call fcn.1001c400
cmp dword [ebp - 0x30], esi
je 0x10055f97
push 0x10246e1c
lea ecx, [ebp - 0x28]
call fcn.1001c400
push ebx
lea ecx, [ebp - 0x28]
call fcn.1001c9c0
push 0x1024753c
lea ecx, [ebp - 0x28]
call fcn.1001c9c0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.1001c950
jmp 0x10055fa0
push ebx
lea ecx, [ebp - 0x28]
call fcn.1001c400
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push esi
push esi
push esi
push 1
push esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10055fd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10055fff
cmp byte [ebp + 0x10], 0
je 0x10055fec
or eax, 0xffffffff
cmp dword [ebp + 0x14], 0
cmovg eax, dword [ebp + 0x14]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x40]
call fcn.10021eb0
lea ecx, [ebp - 0x28]
call fcn.10021eb0
mov eax, esi
call fcn.10045ae9
ret
Function at 0x10056593
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x102cc06c]
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 0x102b6d64
mov dword [ebp - 0x440], eax
call fcn.1001c400
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100a4c40
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x10056637
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x10056637
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.100a4c40
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x10056648
push ebx
call fcn.10045361
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100451cc
leave
ret
mov eax, dword [0x10247534]
mov dword [ebp - 0xc], eax
mov ax, word [0x10247538]
push 0x208
mov word [ebp - 8], ax
call fcn.100219c0
mov edi, eax
mov dword [ebp - 0x43c], 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 0x100566bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1005675c
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 0x1005675c
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x100566c4
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.100b18e8
add esp, 0xc
test eax, eax
je 0x1005670c
mov esi, dword [ebp - 0x43c]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x100566ee
movzx eax, word [esi]
mov dword [ebp - 0x43c], esi
test ax, ax
je 0x1005675c
jmp 0x10056670
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.1004a9d0
add esp, 0x14
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0x438]
push eax
call fcn.1001c380
mov ecx, dword [ebp - 0x440]
push eax
call fcn.1001b2c0
lea ecx, [ebp - 0x438]
call fcn.10021eb0
push ebx
call fcn.10045361
push edi
call fcn.10045361
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x10056639
Function at 0x10056772
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x102cc06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100567f8
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.100a4c40
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x100567f8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x100567ed
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.100d3a4b
pop ecx
pop ecx
test eax, eax
je 0x10056808
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100567cd
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 0x100567fa

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x102cc06c]
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.100a4c40
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 0x10056ca4
cmp dword [ebp - 0x114], 5
jbe 0x10056ca4
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 0x10056ca4
cmp dword [ebp - 0x114], 6
jb 0x10056c68
jne 0x10056bfc
cmp dword [ebp - 0x110], 2
jb 0x10056c68
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 0x10056c61
cmp dword [ebp - 0x128], edi
je 0x10056c64
xor edi, edi
inc edi
mov eax, edi
jmp 0x10056ca6
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 0x10056ca6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100451cc
leave
ret
Function at 0x10056ef4
Capabilities:
Terminate process

Disassembly:
push 0x20
mov eax, 0x1023d0b0
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 0x10056f7f
cmp esi, 0xffffffff
je 0x10056f7f
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.10056593
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10056d7d
add esp, 0x10
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.10021eb0
test bl, bl
je 0x10056f7f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10056f7f
cmp byte [ebp + 0x14], 0
je 0x10056f7f
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x2c], 0
test esi, esi
je 0x10056f9d
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10056f9d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
call fcn.10045ae9
ret

Function at 0x1005716b
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.100a4c40
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
cmp dword [ebp + 8], 0
mov ecx, 0x102473bc
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 0x100571e0
cmp byte [ebp + 0x18], 0
je 0x100571e0
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 0x1005735f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x102cc06c]
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.100a4c40
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.10057314
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x100573de
cmp dword [ebp - 0x118], ebx
jbe 0x10057424
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x10057424
cmp eax, 6
jne 0x10057409
cmp byte [ebp - 6], 1
jne 0x10057404
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x10057400
sub eax, 1
je 0x100573fc
push 7
jmp 0x10057406
push 5
jmp 0x10057406
push 3
jmp 0x10057406
push 4
pop ebx
jmp 0x10057424
push 0xa
pop ecx
cmp eax, ecx
jne 0x10057421
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x10057424
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.100451cc
leave
ret
Function at 0x10057903
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x102cc06c]
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.100a4c40
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 0x10057966
cmp dword [ebp - 0x118], 2
jg 0x10057966
mov al, 1
jmp 0x10057968
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100451cc
leave
ret

Function at 0x100588ce
Capabilities:
Create thread

Disassembly:
cmp dword [0x102d8194], 0
jne 0x1005890c
push esi
mov ecx, 0x102d81c8
call fcn.10058ba4
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 0x1005879c
push esi
push esi
mov dword [0x102d8190], eax
call fcn.100d3e97
add esp, 0x18
mov dword [0x102d8194], eax
pop esi
ret
Function at 0x1005df92
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x3c
mov eax, 0x1023efac
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 0x1005dfb5
xor al, al
jmp 0x1005e075
lea edi, [ecx + 4]
cmp dword [edi + 0x10], 0
ja 0x1005dfd8
lea eax, [ebp - 0x40]
push eax
call fcn.100562fb
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 0x1005e020
push 0x102b5bc8
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 0x1005e06b
test esi, esi
je 0x1005e058
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1005e062
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 0x1005e351
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x102cc06c]
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 0x1005e3a9
lea eax, [ebp - 0x1c]
push eax
call fcn.100562fb
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 0x1005e3b4
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 0x1005e3d7
xor al, al
jmp 0x1005e490
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push ebx
push str.SoftWare
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x1005e3fa
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1005e3d0
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 0x1005e42c
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
jmp 0x1005e3d0
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 0x1005e47f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1005e451
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 0x100608f7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x1023f34c
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 0x100609fd
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 0x100609f4
cmp dword [ebp - 0x10], 0x104
jbe 0x100609c5
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 0x100609c8
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 0x10060a1f
cmp dword [ebp + 0xc], reloc.OLEAUT32.dll_SysReAllocString
jne 0x10060a1f
cmp edi, 0x20019
jne 0x10060a1f
mov edi, 0x20119
jmp 0x10060944
mov eax, ebx
call fcn.10045ad4
ret

Function at 0x10060b40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x10060b66
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 0x10060b53
sub ecx, esi
pop edi
sar ecx, 1
pop esi
jmp 0x10060b68
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 0x1006135d
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x1023f3ac
call fcn.10045b3f
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
call fcn.10057e16
and dword [ebp - 4], 0
test esi, esi
je 0x10061385
push esi
jmp 0x1006138c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x30]
call fcn.10058487
lea ecx, [ebp - 0x30]
call fcn.1000c7d0
cmp eax, 1
jne 0x100613a8
call fcn.10061279
jmp 0x100613e7
push str._1382463573
lea ecx, [ebp - 0x30]
call fcn.10058743
test al, al
jne 0x100613c5
lea eax, [ebp - 0x30]
push eax
call fcn.100612bb
pop ecx
jmp 0x100613e7
test ebx, ebx
mov eax, 0x102b6048
cmovne eax, ebx
test edi, edi
push eax
mov eax, 0x102b605c
cmovne eax, edi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.1006116d
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.10057e44
call fcn.10045ae9
ret

Function at 0x100619f4
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 0x10062611
Capabilities:
Check if file exists

Disassembly:
push 0x70
mov eax, 0x1023f4f4
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.100625a2
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov esi, eax
mov dword [ebp - 0x2c], 7
xor eax, eax
push 0x10248520
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 0x10248520
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.1001c400
mov byte [ebp - 4], 1
test esi, esi
je 0x10062734
push esi
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.10062a6a
push 0x102b6d64
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10049fe8
test al, al
je 0x100626c2
push esi
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.10062b0e
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 0x10062728
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.1006249a
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 0x10062830
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x102cc06c]
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 0x102b6d64
mov dword [ebp - 0xa38], eax
call fcn.1001c400
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100a4c40
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x100628d4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x100628d4
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.100a4c40
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x100628e7
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 [0x10247534]
mov dword [ebp - 0xc], eax
mov ax, word [0x10247538]
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 0x1006295c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100629fb
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 0x100629fb
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x10062963
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.100b18e8
add esp, 0xc
test eax, eax
je 0x100629ab
mov esi, dword [ebp - 0xa34]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x1006298d
movzx eax, word [esi]
mov dword [ebp - 0xa34], esi
test ax, ax
je 0x100629fb
jmp 0x1006290f
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.1004a9d0
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 0x100628d6