joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c62c
Capabilities:
Create directory
Set file attributes

Disassembly:
push 0x4c
mov eax, 0x10026868
call fcn.1000992d
mov edi, edx
mov ebx, ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
push 0x1001c690
mov esi, 0xc000003a
call fcn.100101e7
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.10005694
push 0
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1001c698
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001c680
mov esi, 0xc0000035
lea ecx, [ebp - 0x58]
call fcn.10003610
mov eax, esi
call fcn.10009919
ret
test edi, edi
je 0x1001c6bd
push 0
push 0x2000000
push 3
push 0
push 3
push 3
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1001c7f7
xor esi, esi
jmp 0x1001c680
xor eax, eax
mov esi, 0x80
mov word [ebp - 0x4c], ax
xor edi, edi
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1001c81e
mov esi, dword [ebp - 0x48]
mov edi, esi
shr edi, 0xe
and edi, 1
xor ecx, ecx
lea eax, [ebp - 0x50]
push ecx
push eax
push 2
lea eax, [ebp - 0x4c]
push eax
push ecx
push ecx
push 0x9003c
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001f6ef
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x2000000
push 3
push 0
push 3
push 3
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001c889
xor ecx, ecx
lea eax, [ebp - 0x50]
push ecx
push eax
push ecx
push ecx
push 2
lea eax, [ebp - 0x4c]
push eax
push 0x9c040
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x2027
jne 0x1001c896
mov esi, 0x80
push esi
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test edi, edi
jne 0x1001f6f8
push 0
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
jmp 0x1001c6bd
mov word [ebp - 0x4c], ax
jmp 0x1001c841
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x1001c6bd

Function at 0x1001c7b7
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 4]
push ebx
call fcn.1001c561
mov esi, eax
test esi, esi
js 0x1001c7f1
push 1
xor eax, eax
push eax
push eax
push eax
push dword [edi + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x1001f6e5
xor eax, eax
test esi, esi
setns al
mov dword [edi + 0x1c], eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov esi, 0xc0000034
jmp 0x1001c7e7
Function at 0x10023e3f
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10023e7d
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10023e75
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10023e7f
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10023e65
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10023f69
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10023f7f
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10023f9a
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x1002a6a0
Capabilities:
Create process on windows

Disassembly:
push 0xb4
mov eax, 0x10025d0c
call fcn.1000992d
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x1c]
push ecx
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x48], edx
mov dword [ebp - 4], esi
call fcn.10029765
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x54]
call fcn.10005747
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.100101e7
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.10010bba
lea ecx, [ebp - 0x5c]
call fcn.10010bba
push 0x2c
lea eax, [ebp - 0x40]
mov ebx, esi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x44], 0x30
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x1002a751
cmp dword [ebp - 0x3c], ebx
je 0x1002a751
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], esi
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp - 0x4c]
jne 0x1002a751
mov ebx, dword [ebp - 0x3c]
push 0x34
lea eax, [ebp - 0x90]
mov dword [ebp - 0x98], 0x3c
push esi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], 0x1800540
mov dword [ebp - 0x8c], 0x10020ec8
mov ecx, dword [eax - 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x88], ecx
mov ecx, dword [eax - 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x84], ecx
mov ecx, dword [eax - 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x80], ecx
movzx eax, word [eax + 0x30]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1002a7f0
mov eax, dword [ebp - 0x60]
push eax
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
or dword [edi + 4], 0xffffffff
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
jmp 0x1002a7f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x5c]
call fcn.10003610
lea ecx, [ebp - 0x54]
call fcn.10003610
lea ecx, [ebp - 0xc0]
call fcn.1002a661
jmp 0x1002a825
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
sete al
call fcn.10009919
ret 0x18
Function at 0x1002d285
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10041914]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x214], eax
push esi
mov esi, edx
test eax, eax
jne 0x1002d2b3
mov eax, 0x80004005
jmp 0x1002d3b0
and dword [esi], 0
lea ecx, [ebp - 0x210]
and dword [ebp - 0x210], 0
xor edx, edx
push edi
push ecx
inc edx
mov ecx, eax
call fcn.1003f1df
mov edi, eax
test edi, edi
js 0x1002d3ad
push ebx
mov ebx, dword [ebp - 0x210]
test ebx, ebx
je 0x1002d3ac
push 0x208
call dword [sym.imp.api_ms_win_downlevel_ole32_l1_1_0.dll_CoTaskMemAlloc]
mov dword [esi], eax
test eax, eax
je 0x1002d3a0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002d38f
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
xor edi, edi
xor edx, edx
push eax
mov dword [ebp - 0x210], edi
call fcn.1003f1df
test eax, eax
js 0x1002d383
cmp dword [ebp - 0x210], edi
je 0x1002d383
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x104
push edi
push dword [ebp - 0x210]
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x1002d36b
mov ecx, dword [esi]
lea eax, [ebp - 0x20c]
push eax
mov edx, 0x103
call fcn.10029d4b
mov edi, eax
jmp 0x1002d375
push dword [esi]
call dword [sym.imp.api_ms_win_downlevel_ole32_l1_1_0.dll_CoTaskMemFree]
mov dword [esi], edi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1002d3a5
push dword [esi]
call dword [sym.imp.api_ms_win_downlevel_ole32_l1_1_0.dll_CoTaskMemFree]
mov dword [esi], edi
jmp 0x1002d3a5
mov ecx, dword [esi]
mov edx, 0x103
push ebx
call fcn.10029d4b
mov edi, eax
jmp 0x1002d3a5
mov edi, 0x8007000e
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10001a60
mov esp, ebp
pop ebp
ret

Function at 0x1002e44f
Capabilities:
Print debug messages

Disassembly:
push 0xc
mov eax, 0x10026000
call fcn.1000f853
and dword [ebp - 4], 0
mov eax, dword [0x10041c78]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
push dword [ebp + 8]
mov byte [ebp - 4], 1
mov esi, dword [0x10041d70]
inc esi
mov dword [0x10041d70], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
lea eax, [ebp - 0x18]
push 0x1002e4d8
push eax
call fcn.1002a9ad
mov eax, dword [0x10041d78]
add esp, 0x14
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x1002e4ae
push eax
push esi
call dword [sym.imp.msvcrt.dll_fputws]
pop ecx
pop ecx
cmp dword [0x10041d74], 0
je 0x1002e4be
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x18]
call fcn.10003610
jmp 0x1002e4ce
call fcn.10002980
ret 4
Function at 0x10036330
Capabilities:
Enumerate files on windows

Disassembly:
push 0x274
mov eax, 0x10026664
call fcn.1000992d
mov edi, ecx
mov dword [ebp - 0x274], edi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
inc ebx
and dword [ebp - 0x268], 0
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x278], eax
call fcn.100369ff
and dword [ebp - 4], 0
mov eax, dword [0x10041c78]
and dword [ebp - 0x26c], 0
mov dword [ebp - 0x270], eax
lea eax, [esi + 0xc]
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x280], eax
call fcn.10005178
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x270]
push dword [eax]
call fcn.10005694
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x268], esi
cmp esi, 0xffffffff
je 0x100363fd
lea eax, [ebp - 0x264]
mov ecx, edi
push eax
push dword [ebp - 0x280]
call fcn.10035f93
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100363c9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [ebp - 0x268], 0
mov edi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x270]
add edi, 4
push edi
call fcn.10005178
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x270]
push dword [eax]
call fcn.10005694
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x268], esi
cmp esi, 0xffffffff
je 0x10036471
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x264]
push eax
push edi
call fcn.10035f93
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10036445
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x270]
call fcn.10003610
test ebx, ebx
jne 0x100364ac
xor eax, eax
jmp 0x100364ae
mov eax, ebx
call fcn.10009919
ret 8
Function at 0x1003a5d8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov edi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp dword [ebx + 0x38], esi
jne 0x1003a5fa
xor eax, eax
jmp 0x1003a67a
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push dword [ebx + 0x38]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
cmp eax, 2
je 0x1003a5f3
test eax, eax
jne 0x1003a664
push dword [ebp - 4]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x1003a636
mov esi, 0xc0000017
jmp 0x1003a671
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push esi
push dword [ebx + 0x38]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1003a664
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push esi
push dword [ebx + 0x54]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x1003a66b
mov esi, 0xc0000001
jmp 0x1003a671
inc dword [0x10041254]
push edi
call fcn.1000ff4f
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1003a7e3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebx], esi
mov dword [ebp - 4], esi
cmp dword [edi + 0x54], esi
jne 0x1003a827
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
lea ecx, [edi + 0x58]
call fcn.100066c0
test eax, eax
je 0x1003a81a
mov eax, 0xc8008000
jmp 0x1003a855
mov eax, dword [ebp - 4]
mov dword [edi + 0x54], eax
mov dword [edi + 0x50], 1
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [edi + 0x54]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1003a849
mov dword [ebx], 1
inc dword [0x10041250]
jmp 0x1003a853
cmp eax, 2
je 0x1003a853
mov esi, 0xc0000001
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1003c912
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x10026b31
call fcn.1000f853
mov esi, ecx
mov eax, dword [0x10041c78]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
call fcn.1003c652
cmp dword [esi], 1
jne 0x1003c95d
mov edi, dword [esi + 0x24]
cmp edi, dword [esi + 0x64]
ja 0x1003c955
mov edi, dword [esi + 0x64]
mov eax, dword [esi + 0x60]
add eax, dword [esi + 0x20]
jmp 0x1003c96e
mov edi, dword [esi + 0x34]
cmp edi, dword [esi + 0x74]
ja 0x1003c968
mov edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x2c]
push eax
lea ecx, [esi + 0x84]
call fcn.10036a36
test eax, eax
je 0x1003ca68
inc edi
mov byte [ebp - 4], 2
push edi
lea ecx, [ebp - 0x38]
call fcn.100051e9
lea ecx, [edi + edi]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
cmp ebx, 2
jge 0x1003ca87
mov eax, ebx
shl eax, 6
add eax, esi
cmp dword [esi], 1
mov dword [ebp - 0x1c], eax
jne 0x1003c9bd
mov edx, dword [eax + 0x20]
jmp 0x1003c9c0
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x28], edx
xor edi, edi
mov dword [ebp - 0x24], edi
cmp edi, edx
jae 0x1003ca81
cmp dword [esi], 1
jne 0x1003c9ee
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
push edi
push dword [eax + 8]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegEnumKeyExW]
jmp 0x1003ca08
mov dword [ebp - 0x20], ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x14]
push edi
push dword [eax + 8]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegEnumValueW]
test eax, eax
je 0x1003ca13
mov edi, 0xc0000001
jmp 0x1003ca6d
push dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.1000587b
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.1003c523
test eax, eax
jne 0x1003ca53
mov eax, dword [ebp - 0x1c]
mov ecx, esi
push edi
push dword [eax + 8]
lea eax, [ebp - 0x30]
push eax
call fcn.1003c42b
mov edi, eax
test edi, edi
js 0x1003ca6d
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
inc edi
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
jmp 0x1003c9c5
mov edi, 0xc0000017
lea ecx, [ebp - 0x30]
call fcn.10003610
lea ecx, [ebp - 0x38]
call fcn.10003610
mov eax, edi
jmp 0x1003cab6
inc ebx
jmp 0x1003c9a0
lea ecx, [ebp - 0x30]
call fcn.10003610
lea ecx, [ebp - 0x38]
call fcn.10003610
xor eax, eax
jmp 0x1003cab6
call fcn.10002980
ret
Function at 0x1003eb78
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 8], ecx
je 0x1003ecaa
push esi
push edi
push 0x30
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor edi, edi
test esi, esi
je 0x1003ebd1
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 5
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
jmp 0x1003ebd3
mov esi, edi
test esi, esi
je 0x1003eca8
cmp dword [ebp + 8], 0
push ebx
mov ebx, edi
je 0x1003ebf7
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrDupW]
mov dword [esi], eax
test eax, eax
je 0x1003ec9f
cmp dword [ebp + 0xc], 0
je 0x1003ec13
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrDupW]
mov dword [esi + 4], eax
test eax, eax
je 0x1003ec9f
mov ebx, edi
mov eax, dword [ebp + 0x1c]
add eax, 8
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.1000ea0e
test eax, eax
je 0x1003ec96
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 0x28], edi
je 0x1003ec4d
mov eax, dword [eax]
jmp 0x1003ec46
mov edx, esi
mov ecx, eax
call fcn.1003ed2a
test eax, eax
jne 0x1003ec83
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003ec33
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 4]
mov dword [esi + 0x18], edi
push eax
mov dword [esi + 0x1c], edi
call fcn.1000dd86
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
mov dword [esi + 0x2c], eax
inc dword [ecx + 4]
mov dword [ecx], esi
mov ecx, dword [ebp - 0xc]
call fcn.1000ea44
jmp 0x1003ec9b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov ebx, 0x80004005
mov dword [ecx + 0x28], eax
jmp 0x1003ec79
mov ebx, 0x80004005
test ebx, ebx
jns 0x1003eca7
push ecx
mov ecx, esi
call fcn.1000ec53
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1003f3b5
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x10041914]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x834]
push esi
push eax
xor esi, esi
mov dword [ebp - 0x838], ebx
push ecx
mov dword [ebp - 0x834], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x834], esi
je 0x1003f573
push dword [ebp - 0x834]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x83c], eax
test eax, eax
je 0x1003f573
push edi
push ecx
mov edx, ebx
mov ecx, eax
call fcn.1003f5a7
test eax, eax
je 0x1003f54f
xor eax, eax
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x82c]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1003f54f
mov eax, dword [0x1003f59c]
lea edi, [ebp - 0x82c]
mov dword [ebp - 0xc], eax
mov ebx, esi
mov ax, word [0x1003f5a0]
mov word [ebp - 8], ax
mov dword [ebp - 0x830], edi
mov ax, word [edi]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x41c]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1003f530
lea edi, [ebp - 0x41c]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x1003f49b
sub edi, ecx
sar edi, 1
cmp edi, 0x104
jae 0x1003f52a
push edi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x838]
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
je 0x1003f52a
lea eax, [ebp - 0xc]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x214]
call fcn.1000d402
mov ecx, dword [ebp - 0x838]
lea eax, [ecx + edi*2]
push eax
lea ecx, [ebp - 0x214]
call fcn.1000f7be
mov edi, dword [ebp - 0x838]
lea eax, [ebp - 0x214]
push 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x1003f52a
lea eax, [ebp - 0x214]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.1000d402
mov edi, dword [ebp - 0x830]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x1003f530
mov dword [ebp - 0x830], edi
test ebx, ebx
jne 0x1003f564
cmp word [edi], si
je 0x1003f564
jmp 0x1003f46d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1003f564
movzx esi, si
or esi, 0x80070000
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x1003f588
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1003f588
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001a60
mov esp, ebp
pop ebp
ret 8
Function at 0x1001c39
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
push 0xfffffffffffffff5
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x28]
push ecx
push eax
mov dword [0x10083a8], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, dword [ebp - 0x1a]
sub eax, dword [ebp - 0x1e]
mov word [0x10083b4], ax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov word [0x10083a0], ax
lea eax, [ebp - 8]
push eax
push 0xf003f
push esi
push 0x1001234
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1001d1f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1001220
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x1001d1f
mov eax, 0xff
cmp dword [ebp - 4], eax
jne 0x1001cf3
mov ecx, dword [ebp - 0x20]
mov edx, ecx
or edx, 8
mov ax, cx
and ecx, 0xf0
mov word [0x10083b0], dx
mov edx, ecx
or edx, 0xc
mov word [0x100839c], dx
or ecx, 8
jmp 0x1001d16
mov cl, byte [ebp - 4]
and ax, cx
movzx cx, byte [ebp - 3]
mov word [0x100839c], cx
movzx cx, byte [ebp - 2]
mov word [0x10083b0], cx
movzx cx, byte [ebp - 1]
mov word [0x10083ac], cx
jmp 0x1001d34
mov eax, dword [ebp - 0x20]
mov word [0x100839c], ax
mov word [0x10083b0], ax
mov word [0x10083ac], ax
mov ecx, dword [0x10083ac]
shr ecx, 4
xor cl, byte [0x10083ac]
mov word [0x1008398], ax
test cl, 0xf
jne 0x1001d54
mov word [0x10083ac], ax
mov ecx, dword [0x10083b0]
shr ecx, 4
xor cl, byte [0x10083b0]
test cl, 0xf
jne 0x1001d6e
mov word [0x10083b0], ax
mov ecx, dword [0x100839c]
shr ecx, 4
xor cl, byte [0x100839c]
test cl, 0xf
jne 0x1001d88
mov word [0x100839c], ax
cmp dword [ebp - 8], esi
pop esi
je 0x1001d97
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x10027f4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
test esi, esi
push edi
je 0x1002911
cmp word [esi], 0
je 0x10028f2
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0xa64]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.msvcrt.dll__wsplitpath]
add esp, 0x14
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100291a
lea eax, [ebp - 0x230]
push 0x1001310
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x10028be
lea eax, [ebp - 0x230]
push 0x1001308
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x10028be
push 0x1001214
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.msvcrt.dll__wmakepath]
add esp, 0x14
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 4]
push eax
call fcn.01002698
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x1002857
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x10028f2
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
lea esi, [esi + eax*2 + 2]
test esi, esi
pop ecx
jne 0x1002811
mov esi, dword [ebp - 4]
test esi, esi
je 0x1002911
mov eax, dword [ebx]
test eax, eax
je 0x100290f
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002913