joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10259fb
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10de03c]
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call fcn.0103386b
mov esi, eax
test esi, esi
je 0x1025a5c
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp + esi*2 - 0x20c]
push 0x1004204
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
neg eax
jmp 0x1025a5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075bbb
leave
ret 4

Function at 0x1025a71
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call fcn.0103386b
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x1025b02
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
mov dword [ebp - 0x210], ebx
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp + esi*2 - 0x20c]
push 0x1004204
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1025b02
cmp eax, 5
jne 0x1025afd
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test byte [ebp - 0x20e], 8
jne 0x1025b02
xor eax, eax
inc eax
jmp 0x1025b04
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 4

Function at 0x1025b18
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
push esi
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1025b68
test al, 0x10
je 0x1025baf
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1025b50
push 0x1004204
mov ecx, esi
call fcn.010762bc
push 0x1004c50
mov ecx, esi
call fcn.010762bc
push dword [ebp + 0xc]
mov ecx, esi
call fcn.010762a4
jmp 0x1025baf
push 0x5c
mov ecx, esi
call fcn.01076304
cmp eax, 0xffffffff
mov ecx, esi
je 0x1025ba5
push eax
lea eax, [ebp + 8]
push eax
call fcn.010762ec
and dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.01075efc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01075ef0
push dword [ebp + 0xc]
push esi
call fcn.01025b18
jmp 0x1025baf
push 0x100205c
call fcn.01075f20
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x102697d
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10de03c]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
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.ADVAPI32.dll_AllocateAndInitializeSid]
cmp dword [ebp - 0x10], ebx
je 0x10269e6
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call fcn.01077c9c
test eax, eax
jne 0x10269dd
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop ebx
call fcn.01075bbb
leave
ret 4

Function at 0x1026e9e
Capabilities:
Terminate thread

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1004f7c
cmp dword [esi + 0x11c], 0
mov dword [ebp - 4], 5
jne 0x1026ee0
push 0x3e8
push dword [esi + 0x168]
mov dword [esi + 0x118], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x168]
test eax, eax
je 0x1026efc
cmp dword [esi + 0x11c], 0
jne 0x1026efc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
push dword [esi + 0x108]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push dword [esi + reloc.KERNEL32.dll_SetErrorMode]
call edi
push dword [esi + 0x110]
call edi
add esp, 0xc
lea eax, [esi + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x168]
test eax, eax
pop edi
je 0x1026f3d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x170]
call fcn.01026df0
lea ecx, [esi + reloc.KERNEL32.dll_GetTapeStatus]
mov byte [ebp - 4], 4
call fcn.01076718
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 3
call fcn.01075ef0
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 2
call fcn.01075ef0
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 1
call fcn.0107628c
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 0
call fcn.0107628c
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.01075ee4
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x10281bd
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x688
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
push 0xd
mov edx, ecx
pop ecx
xor ebx, ebx
push ebx
push 1
mov dword [ebp - 0x10], eax
xor eax, eax
push 0x2001
lea edi, [ebp - 0x694]
rep stosd dword es:[edi], eax
lea edi, [edx + 0x150]
push reloc.KERNEL32.dll_LoadLibraryW
lea eax, [ebp - 0x420]
mov esi, 0x104
push reloc.KERNEL32.dll_LoadLibraryW
mov ecx, edi
mov dword [ebp - 0x62c], edx
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x630], esi
mov dword [ebp - 0x680], eax
call fcn.010767e4
test eax, eax
je 0x102835b
mov ecx, dword [ebp - 0x62c]
push 1
add ecx, 0xe8
push edi
mov dword [ebp - 0x62c], ecx
call fcn.0102818d
lea eax, [ebp - 0x640]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
jmp 0x1028348
inc dword [ebp - 0x634]
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0x2e
mov dword [ebp - 0x694], LoadLibraryW
mov dword [ebp - 0x630], esi
jne 0x102832a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x660]
call fcn.0103c267
push esi
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x660]
mov dword [ebp - 4], ebx
call fcn.0103bb4d
lea ecx, [ebp - 0x660]
mov dword [ebp - 0x68c], ebx
call fcn.0103bafe
push eax
mov ecx, edi
call fcn.01027b01
mov ecx, dword [ebp - 0x62c]
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x694]
push eax
call fcn.01027a5e
mov dword [ebp - 0x638], eax
push esi
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x660]
call fcn.0103bb7a
mov ecx, dword [ebp - 0x62c]
lea eax, [ebp - 0x628]
push eax
push 1
push dword [ebp - 0x638]
call fcn.010767d8
inc dword [ebp - 0x690]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x660]
call fcn.0103ba7d
lea eax, [ebp - 0x640]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x634]
push WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1028265
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01075bbb
leave
ret
Function at 0x102a57f
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10de03c]
and word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push 0x10054a8
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x102a60c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.01087f4d
test ax, ax
je 0x102a607
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
neg eax
sbb eax, eax
add eax, 7
mov dword [esi], eax
mov ax, 1
jmp 0x102a66a
xor ax, ax
jmp 0x102a66a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 2
je 0x102a666
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
test eax, eax
je 0x102a65b
cmp eax, 2
je 0x102a64a
jbe 0x102a666
cmp eax, 4
ja 0x102a666
xor eax, eax
cmp ebx, 0x6f9
setne al
dec eax
and eax, 0xfffffffd
add eax, 5
mov dword [esi], eax
jmp 0x102a661
cmp ebx, 0x15
jne 0x102a657
mov dword [esi], 3
jmp 0x102a661
mov dword [esi], ecx
jmp 0x102a661
mov dword [esi], 4
mov ax, cx
jmp 0x102a669
xor ax, ax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075bbb
leave
ret 8
Function at 0x102a79e
Capabilities:
Get disk information

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x20c
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 0x10], eax
call fcn.0104e929
xor ebx, ebx
test eax, eax
je 0x102a87c
call fcn.0102150d
add eax, 0xa2
push eax
lea ecx, [ebp - 0x214]
call fcn.01075f08
mov esi, 0x1004204
push esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], ebx
call fcn.01076634
cmp eax, 0xffffffff
lea ecx, [ebp - 0x214]
je 0x102a82a
inc eax
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.010762ec
push eax
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 1
call fcn.01075efc
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], bl
call fcn.01075ef0
jmp 0x102a830
push esi
call fcn.010762bc
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x102a85e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], 1
call fcn.01075ef0
jmp 0x102a8fc
push dword [ebp - 0x214]
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x214]
call fcn.01075ef0
call fcn.0102150d
cmp word [eax + reloc.ADVAPI32.dll_RegDeleteValueW], 2
push CompareStringW
lea eax, [ebp - 0x210]
push eax
je 0x102a89e
push 0xfa3
jmp 0x102a8a3
push 0xe000
call fcn.01068091
push 1
push ebx
push reloc.ADVAPI32.dll_ReadEncryptedFileRaw
push 4
push 0xbd2
lea eax, [ebp - 0x210]
push eax
call fcn.01054b36
cmp eax, 6
jne 0x102a8f3
push edi
push 0xbc5
call fcn.010889b4
pop ecx
pop ecx
push 1
push ebx
push 0x30
push ebx
mov esi, eax
push esi
push 0xfa0
call fcn.01054b96
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ax, 0x8008
jmp 0x102a900
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov ax, 0x8007
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01075bbb
leave
ret
Function at 0x1039f54
Capabilities:
Create directory
Delete file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x214], eax
mov ebx, ecx
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x20c]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1005d44
xor esi, esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push dword [ebp - 0x214]
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x103a008
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
mov edi, dword [sym.imp.msvcrt.dll_wcschr]
push 0x5c
add ebx, 2
push ebx
call edi
add esp, 0x10
test eax, eax
je 0x103a008
push 7
lea ebx, [eax + 2]
push 0x1005d34
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1039ffb
inc esi
push 0x5c
push ebx
call edi
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
jne 0x103a00c
xor eax, eax
jmp 0x103a070
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push edi
push 0x2000000
add eax, 2
neg si
push 4
push edi
push edi
push eax
sbb esi, esi
add esi, 0x80000003
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x103a06d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 4
Function at 0x103aac5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, 0x104
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x414]
push eax
push 0x1005d9c
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x428], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x103ab50
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0108f3c7
test ax, ax
je 0x103ab59
mov ax, 1
jmp 0x103ac0c
cmp dword [ebp + 0x18], 0
jne 0x103ab71
and word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
mov dword [ebp - 0x41c], 2
cmp dword [ebp + 0x18], 2
mov esi, 0x10054a8
je 0x103aba4
push edi
push esi
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
push dword [ebp - 0x424]
push ebx
call fcn.0103a1c2
mov ebx, eax
test bx, bx
jne 0x103ac09
inc dword [edi + 4]
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x418]
push eax
push 6
push 0
push dword [ebp - 0x428]
call fcn.010844f3
mov ebx, eax
test bx, bx
jne 0x103ac09
push edi
push esi
push 2
push 0x100205c
push dword [ebp - 0x418]
push dword [ebp - 0x424]
push dword [ebp - 0x420]
call fcn.0103a1c2
push dword [ebp - 0x418]
push dword [ebp - 0x420]
mov ebx, eax
call fcn.0108efdc
test eax, eax
je 0x103ac09
mov byte [eax + 0xcc], CloseServiceHandle
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 0x14

Function at 0x103ac20
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov esi, 0x10e1990
xor ebx, ebx
push esi
mov dword [0x10e1bac], edi
mov dword [0x10e1ba8], edi
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], di
mov dword [0x10e1ba0], edi
inc ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
mov ax, word [ebp + 0xc]
pop ecx
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [0x10e1b9c], eax
call fcn.01075fa4
mov ecx, dword [eax + 4]
call fcn.010760a0
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x103a632
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x103acc0
call fcn.01075adf
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x103ac8f
lea eax, [ebp + 0xc]
push eax
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp + 0xc], edi
jne 0x103acb9
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.01075fa4
mov ecx, dword [eax + 4]
call fcn.01076094
pop edi
pop esi
mov ax, bx
pop ebx
pop ebp
ret 0xc
Function at 0x1046329
Capabilities:
Get file system object information

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x2c0
mov eax, dword [0x10de03c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2cc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
je 0x104636c
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
jmp 0x1046485
call dword [eax + 0x44]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
je 0x1046387
push CloseServiceHandle
call dword [eax + 0x2c]
mov eax, dword [esi]
push 0x22
mov ecx, esi
call dword [eax + 0x30]
jmp 0x104638c
push 0x26
call dword [eax + 0x2c]
push ebx
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x2c4], ebx
mov ecx, 0xac
lea edi, [ebp - 0x2c0]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x2c8]
call fcn.01075f2c
mov eax, dword [esi]
lea ecx, [ebp - 0x2c8]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [eax + 0x78]
test eax, eax
je 0x1046474
mov eax, dword [ebp - 0x2c8]
cmp dword [eax - 8], 0x104
jg 0x1046474
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4501
push 0x2b4
lea ecx, [ebp - 0x2c4]
push ecx
push ebx
push eax
call edi
cmp eax, ebx
je 0x1046474
push dword [ebp - 0x2c0]
mov ebx, dword [esi]
push eax
push dword [ebp - 0x2cc]
call fcn.010462ea
push eax
mov ecx, esi
call dword [ebx + 0x2c]
lea eax, [ebp - 0xb0]
push eax
lea ecx, [esi + 0x20]
call fcn.01075f20
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
cmp eax, 0x22
jne 0x1046474
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
test eax, eax
je 0x1046474
push 0x4003
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
push dword [ebp - 0x2c8]
call edi
test eax, eax
je 0x1046474
push dword [ebp - 0x2c0]
mov edi, dword [esi]
push eax
push dword [ebp - 0x2cc]
call fcn.010462ea
push eax
mov ecx, esi
call dword [edi + 0x30]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c8]
call fcn.01075ef0
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01075bbb
leave
ret 8
Function at 0x1048846
Capabilities:
Get disk information

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_isalpha]
test eax, eax
pop ecx
je 0x1048942
cmp word [esi + 2], 0x3a
jne 0x1048942
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 3
pop ecx
jbe 0x10488bd
lea ecx, [ebp - 0x10]
call fcn.01075f2c
and dword [ebp - 4], 0
push 0x13
lea eax, [ebp - 0x10]
push eax
call fcn.0104687f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x10488b6
push eax
push esi
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10488b6
push 0x25
jmp 0x10488b8
push 6
lea ecx, [ebp - 0x10]
jmp 0x1048924
lea ecx, [ebp + 8]
call fcn.01075f2c
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
call fcn.01075f20
push 2
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.010762ec
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.01075efc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.01075ef0
push 0x1004204
lea ecx, [ebp + 8]
call fcn.010762bc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x104893e
dec eax
je 0x104893a
dec eax
je 0x1048936
dec eax
je 0x1048932
push 0x29
lea ecx, [ebp + 8]
or dword [ebp - 4], 0xffffffff
pop esi
call fcn.01075ef0
mov eax, esi
jmp 0x104896b
push 4
jmp 0x1048921
push 5
jmp 0x1048921
push 3
jmp 0x1048921
push 2
jmp 0x1048921
cmp word [esi], 0x5c
jne 0x1048968
cmp word [esi + 2], 0x5c
jne 0x1048968
push 0x5c
add esi, 4
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
neg eax
sbb eax, eax
pop ecx
neg eax
pop ecx
add eax, 0x10
jmp 0x104896b
push 0x29
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1048db3
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
push 0x31
mov esi, ecx
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi], eax
call ebx
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1047016
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x104bd5a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x20e0
call fcn.01077a20
mov eax, dword [0x10de03c]
and dword [ebp - 0x20e0], 0
mov dword [ebp - 4], eax
mov eax, dword [0x10e25d8]
test eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
je 0x104be56
cmp eax, 0xffffffff
je 0x104be56
push esi
mov esi, dword [ebp + 8]
cmp esi, 2
je 0x104bda4
cmp esi, 1
jne 0x104be55
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x20dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
cmp esi, 2
jne 0x104bdca
mov eax, 0x100982c
jmp 0x104bdd9
cmp esi, 1
mov eax, 0x10097fc
je 0x104bdd9
mov eax, 0x100205c
push ebx
push eax
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
lea eax, [ebp - 0x20cc]
push 0x1009790
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x2c
push 0
lea eax, [ebp - 0x20e0]
push eax
lea eax, [ebp - 0x20cc]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x20cc]
push eax
push dword [0x10e25d8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01075bbb
leave
ret 8

Function at 0x104c87b
Capabilities:
Query environment variable

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x214
mov eax, dword [0x10de03c]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x10], eax
call fcn.01075f2c
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x10099d8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp + 8], 0
je 0x104c8d1
push 0xd4e
lea ecx, [ebp - 0x21c]
call fcn.01075f5c
jmp 0x104c91b
lea ecx, [ebp - 0x220]
call fcn.01075f2c
push 0xd4d
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.01075f5c
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call fcn.01075f50
add esp, 0xc
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call fcn.01075ef0
call fcn.0104bcd6
push dword [ebp - 0x21c]
push 2
call fcn.0104bd5a
call fcn.0104bd38
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.01075ef0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.01075bbb
leave
ret 4