joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005ee0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa8
push ebp
push esi
push edi
lea eax, [esp + 0x20]
xor edi, edi
push eax
xor ebp, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x30], 1
jne 0x100060c7
push 0x1001d2e4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebp
je 0x100060c7
mov eax, dword [0x10023638]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x10005f75
push str.RegisterCallMsgHandler
push esi
call edi
cmp eax, ebp
je 0x10005f75
mov ecx, dword [0x10023638]
cmp ecx, 0x10005640
jne 0x10005f6b
mov ecx, dword [0x1002363c]
push ecx
push sym.EPDEVMGR.dll_F_CallMsgHandler16Ex
jmp 0x10005f73
mov edx, dword [0x1002363c]
push edx
push ecx
call eax
push ebx
push str.InstallOEMDeviceEx
push esi
call edi
mov ebx, dword [esp + 0xd8]
cmp eax, ebp
je 0x10005ff6
mov ecx, dword [esp + 0xf0]
mov edx, dword [esp + 0xec]
push ecx
mov ecx, dword [esp + 0xec]
push edx
mov edx, dword [esp + 0xec]
push ecx
mov ecx, dword [esp + 0xec]
push edx
mov edx, dword [esp + 0xec]
push ecx
mov ecx, dword [esp + 0xe8]
push edx
mov edx, dword [esp + 0xe8]
push ebx
push ecx
mov ecx, dword [esp + 0xec]
push edx
mov edx, dword [esp + 0xec]
push ecx
mov ecx, dword [esp + 0xec]
push edx
mov edx, dword [esp + 0xec]
push ecx
mov ecx, dword [esp + 0xec]
push edx
push ecx
call eax
jmp 0x10006049
push str.InstallOEMDevice
push esi
call edi
cmp eax, ebp
je 0x1000608c
mov edx, dword [esp + 0xdc]
mov ecx, dword [esp + 0xd4]
push edx
mov edx, dword [esp + 0xd4]
push ebx
push ecx
mov ecx, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
push ecx
call eax
push str.GetErrorCode
push esi
mov dword [esp + 0x18], eax
call edi
cmp eax, ebp
je 0x1000608c
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push edx
push ecx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
push edx
push ecx
call eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [0x10023600], edx
mov dword [0x10023668], eax
mov dword [0x10023628], ecx
test ebx, 0x20000
pop ebx
jne 0x100060b2
mov eax, dword [esp + 0x24]
cmp eax, 4
jb 0x100060a7
jne 0x100060b2
cmp dword [esp + 0x28], 0xa
jae 0x100060b2
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0xa8
ret
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xa8
ret
Function at 0x10006fc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x330
lea eax, [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x340]
push edi
mov edi, dword [esp + 0x35c]
push eax
push 0x1001d3c0
push edi
push esi
mov ebx, 1
call fcn.100017b0
add esp, 0x10
test eax, eax
je 0x10007184
lea ecx, [esp + 0x24]
push ecx
push 0x1001d3c8
push edi
push esi
call fcn.100017b0
add esp, 0x10
test eax, eax
je 0x10007184
push 0
lea edx, [esp + 0x240]
push 0x104
push edx
lea eax, [esp + 0x20]
push ebx
push eax
mov dword [esp + 0x24], ebx
call fcn.10001840
add esp, 0x14
test eax, eax
je 0x10007184
mov ebp, dword [esp + 0x360]
mov al, byte [esp + 0x23c]
test al, al
je 0x10007184
lea ecx, [esp + 0x34]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x34]
push 0x1001d368
push edx
call fcn.100053d0
lea eax, [esp + 0x23c]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.100053d0
push 0
push 2
lea edx, [esp + 0x3c]
push 0
push edx
call fcn.10001ef0
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
je 0x10007156
push 0
push esi
push 0
call fcn.10001f40
mov ebx, eax
push 0
lea eax, [esp + 0x148]
mov esi, 1
push 0x104
push eax
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.10001840
add esp, 0x20
test eax, eax
je 0x10007146
mov al, byte [esp + 0x138]
test al, al
je 0x10007146
lea edx, [esp + 0x34]
push ebp
push edx
call fcn.100052e0
mov ecx, dword [esp + 0x35c]
mov edx, dword [esp + 0x358]
push eax
lea eax, [esp + 0x140]
push eax
mov eax, dword [esp + 0x35c]
push ecx
mov ecx, dword [esp + 0x35c]
push edx
mov edx, dword [esp + 0x35c]
push eax
push ecx
push edx
push edi
call fcn.100071a0
mov ebx, eax
push 0
lea eax, [esp + 0x160]
inc esi
push 0x104
push eax
lea ecx, [esp + 0x54]
push esi
push ecx
call fcn.10001840
add esp, 0x38
test eax, eax
jne 0x100070d5
push edi
call fcn.10001f80
mov esi, dword [esp + 0x348]
add esp, 4
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x240]
inc eax
push 0x104
push edx
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x24]
push eax
call fcn.10001840
add esp, 0x14
test eax, eax
jne 0x10007045
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x330
ret
Function at 0x100071a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
lea eax, [esp + 4]
push edi
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x18]
mov edi, 2
cmp eax, edi
jne 0x10007227
test dword [esp + 0xac], 0x7000000
je 0x10007227
mov eax, dword [esp + 0xc0]
test eax, eax
jne 0x10007227
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [esp + 0xb0]
push eax
mov eax, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0xb0]
push edx
push eax
push ecx
call fcn.10011170
add esp, 0x1c
pop edi
add esp, 0x98
ret
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xac]
push edx
mov edx, dword [esp + 0xb8]
push eax
push ecx
push 0
push edx
push esi
call fcn.10010f40
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0xdc]
mov ebp, dword [esp + 0xc8]
add esp, 0x18
cmp eax, edi
mov edi, dword [esp + 0xc8]
jne 0x100072b0
cmp dword [esp + 0x18], 4
ja 0x100072b0
test dword [esp + 0xb8], 0x7f000000
jne 0x100072b0
mov eax, dword [esp + 0xcc]
test eax, eax
jne 0x100072b0
mov eax, dword [esp + 0xb4]
push 4
push edi
push ebx
push 0
push eax
push ebp
push esi
call fcn.10014ed0
add esp, 0x1c
mov ecx, dword [0x10023634]
push ecx
push edi
push ebx
push ebp
push 0
push esi
call fcn.10002130
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
add esp, 0x18
cmp eax, 2
jne 0x10007309
cmp dword [esp + 0x18], 5
jb 0x10007309
test dword [esp + 0xb8], 0x7f000000
jne 0x10007309
mov eax, dword [esp + 0xcc]
test eax, eax
jne 0x10007309
mov edx, dword [esp + 0xb4]
push 4
push edi
push ebx
push 0
push edx
push ebp
push esi
call fcn.10014ed0
add esp, 0x1c
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x98
ret
Function at 0x10007320
Capabilities:
Enumerate files on windows

Disassembly:
mov ecx, dword [esp + 0x10]
sub esp, 0x24c
xor eax, eax
push ebx
push ebp
push esi
cmp ecx, eax
push edi
mov ebx, 1
jne 0x10007392
mov ecx, dword [esp + 0x270]
mov dword [esp + 0x10], eax
test ecx, 0x7000000
je 0x1000735f
lea eax, [esp + 0x158]
push 0x1001d400
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x158]
push ecx
push 0x104
push edx
push 1
push eax
mov eax, dword [esp + 0x278]
push eax
call fcn.10010400
lea ecx, [esp + 0x170]
add esp, 0x18
mov dword [esp + 0x26c], ecx
mov al, byte [esp + 0x274]
test al, 1
je 0x1000742e
mov ebx, dword [esp + 0x268]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x104
push eax
call fcn.100168e2
mov ebp, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x278]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10005380
mov ecx, dword [esp + 0x270]
push eax
push ecx
push 0
push 0
push ebx
call fcn.10005380
push eax
push 0
push ebp
call fcn.100052e0
mov edx, dword [esp + 0x27c]
push eax
push edx
call fcn.10002500
push ebp
mov esi, eax
call fcn.100168d7
add esp, 0x28
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
test al, 2
je 0x10007505
mov ebp, dword [esp + 0x268]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x104
push eax
call fcn.100168e2
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x10], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1001d46c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.100053d0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x100074f8
mov esi, dword [esp + 0x278]
mov edi, dword [esp + 0x260]
test byte [esp + 0x18], 0x10
jne 0x100074d5
mov ecx, dword [esp + 0x26c]
lea eax, [esp + 0x44]
push esi
push eax
push ecx
push 0
lea edx, [esp + 0x54]
push 0
push edx
push 0
push ebp
push edi
call fcn.10002500
add esp, 0x24
mov ebx, eax
test ebx, ebx
je 0x100074ed
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100074a9
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
push eax
call fcn.100168d7
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x24c
ret
Function at 0x10007680
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
mov eax, dword [esp + 0xa8]
push ebp
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 8], edi
je 0x100077d4
mov ebp, dword [esp + 0xb4]
cmp ebp, edi
je 0x100077d4
push ebx
push 0x15a8
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x100077c6
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xc8]
mov esi, eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc8]
push esi
push 0x15a8
push esi
push 2
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0xd4]
push ecx
mov ecx, dword [esp + 0xd0]
push edx
mov edx, dword [esp + 0xd0]
push eax
mov eax, dword [esp + 0xf0]
push edi
push ebp
push ecx
push edx
push eax
call fcn.100124d0
add esp, 0x34
test eax, eax
je 0x100077ad
push edi
call fcn.10010e20
add esp, 4
test eax, eax
jne 0x1000773e
mov eax, dword [esi + 0x34]
or al, 4
mov dword [esi + 0x34], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x28], 2
jne 0x10007768
cmp dword [esp + 0x1c], 5
jb 0x10007768
mov eax, dword [esi + 0x34]
or ah, 2
mov dword [esi + 0x34], eax
push esi
push 2
push 0xd
call fcn.10005800
push esi
push 2
push edi
call fcn.100103d0
mov edx, dword [0x10023668]
add esp, 0x18
test eax, eax
mov dword [esp + 0x10], eax
mov dword [0x10023600], edx
je 0x100077a1
push esi
push 2
push 0xe
call fcn.10005800
add esp, 0xc
jmp 0x100077b7
mov dword [0x10023628], 0x232
jmp 0x100077b7
mov eax, dword [0x1002366c]
mov dword [0x10023628], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
mov eax, dword [esp + 0xc]
pop ebx
pop edi
pop ebp
add esp, 0x9c
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x9c
ret
Function at 0x1000b250
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x78
push ebx
push ebp
push esi
mov esi, dword [esp + 0x88]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x90]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.__s___s
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0x104]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
mov ebp, eax
push esi
push str.__s___s
push ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x54]
add esp, 0x10
rep stosd dword es:[edi], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x44]
mov cx, word [esp + 0x94]
push edx
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push ebp
push 0
mov dword [esp + 0x6c], 0x44
mov dword [esp + 0x98], 1
mov word [esp + 0x9c], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000b3d6
mov eax, dword [esp + 0x98]
test eax, eax
je 0x1000b3c2
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 1
push 0
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
call esi
test eax, eax
je 0x1000b365
lea edx, [esp + 0x28]
push edx
call edi
lea eax, [esp + 0x28]
push eax
call ebx
push 1
push 0
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
call esi
test eax, eax
jne 0x1000b344
mov edx, dword [esp + 0x18]
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000b394
mov eax, dword [esp + 0x20]
push eax
push 1
push 0x400
call ebp
test eax, eax
je 0x1000b394
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000b331
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1000b3ad
or ecx, 0xffffffff
jmp 0x1000b3b1
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x1000b3be
mov dword [eax], ecx
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x78
ret
Function at 0x1000be10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x94
push ebx
push esi
lea eax, [esp + 8]
push edi
push eax
xor esi, esi
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
cmp eax, 1
jne 0x1000be71
push 0x1001d598
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000be71
push str.CtlGetLddPath
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000be66
push ebx
push 0x11
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jne 0x1000be9e
mov ecx, dword [esp + 0xa8]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x1000be9e
push 0x1001d5b4
push ebx
call fcn.100053d0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x94
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x94
ret
Function at 0x1000cd80
Capabilities:
Create directory
Enumerate files on windows

Disassembly:
sub esp, 0x150
push ebx
push ebp
mov ebp, dword [esp + 0x15c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push ebp
mov dword [esp + 0x14], 0
call esi
mov edi, dword [esp + 0x168]
mov ebx, eax
push edi
call esi
lea eax, [ebx + eax + 0x104]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push edi
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call ebp
push eax
call fcn.100053d0
lea ecx, [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x1000cf03
mov dword [esp + 0x18], 0
call fcn.10001760
cmp eax, 0x20
jbe 0x1000ce0c
push str.SetupDecompressOrCopyFileA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x16c]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
call esi
mov edx, eax
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0x104]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov edx, dword [esp + 0x164]
lea ecx, [esp + 0x4c]
push ecx
push edx
push ebx
call ebp
push eax
call fcn.100053d0
push esi
push ebx
call sub.LZ32.dll_GetExpandedNameA
test eax, eax
jle 0x1000cea0
push esi
call fcn.10005380
push eax
mov eax, dword [esp + 0x170]
push eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + esi + 1]
push ecx
call ebp
push eax
call fcn.100053d0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx + esi + 1]
push edx
push esi
call ebp
jmp 0x1000ceb6
mov ecx, dword [esp + 0x16c]
lea eax, [esp + 0x4c]
push eax
push ecx
push esi
call ebp
push eax
call fcn.100053d0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000ced9
push 0
push esi
push ebx
call fcn.10002480
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x1c], eax
je 0x1000ced9
inc dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000ce41
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
Function at 0x1000cf20
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
push ebp
mov ebp, dword [esp + 0x150]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
xor ebx, ebx
call edi
mov esi, eax
mov eax, dword [esp + 0x15c]
push eax
call edi
lea ecx, [esi + eax + 0x104]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [esp + 0x15c]
mov esi, eax
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call fcn.100053d0
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x1000d061
push ebp
call edi
mov edx, eax
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0x104]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea ecx, [esp + 0x40]
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call fcn.100053d0
push edi
push esi
call sub.LZ32.dll_GetExpandedNameA
test eax, eax
jle 0x1000cff2
mov edx, dword [esp + 0x160]
push edx
call fcn.10005380
push eax
push edi
call fcn.10005380
push eax
call fcn.1001bcb0
mov ebx, eax
add esp, 8
neg ebx
sbb ebx, ebx
inc ebx
jne 0x1000d006
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000cfae
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x1000d061
mov edx, dword [esp + 0x164]
test edx, edx
je 0x1000d047
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x168]
not ecx
cmp eax, ecx
jbe 0x1000d047
push esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1000d049
xor ebx, ebx
mov edx, dword [esp + 0x16c]
test edx, edx
je 0x1000d061
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [edx], ecx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x144
ret
Function at 0x1000d340
Capabilities:
Check os version

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x94
sub eax, 0
push ebx
push ebp
push esi
push edi
je 0x1000d3c8
dec eax
je 0x1000d365
xor ebp, ebp
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov eax, dword [0x100207c4]
xor ebp, ebp
xor ebx, ebx
test eax, eax
je 0x1000d3a7
mov edi, 0x100207c0
mov esi, edi
call fcn.1000d4e0
mov ecx, dword [edi]
and eax, 0xffff
cmp ecx, eax
je 0x1000d398
mov eax, dword [esi + 0xc]
add esi, 8
inc ebx
mov edi, esi
test eax, eax
jne 0x1000d379
jmp 0x1000d3a7
mov ebp, dword [ebx*8 + 0x100207c4]
test ebp, ebp
jne 0x1000d4c6
call fcn.1000d4e0
cmp ax, 0x411
je 0x1000d4c6
mov ebp, 0x10020754
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
lea eax, [esp + 0x10]
mov ebp, 0x1002073c
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0xac]
and eax, 0x7f000000
je 0x1000d432
test eax, 0x7000000
je 0x1000d415
test eax, 0x4000000
jne 0x1000d469
test eax, 0x2000000
jne 0x1000d457
mov ebp, 0x100206b0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
test eax, 0x8000000
jne 0x1000d4af
test eax, sym.EPDEVMGR.dll_Ordinal_41
jne 0x1000d498
test eax, 0x20000000
jne 0x1000d4c1
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x1000d47b
mov eax, dword [esp + 0x14]
cmp eax, 5
jae 0x1000d469
cmp eax, 4
jne 0x1000d403
mov eax, dword [esp + 0x18]
cmp eax, 0x5a
jae 0x1000d469
cmp eax, 0xa
jb 0x1000d403
mov ebp, 0x100206c4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov ebp, 0x100206dc
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
cmp eax, 2
jne 0x1000d4c6
mov eax, dword [esp + 0x14]
cmp eax, 6
jae 0x1000d4c1
cmp eax, 5
jne 0x1000d4aa
mov eax, dword [esp + 0x18]
test eax, eax
ja 0x1000d4c1
jne 0x1000d4c6
mov ebp, 0x10020708
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
cmp eax, 4
jne 0x1000d4c6
mov ebp, 0x100206f8
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov ebp, 0x10020720
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
Function at 0x1000db10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push ebx
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SystemCurrentControlSetControlNetworkProviderOrder
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000dbcc
lea ecx, [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push str.ENDPNP32
push ecx
mov dword [esp + 0x24], 0x104
call esi
test eax, eax
jne 0x1000db82
push str.ENDPNP32
push eax
call fcn.1000dbe0
add esp, 8
test eax, eax
je 0x1000db82
mov ebx, 2
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.EBNP32
push edx
mov dword [esp + 0x24], 0x104
call esi
test eax, eax
pop esi
jne 0x1000dbc1
push str.EBNP32
push eax
call fcn.1000dbe0
add esp, 8
test eax, eax
je 0x1000dbc1
or ebx, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
add esp, 0x110
ret

Function at 0x1000dbe0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, str.NetworkProvider
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x1001d648
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x20]
not ecx
dec ecx
mov edi, ebx
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + ecx + 0x104]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push ebx
push 0x1001d648
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call fcn.100053d0
push str.NetworkProvider
push esi
call fcn.100053d0
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebp
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000dcbf
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
push esi
push edx
push eax
mov eax, dword [esp + 0x20]
push str.ProviderPath
push eax
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000dca8
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x1000dca8
mov ecx, dword [esp + 0x10]
mov esi, 1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x10]
xor esi, esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret