joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409d43
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1008
call sub.ntdll.dll__alloca_probe
push ebx
push esi
push edi
lea eax, [esp + 0xc]
xor esi, esi
push eax
push 0x20019
push esi
mov edi, 0x402238
mov ebx, 0x80000001
push edi
push ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409dfe
push ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x1c]
mov ebp, 0x40229c
push eax
push esi
push esi
push ebp
push dword [esp + 0x24]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
push dword [esp + 0x101c]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x409df3
push esi
lea eax, [esp + 0x14]
push eax
push esi
push 0x20006
push 1
push esi
push esi
push edi
push ebx
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409df3
push dword [esp + 0x101c]
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, eax
push eax
push dword [esp + 0x1020]
push 1
push esi
push ebp
push dword [esp + 0x24]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
push dword [esp + 0x10]
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1008
ret 4

Function at 0x409e0a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push dword [esp + 0x2c]
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409e38
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x409eb6
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetLastError]
push esi
call ebp
mov esi, eax
test esi, esi
jne 0x409ebd
push edi
push 0x401404
push 0x4013e0
push dword [0x40cfe0]
push dword [esp + 0x2c]
push dword [0x401140]
push dword [0x401144]
call fcn.0040a534
push eax
push 0x40cbe0
call dword [sym.imp.kernel32.dll_lstrcpyA]
push 2
push ebx
push ebx
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
push ebx
lea eax, [esp + 0x18]
mov ebx, 0x300
push eax
push ebx
push 0x40cbe0
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x409ea7
cmp dword [esp + 0x14], ebx
je 0x409eab
call ebp
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
pop ecx
ret 4
cmp esi, 0xb7
jne 0x409eab
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
lea eax, [esp + 0x10]
push ebx
push eax
push 0x100
push dword [0x40cfe0]
push edi
call esi
test eax, eax
je 0x409ea7
cmp dword [esp + 0x10], 0x100
jne 0x409ea7
push 1
push ebx
push 2
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
push ebx
lea eax, [esp + 0x14]
mov ebx, 0x300
push eax
push ebx
push 0x40cbe0
push edi
call esi
test eax, eax
je 0x409ea7
cmp dword [esp + 0x10], ebx
jne 0x409ea7
xor esi, esi
jmp 0x409eab
Function at 0x40a232
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
xor eax, eax
mov byte [eax + 0x40cac0], al
inc eax
cmp eax, 0x100
jne 0x40a234
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [0x40ca9c], edi
mov dword [0x40caa0], esi
xor edx, edx
mov bl, byte [esi + 0x40cac0]
mov eax, esi
movzx ecx, bl
div dword [esp + 0x18]
movsx eax, byte [edx + ebp]
add edi, eax
add edi, ecx
and edi, 0xff
mov dword [0x40ca9c], edi
mov al, byte [edi + 0x40cac0]
mov byte [esi + 0x40cac0], al
inc esi
mov byte [edi + 0x40cac0], bl
mov dword [0x40caa0], esi
cmp esi, 0x100
jne 0x40a25a
and dword [0x40ca9c], 0
and dword [0x40caa0], 0
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40a315
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0040a232
xor esi, esi
cmp dword [ebp + 0x10], esi
jle 0x40a33e
push edi
mov edi, dword [ebp + 0xc]
call fcn.0040a2b5
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x40a32f
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x40a343
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9bc
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x9bc]
push 0x9b4
push ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.004024ba
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x9b2
lea eax, [ebp - 0x9bc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00404336
mov edi, eax
test edi, edi
jne 0x40a3d2
lea eax, [ebp - 0x9bc]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
mov esi, eax
mov word [ebp + esi - 0x9bc], 0xa0d
add esi, 2
cmp dword [ebp + 0x14], ebx
je 0x40a3d2
push ebx
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x9bc]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40a3cd
cmp dword [ebp - 4], esi
je 0x40a3d2
push 0xfffffffffffffffe
pop eax
jmp 0x40a3d4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x414dd2
Capabilities:
Encode data using xor

Disassembly:
xor dword [eax], edx
dec edi
add eax, 4
or edi, esi
mov esi, 0x7f0a5544
push 0xa82bdd12
pop esi
cmp eax, ebx
jne fcn.00414dd2
add ecx, 0xb6fea44e
add ecx, 0x81a96f66
mov ecx, 0xc3faa3ec
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.00401507
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x62
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x1048c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x20], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 0xf003f
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x18], 0x40
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x104f6
push section.INIT
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
xor eax, eax
leave
ret 8

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
arpl word [0x74337428], bx
lodsb al, byte [esi]
xchg ebp, eax
movsd dword es:[edi], dword [esi]
bound esi, qword [edi + ebx*8 + 0x7cc0d8cd]
xchg edi, eax
push cs
enter 0xffffffffffff9d6b, 0x5a
mov dl, 0x29
xor ecx, dword [ebp - 0x71]
xchg esp, eax
insd dword es:[edi], dx
stc
leave
adc bh, byte [ebp - 0x6c]
jne 0x4153fa
inc esi
aad 0xcd
pop edx
imul si, word [edx], 0x4d
fmulp st(7)
xor cl, byte [ebp - 0x37]
sub al, 0xed
ret 0x9477
Function at 0x10003610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 8]
call fcn.1000e120
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x100036d5
push 0x10012300
push 0x10068be0
push 0x1005e3f0
call fcn.10012330
add esp, 8
mov ecx, eax
call fcn.1000de60
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 8]
push eax
push 0x400
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100036c9
cmp dword [ebp - 8], 0
jbe 0x100036c9
mov eax, dword [ebp - 8]
xor ecx, ecx
push ecx
push eax
lea edx, [ebp - 0x408]
push edx
mov ecx, 0x1005e3f0
call fcn.1000da00
jmp 0x10003689
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003717
push 0x10012300
push 0x10068bfc
push 0x1005e3f0
call fcn.10012330
add esp, 8
mov ecx, eax
call fcn.1000de60
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x10005d80
Capabilities:
Get common file path
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x10005efd
push 0x10068e10
mov eax, dword [ebp + 8]
push eax
call fcn.1002ab1b
add esp, 8
test eax, eax
jne 0x10005efd
push 0
push 0x10068e24
push 0
call dword [sym.imp.KERNEL32.dll_GetNLSVersionEx]
push 0
push 0
call dword [sym.imp.USER32.dll_GetWindowDisplayAffinity]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_NotifyWinEvent]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DlgDirSelectExW]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
push 0
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThreadpoolIo]
push 0
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push 0
call dword [sym.imp.USER32.dll_DestroyMenu]
push 0
push 0
call dword [sym.imp.USER32.dll_GetClassWord]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PrefetchVirtualMemory]
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadGroupAffinity]
push 0
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DdeNameService]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetMouseMovePointsEx]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetUpdatedClipboardFormats]
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_SetRect]
call dword [sym.imp.USER32.dll_WaitMessage]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenPrivateNamespaceW]
push 0
push 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
call dword [sym.imp.USER32.dll_IsWindowVisible]
push 0
push 0
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_RedrawWindow]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 4
imul edx, ecx, 0xd5
add edx, dword [0x1005f348]
push edx
mov eax, 4
imul ecx, eax, 0xd5
mov edx, dword [0x1005f348]
mov eax, dword [edx + ecx]
push eax
mov ecx, 4
imul edx, ecx, 0xa0
mov eax, dword [0x1005f348]
mov ecx, dword [eax + edx]
push ecx
mov edx, 4
imul eax, edx, 0x94
mov ecx, dword [0x1005f364]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebp
ret
Function at 0x10006760
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x48], 0x10006870
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x28], 0x10068e5c
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0x258
push 0x320
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x10068e74
push 0x10068eac
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100067e6
xor eax, eax
jmp 0x10006865
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x1e
push 0x64
push 0xa
push 0xa
push 0x50010001
push 0x10068ec4
push 0x10068ee4
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x10006863
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x10006839
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10007710
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f0e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x518
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
lea edx, [ebp - 0x2d4]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], 0x10069240
mov dword [ebp - 0x44], 0x41
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100078fa
lea ecx, [ebp - 0x2d4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, 0x1005f38c
call fcn.1000c6d0
lea ecx, [ebp - 0x2d4]
push ecx
lea ecx, [ebp - 0x84]
call fcn.1000e1b0
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
push 0x10069274
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call fcn.10012660
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call fcn.1000e140
lea edx, [ebp - 0x524]
push edx
lea ecx, [ebp - 0x6c]
call fcn.1000e120
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x100078d3
lea eax, [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0xcc]
call fcn.1000e1b0
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 3
push 0x10069284
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0xb4]
push eax
call fcn.10012660
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 4
lea edx, [ebp - 0x4f8]
push edx
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.10012660
add esp, 0xc
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x34]
push eax
mov ecx, 0x1005f38c
call fcn.1000c730
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x9c]
call fcn.1000e140
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb4]
call fcn.1000e140
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.1000e140
lea ecx, [ebp - 0x524]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000780a
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [0x10040b08], 0xffffffff
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.1000e140
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10009f00
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0x41
cmp dword [ebp - 8], 0
je 0x1000a038
mov eax, dword [ebp - 8]
and eax, 1
je 0x1000a022
movsx ecx, byte [ebp - 1]
push ecx
push 0x10069464
lea edx, [ebp - 0xc]
push edx
call fcn.10012690
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x1000a022
push 0x10012300
lea ecx, [ebp - 0xc]
push ecx
push 0x1006946c
push 0x1005e3f0
call fcn.10012330
add esp, 8
push eax
call fcn.10012330
add esp, 8
mov ecx, eax
call fcn.1000de60
push 0x10012300
push 0x10069484
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x100694a0
push 0x1005e3f0
call fcn.10012330
add esp, 8
mov ecx, eax
call fcn.1000db30
push eax
call fcn.10012330
add esp, 8
mov ecx, eax
call fcn.1000de60
push 0x10012300
push 0x100694b4
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x10]
push edx
push ecx
push 0x100694d4
push 0x1005e3f0
call fcn.10012330
add esp, 8
mov ecx, eax
call fcn.1000db30
push eax
call fcn.10012330
add esp, 8
mov ecx, eax
call fcn.1000de60
push 0x10012300
push 0x100694e8
push 0x1005e3f0
call fcn.10012330
add esp, 8
mov ecx, eax
call fcn.1000de60
mov eax, dword [ebp - 8]
shr eax, 1
mov dword [ebp - 8], eax
mov cl, byte [ebp - 1]
add cl, 1
mov byte [ebp - 1], cl
jmp 0x10009f13
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10029ef5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10029f34
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10029f34
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10029f34
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10029f34
cmp dword [ecx + 0x74], 0xe
jbe 0x10029f34
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100312c2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10064ef0
push 0x10064ee8
push 0x1006265c
push 0x1f
call fcn.1003112d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100312f6
push dword [ebp + 8]
mov ecx, esi
call dword [0x10060a24]
call esi
jmp 0x100312fc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10031340
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10064f00
push 0x10064ef8
push 0x10062680
push 0x21
call fcn.1003112d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10031377
push dword [ebp + 8]
mov ecx, esi
call dword [0x10060a24]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1003137f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10064f08
push 0x10064f00
push 0x10062694
push 0x22
call fcn.1003112d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100313b9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10060a24]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]