joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007ee50
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x1007ee6c
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.10043f70
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.100440b0
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x1007eef0
cmp byte [esp + 0x10], 0x5c
jne 0x1007eef0
cmp byte [esp + 0x11], 0x5c
jne 0x1007eef0
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.100440b0
add esp, 8
test eax, eax
je 0x1007ef6e
inc eax
push 0x5c
push eax
call fcn.100440b0
add esp, 8
mov esi, eax
test esi, esi
je 0x1007ef6e
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x1007ef32
test bl, 1
je 0x1007ef21
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x1007efa4
cmp ebx, 0xffffffff
je 0x1007ef3b
test edi, edi
jne 0x1007ef4a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x1007efa4
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.100440b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1007eef4
test ebp, ebp
je 0x1007efa4
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1007ef99
test al, 0x10
jne 0x1007efa4
test al, 1
je 0x1007ef8c
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x1007efa4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x1007efc0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [esp + 0x418]
test ebx, ebx
jne 0x1007efdc
xor eax, eax
pop ebx
add esp, 0x410
ret
push ebp
push esi
push edi
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.10042db3
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.100441f0
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.10042d96
add esp, 0x18
cmp eax, 2
jbe 0x1007f061
cmp word [esp + 0x10], di
jne 0x1007f061
cmp word [esp + 0x12], di
jne 0x1007f061
lea eax, [esp + 0x14]
push edi
push eax
call fcn.100441f0
add esp, 8
test eax, eax
je 0x1007f0e9
add eax, 2
push edi
push eax
call fcn.100441f0
add esp, 8
mov esi, eax
test esi, esi
je 0x1007f0e9
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x1007f0a9
test bl, 1
je 0x1007f098
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x1007f11f
cmp ebx, 0xffffffff
je 0x1007f0b2
test edi, edi
jne 0x1007f0c1
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x1007f11f
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.100441f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1007f069
test ebp, ebp
je 0x1007f11f
mov ebx, dword [esp + 0x424]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1007f114
test al, 0x10
jne 0x1007f11f
test al, 1
je 0x1007f107
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x1007f11f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x1007fb20
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x26c]
push ebp
mov ebp, dword [esp + 0x26c]
push esi
mov esi, dword [esp + 0x26c]
mov eax, 0x1f3
push ebx
sub eax, ebp
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1007fb69
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x25c
ret
push edi
mov edi, 1
mov eax, dword [ebx]
test al, 0x10
mov dword [esp + 0x14], eax
je 0x1007fcd9
cmp word [ebx + 0x2c], 0x2e
lea ecx, [ebx + 0x2c]
jne 0x1007fba5
mov ax, word [ebx + 0x2e]
test ax, ax
je 0x1007fca9
cmp ax, 0x2e
jne 0x1007fba5
cmp word [ebx + 0x30], 0
je 0x1007fca9
push ecx
call fcn.10042d96
mov ecx, dword [esp + 0x1c]
mov ebx, eax
add esp, 4
lea eax, [ebx + 1]
cmp ecx, eax
jb 0x1007fca2
mov ecx, dword [esp + 0x278]
mov word [esi + ebp*2 - 2], 0
lea eax, [ecx + 0x2c]
push eax
push esi
call fcn.10042d47
mov al, byte [esp + 0x284]
add esp, 8
test al, 0x10
je 0x1007fbfe
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
push edx
push eax
push 0
push esi
call dword [esp + 0x290]
mov edi, eax
test edi, edi
je 0x1007fc65
test byte [esp + 0x27c], 0x40
jne 0x1007fc65
lea ecx, [ebx + ebp]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
lea edx, [ebx + ebp + 1]
lea eax, [esi + ecx*2]
mov ecx, 0x93
mov word [eax - 2], 0x5c
mov word [eax], 0x2a
xor eax, eax
mov word [esi + edx*2], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x284]
mov ecx, dword [esp + 0x280]
push eax
mov eax, dword [esp + 0x280]
push ecx
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
push esi
call fcn.1007fb20
add esp, 0x18
mov edi, eax
test byte [esp + 0x27c], 0x20
je 0x1007fc95
test edi, edi
je 0x1007fc95
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
push edx
add ebx, ebp
push eax
push 0
push esi
mov word [esi + ebx*2 - 2], 0
call dword [esp + 0x290]
mov edi, eax
mov word [esi + ebp*2 - 2], 0x2a
mov word [esi + ebp*2], 0
mov ebx, dword [esp + 0x278]
test edi, edi
je 0x1007fcc1
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1007fb6f
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret
mov ecx, dword [esp + 0x284]
lea edx, [ebx + 0x2c]
push ecx
push eax
push edx
push esi
mov word [esi + ebp*2 - 4], 0
call dword [esp + 0x290]
mov word [esi + ebp*2 - 4], 0x5c
mov edi, eax
mov word [esi + ebp*2 - 2], 0x2a
jmp 0x1007fca9
Function at 0x10080de0
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x10080dff
push 0x57
mov dword [0x1027e378], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0x10080d30
push 0x20
push esi
call fcn.1007fa20
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x10080e45
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x1027e378], eax
je 0x10080e45
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret
Function at 0x10084510
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101e9ff8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x10084542
call fcn.100a7b20
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x10084553
mov ecx, SysReAllocString
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x100845a8
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x1008458e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x100846d4
cmp dword [esp + 0x18], ebx
jne 0x100845a8
cmp dword [esp + 0x14], ebx
je 0x100846d4
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x100845b9
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.101d46d8
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x100845ff
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x100845ff
call fcn.10070f50
test eax, eax
je 0x100845ff
push 0x1024298c
lea ecx, [esp + 0x14]
call fcn.101d4b02
push ebx
lea ecx, [esp + 0x14]
call fcn.101d4d98
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x100846ae
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x1008463b
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x100846ae
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x10084689
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x1008468c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x10084684
mov dword [esi + 0x10], ebx
jmp 0x1008468c
mov dword [esi + 0x10], ecx
jmp 0x1008468c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.101d496b
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.101d496b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10086a80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov edx, ecx
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
add edx, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push edx
push 0x1023b350
push ecx
call fcn.10043207
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
xor esi, esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10086b5a
mov edi, dword [esp + 0x220]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push ebx
push edi
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x14]
cmp eax, 2
jb 0x10086b40
add eax, 2
mov dword [esp + 0x14], eax
shr eax, 1
lea ecx, [eax + eax]
push ecx
call fcn.101d5034
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10086b40
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push ebx
push edi
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8

Function at 0x10086b70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov edx, ecx
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
add edx, 4
push eax
push edx
lea ecx, [esp + 0x20]
push 0x1023b350
push ecx
call fcn.10043207
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10086c09
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x224]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x210
ret 8
Function at 0x10086e30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10086eca
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x10086eb4
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.101d5034
mov esi, eax
add esp, 4
test esi, esi
je 0x10086eb4
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x10087060
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101ea30b
push eax
mov dword fs:[0], esp
sub esp, 0x65c
mov ecx, 0x1027ecb8
push ebx
push ebp
push esi
push edi
push str.PATH
push 0x1027ecbc
call fcn.10086e30
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x100870b1
push ebp
call fcn.10042d96
add esp, 4
test eax, eax
jne 0x100870f4
push ebp
call fcn.101d505d
add esp, 4
push 0x1025bae0
call fcn.10042d96
inc eax
lea esi, [eax + eax]
push esi
call fcn.101d5034
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x10087238
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x1025bae0
and ecx, 3
push ebp
rep stosb byte es:[edi], al
call fcn.10042d71
add esp, 8
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x266]
mov word [esp + 0x264], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x264]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x67c]
lea ecx, [esp + 0x264]
push eax
push str.oadbg_
push str._s_s_
push ecx
call fcn.10043207
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x476]
mov word [esp + 0x474], bx
rep stosd dword es:[edi], eax
add esp, 0x10
lea edx, [esp + 0x264]
stosw word es:[edi], ax
push edx
push ebp
lea eax, [esp + 0x46c]
push str._s_s
push eax
call fcn.10043207
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x464]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1008722f
mov esi, dword [esp + 0x680]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x40]
push 0x10242c2c
push eax
call edi
test eax, eax
je 0x10087218
lea ecx, [esp + 0x40]
push 0x10242c28
push ecx
call edi
test eax, eax
je 0x10087218
test byte [esp + 0x14], 0x10
jne 0x10087218
lea edx, [esp + 0x40]
lea ecx, [esp + 0x10]
push edx
call fcn.101d49df
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x67c], 0
call fcn.101d3062
lea ecx, [esp + 0x10]
mov dword [esp + 0x674], 0xffffffff
call fcn.101d496b
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100871b4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call fcn.101d505d
add esp, 4
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x668
ret 8
Function at 0x10087890
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x101ea3ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x102562e4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 0x18]
mov dword [ebp], eax
xor ebx, ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x1c], ebx
call fcn.101d39c1
lea edi, [esi + 0x30]
push ebx
mov ecx, edi
mov byte [esp + 0x20], 1
call fcn.1003ee95
mov dword [edi], 0x101fbad8
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x50]
mov byte [esp + 0x1c], 2
call fcn.101d39c1
lea edi, [esi + 0x64]
push ebx
mov ecx, edi
mov byte [esp + 0x20], 3
call fcn.1003ee95
mov dword [edi], 0x101fbad8
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x84]
mov byte [esp + 0x1c], 4
call fcn.1008ac60
lea ecx, [esi + 0x128]
mov byte [esp + 0x1c], 5
call fcn.1008ba30
lea ecx, [esi + 0x15c]
mov byte [esp + 0x1c], 6
call fcn.100841f0
mov ecx, dword [0x102562e4]
mov dword [esi + 0x190], ecx
mov edx, dword [esp + 0x24]
mov ecx, ebp
push edx
mov byte [esp + 0x20], 8
mov dword [esi], 0x101ff16c
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 1
call fcn.101d4b02
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x18c], ebx
mov dword [esi + 0x194], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x100879c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x101ea477
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x101ff16c
mov ecx, dword [esi + 0x194]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x28], 8
je 0x10087a17
call fcn.1017c5b0
mov ecx, dword [esi + 0x194]
cmp ecx, ebp
je 0x10087a11
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x194], ebp
lea ebx, [esi + 0x84]
mov ecx, ebx
call fcn.1008ae20
lea ecx, [esi + 0x128]
call fcn.1008bb00
lea ecx, [esi + 0x15c]
call fcn.100848f0
lea edi, [esi + 0x64]
push 1
push edi
lea ecx, [esp + 0x1c]
call fcn.1003f07c
mov eax, dword [esi + 0x58]
mov byte [esp + 0x28], 9
test eax, eax
jle 0x10087a6d
mov ecx, dword [esi + 0x54]
mov ecx, dword [ecx + ebp*4]
test ecx, ecx
je 0x10087a65
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esi + 0x58]
inc ebp
cmp ebp, eax
jl 0x10087a55
lea ebp, [esi + 0x50]
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.101d3a21
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 8
call fcn.1003f0b8
lea ecx, [esi + 0x190]
mov byte [esp + 0x28], 7
call fcn.101d496b
lea ecx, [esi + 0x15c]
mov byte [esp + 0x28], 6
call fcn.10084390
lea ecx, [esi + 0x128]
mov byte [esp + 0x28], 5
call fcn.1008ba70
mov ecx, ebx
mov byte [esp + 0x28], 4
call fcn.1008ad10
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [edi + 8]
push eax
mov byte [esp + 0x2c], 3
mov dword [edi], 0x101fbad8
call ebx
mov ecx, edi
call fcn.1003eec0
mov ecx, ebp
mov byte [esp + 0x28], 2
call fcn.101d39f4
lea edi, [esi + 0x30]
mov byte [esp + 0x28], 1
lea ecx, [edi + 8]
mov dword [edi], 0x101fbad8
push ecx
call ebx
mov ecx, edi
call fcn.1003eec0
lea ecx, [esi + 0x1c]
mov byte [esp + 0x28], 0
call fcn.101d39f4
lea ecx, [esi + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.101d496b
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x100886b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101ea528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push edi
mov edi, ecx
push 1
lea ecx, [esp + 0x18]
lea eax, [edi + 0x30]
push eax
call fcn.1003f07c
mov eax, dword [edi + 0x24]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc], ebx
jle 0x1008878d
push ebp
push esi
mov ecx, dword [edi + 0x20]
mov ebp, dword [ecx + ebx*4]
mov dword [esp + 0x10], ebp
mov edx, dword [ebp + 4]
mov eax, dword [edx - 8]
test eax, eax
je 0x1008877b
lea esi, [edi + 0x15c]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10084b20
test eax, eax
je 0x1008877b
mov eax, dword [ebp + 4]
push 0
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.10084b70
mov ebx, eax
test ebx, ebx
je 0x10088764
cmp dword [ebx], 0x4d465631
jne 0x10088764
mov eax, dword [ebx + 8]
xor esi, esi
test eax, eax
jle 0x10088764
lea ebp, [ebx + 0x10]
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.10052730
add esp, 8
test eax, eax
je 0x100887af
mov eax, dword [ebx + 8]
inc esi
add ebp, 0x58
cmp esi, eax
jl 0x10088743
mov ebp, dword [esp + 0x10]
push ebp
mov ecx, edi
call fcn.10088470
lea ecx, [edi + 0x15c]
call fcn.10084b50
mov ebx, dword [esp + 0x14]
mov eax, dword [edi + 0x24]
inc ebx
cmp ebx, eax
mov dword [esp + 0x14], ebx
jl 0x100886f2
pop esi
pop ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.1003f0b8
mov ecx, dword [esp + 0x20]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
lea edx, [esi + esi*4]
lea eax, [esi + edx*2]
lea esi, [ebx + eax*8 + 0x10]
test esi, esi
je 0x10088760
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
push ebx
call fcn.100aa780
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ebx
mov ecx, dword [edi + 0x10]
xor edx, edx
mov dword [esi + 0x48], ecx
mov dx, word [edi + 0xa8]
add esp, 4
lea ecx, [edi + 0x128]
mov dword [esi + 0x4c], edx
call fcn.1008bd80
push 0
lea ecx, [edi + 0x15c]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0
call fcn.10084b70
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
jmp 0x1008876c