joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100114c0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x10186e60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push 0x101f1d04
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.1002dab0
lea eax, [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x38], 1
call fcn.1002d9b0
push 0x101f1d04
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.1002dab0
mov ebx, 3
push 0x2e
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], bl
call fcn.1002f530
mov esi, eax
test esi, esi
jle 0x100115a4
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.100305d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 4
call fcn.1002e560
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call fcn.1002e3e0
lea edx, [esp + 0x18]
push esi
push edx
lea ecx, [esp + 0x10]
call fcn.10030a00
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x38], 5
call fcn.10032e60
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 7
call fcn.1002e3e0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 8]
push eax
call fcn.1002e720
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], bl
call fcn.10033760
mov esi, dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x1c]
push ecx
call esi
push 0x101f1d04
lea ecx, [esp + 0x14]
call fcn.1002dab0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x26]
mov ecx, dword [esp + 0x24]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x26]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x26]
push ecx
mov ecx, dword [esp + 0x28]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x28]
push 0x101b08e4
push edx
mov byte [esp + 0x54], 8
call fcn.10031240
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
add esp, 0x20
push eax
push ecx
push edx
lea eax, [esp + 0x18]
push 0x101b08d4
push eax
call fcn.10031240
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], bl
call fcn.1002e3e0
mov ecx, dword [esp + 0xc]
push ecx
call fcn.100112a0
add esp, 4
test eax, eax
jne 0x100115aa
mov esi, dword [esp + 0x40]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.1002e560
mov esi, dword [esi]
mov eax, dword [esp + 0x3c]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x34], 2
call fcn.1002e3e0
lea ecx, [esp + 8]
mov byte [esp + 0x34], 1
call fcn.1002e3e0
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 0
call fcn.1002e3e0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call fcn.1002e3e0
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x100116d0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x10186ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push 0x101f1d00
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.10032fc0
lea eax, [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x38], 1
call fcn.10032d60
push 0x101f1d00
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.10032fc0
mov ebx, 3
push 0x2e
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], bl
call fcn.10034910
mov esi, eax
test esi, esi
jle 0x1001179a
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.10035a50
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 4
call fcn.100338f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call fcn.10033760
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x10]
call fcn.10035ea0
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x38], 5
call fcn.100338f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], bl
call fcn.10033760
mov esi, dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x1c]
push ecx
call esi
push 0x101f1d00
lea ecx, [esp + 0x14]
call fcn.10032fc0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x26]
mov ecx, dword [esp + 0x24]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x26]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x26]
push ecx
mov ecx, dword [esp + 0x28]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x28]
push str._d_02d_02d_02d_02d_02d
push edx
mov byte [esp + 0x54], 6
call fcn.100366e0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
add esp, 0x20
push eax
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_tsk___s__s
push eax
call fcn.100366e0
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], bl
call fcn.10033760
mov ecx, dword [esp + 0xc]
push ecx
call fcn.100112e0
add esp, 4
test eax, eax
jne 0x100117a0
mov esi, dword [esp + 0x40]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.100338f0
mov esi, dword [esi]
mov eax, dword [esp + 0x3c]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x34], 2
call fcn.10033760
lea ecx, [esp + 8]
mov byte [esp + 0x34], 1
call fcn.10033760
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 0
call fcn.10033760
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call fcn.10033760
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x100119e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x14], edi
je 0x10011af3
mov esi, dword [esp + 0x20]
cmp dword [esi], ebx
je 0x10011af3
push ebx
push 0x80
push 2
push ebx
push 7
push 0x40000000
push eax
call fcn.10011190
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x10011af3
push ebx
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 0x10000
mov esi, edi
jb 0x10011a5d
mov esi, 0x10000
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push 0
push eax
mov edx, dword [ecx]
push esi
add edx, ebx
mov dword [esp + 0x1c], 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10011ac0
mov eax, dword [esp + 0x10]
add ebx, eax
cmp eax, esi
jb 0x10011a8f
cmp ebx, edi
jne 0x10011a97
mov dword [esp + 0x1c], 1
lea eax, [esi + ebx]
cmp eax, edi
jbe 0x10011aa2
mov esi, edi
sub esi, ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10011a5d
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10011ade
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov esi, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x10011b00
Capabilities:
Get file size

Disassembly:
sub esp, 8
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x10011b75
test esi, esi
je 0x10011b75
push ebx
mov dword [esp + 0x14], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 1
push eax
push 0
push esi
call edi
push 0
push 0
push 0
push esi
mov ebx, eax
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
push ecx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
push 0
mov dword [ecx], eax
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
mov dword [ecx + 4], edx
call edi
pop edi
mov eax, 1
pop ebx
pop esi
add esp, 8
ret
Function at 0x10011b80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
cmp eax, 0xffffffff
mov dword [ebx], edi
mov dword [esi], edi
je 0x10011cbc
cmp eax, edi
je 0x10011cbc
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
push ecx
push eax
mov dword [esp + 0x1c], edi
call fcn.10011b00
add esp, 8
test eax, eax
je 0x10011cbc
mov eax, dword [esp + 0x14]
cmp eax, edi
mov eax, dword [esp + 0x10]
ja 0x10011cbc
jb 0x10011be3
cmp eax, 0xfffffffe
ja 0x10011cbc
lea esi, [eax + 1]
mov ebp, eax
push esi
call fcn.1005473e
mov edx, dword [esp + 0x24]
mov edi, eax
add esp, 4
test edi, edi
mov dword [edx], edi
je 0x10011cb8
mov ecx, esi
xor eax, eax
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebp, 0x10000
mov esi, ebp
jb 0x10011c36
mov esi, 0x10000
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [ebx]
mov edx, dword [esp + 0x24]
add ecx, eax
push esi
push ecx
push edx
mov dword [esp + 0x38], 0
call edi
test eax, eax
je 0x10011ca3
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx]
add ecx, eax
cmp eax, esi
mov dword [ebx], ecx
jb 0x10011c7c
cmp ecx, ebp
jne 0x10011c84
mov dword [esp + 0x28], 1
mov eax, ebp
sub eax, ecx
cmp eax, esi
jae 0x10011c8e
mov esi, eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10011c44
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10011cb8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
test eax, eax
je 0x10011cd1
push eax
call fcn.10054626
add esp, 4
mov dword [esi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x10011d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10186ee7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 0x101f1d00
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0
call fcn.10032fc0
lea ecx, [esp + 4]
mov dword [esp + 0x28], 1
call fcn.100334d0
lea eax, [esp + 0x10]
push eax
call fcn.10015110
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.100463f0
add esp, 0xc
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call fcn.100338f0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.10033760
push 0x101f1d00
push 0x101b0948
lea ecx, [esp + 0xc]
call fcn.100356a0
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.10032d60
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.10033760
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x10012150
Capabilities:
Acquire debug privileges

Disassembly:
mov eax, dword [0x101f74dc]
test eax, eax
jne 0x1001216f
push 1
push 0x101b0954
push 0xffffffffffffffff
call fcn.1006c040
add esp, 0xc
mov dword [0x101f74dc], eax
ret

Function at 0x10014c70
Capabilities:
Find taskbar
Get session user name

Disassembly:
sub esp, 0x64
xor eax, eax
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
mov ebp, dword [esp + 0x74]
mov ecx, ebp
push esi
mov edx, ecx
push edi
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.1006d010
test eax, eax
je 0x10014d63
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push str.Shell_TrayWnd
push 0
push 0
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_FindWindowExA]
test eax, eax
je 0x10014cd5
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.10014e00
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x10014d1b
push 0x41
push eax
push 1
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov esi, eax
test esi, esi
jne 0x10014d03
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
lea edx, [esp + 0x10]
push edx
push fcn.10014e00
push esi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebp
jb 0x10014d35
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x10]
push ecx
push edx
stosb byte es:[edi], al
mov dword [esp + 0x84], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, eax
test esi, esi
je 0x10014de1
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebp
jb 0x10014db3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x10014df3
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
Function at 0x100167d0
Capabilities:
Get graphical window text

Disassembly:
call fcn.1006d060
test eax, eax
je 0x100167ef
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x10016870
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10016870
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.1005473e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10016870
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x10016870
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.100128f0
add esp, 0x10
test eax, eax
je 0x10016870
push esi
call fcn.100547f0
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x100170e0
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10187050
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
je 0x10017223
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10017223
push ebp
lea ecx, [esp + 0x14]
call fcn.1002dab0
push 3
push 0x5c
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
call fcn.1002f4c0
push 2
push 0x101b1380
push ebp
mov esi, eax
call fcn.1005683e
add esp, 0xc
test eax, eax
jne 0x1001715a
inc esi
lea ecx, [esp + 0x10]
push esi
push 0x5c
call fcn.1002f4c0
mov esi, eax
cmp esi, 0xffffffff
je 0x100171dc
mov ebp, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.10030a00
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x1c], 1
push ecx
call edi
cmp eax, 0xffffffff
jne 0x100171b7
mov edx, dword [esp + 0x24]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10017205
mov eax, dword [esp + 0x24]
push eax
call edi
mov ecx, ebp
or ecx, 0x10
cmp eax, ecx
je 0x100171bb
mov edx, dword [esp + 0x24]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x100171bb
test al, 0x10
je 0x10017205
inc esi
lea ecx, [esp + 0x10]
push esi
push 0x5c
call fcn.1002f4c0
lea ecx, [esp + 0x24]
mov esi, eax
mov byte [esp + 0x1c], bl
call fcn.1002e3e0
cmp esi, 0xffffffff
jne 0x10017169
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1002e3e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call fcn.1002e3e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1002e3e0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10017240
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10187070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x10017385
push edi
call fcn.100547f0
add esp, 4
test eax, eax
je 0x10017385
push edi
lea ecx, [esp + 0x10]
call fcn.10032fc0
push 3
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.100348a0
push 2
push 0x101b1384
push edi
mov esi, eax
call fcn.10058b63
add esp, 0xc
test eax, eax
jne 0x100172ba
inc esi
lea ecx, [esp + 0xc]
push esi
push 0x5c
call fcn.100348a0
mov esi, eax
cmp esi, 0xffffffff
je 0x1001733e
mov ebp, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x14]
call fcn.10035ea0
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x18], 1
push ecx
call edi
cmp eax, 0xffffffff
jne 0x10017318
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10017366
mov eax, dword [esp + 0x20]
push eax
call edi
mov ecx, ebp
or ecx, 0x10
cmp eax, ecx
je 0x1001731c
mov edx, dword [esp + 0x20]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1001731c
test al, 0x10
je 0x10017366
inc esi
lea ecx, [esp + 0xc]
push esi
push 0x5c
call fcn.100348a0
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.10033760
cmp esi, 0xffffffff
jne 0x100172c9
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.10033760
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.10033760
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.10033760
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10017ac0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101870f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
lea ecx, [esi + 0x78]
mov dword [esp + 0x14], edi
call fcn.100390e0
lea ecx, [esi + 0x88]
mov byte [esp + 0x14], 1
call fcn.100390e0
lea ecx, [esi + 0x98]
mov byte [esp + 0x14], 2
call fcn.10040080
mov ecx, esi
mov byte [esp + 0x14], 3
mov dword [esi], 0x1019165c
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
call fcn.10017c40
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10017c40
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.1006d010
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10017d62
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.NtDll.dll
call ebx
push 0x101aeec4
mov dword [esi + 0x44], eax
call ebx
push 0x101b167c
mov dword [esi + 0x48], eax
call ebx
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x4c], eax
test ecx, ecx
pop ebx
je 0x10017db4
mov edx, dword [esi + 0x48]
test edx, edx
je 0x10017db4
test eax, eax
je 0x10017db4
push str.NtQuerySystemInformation
push ecx
call edi
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x44]
push str.NtQueryInformationProcess
push eax
call edi
mov ecx, dword [esi + 0x44]
push str.NtWow64QueryInformationProcess64
push ecx
mov dword [esi + 0x30], eax
call edi
mov edx, dword [esi + 0x4c]
push str.EnumProcesses
push edx
mov dword [esi + 0x34], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x4c]
push str.GetModuleFileNameExA
push eax
call edi
mov ecx, dword [esi + 0x4c]
push str.GetModuleFileNameExW
push ecx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
call fcn.1006d060
test eax, eax
je 0x10017d03
mov edx, dword [esi + 0x48]
push str.ProcessIdToSessionId
push edx
call edi
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x10017d44
mov eax, dword [esi + 0x30]
test eax, eax
je 0x10017d44
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10017d44
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10017d44
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10017d44
mov dword [esi + 0x50], 1
call fcn.1006d060
test eax, eax
je 0x10017d44
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x10017d44
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x48]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi + 0x4c]
push str.GetProcessImageFileNameW
push ecx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
jmp 0x10017db4
push 0x101aeec4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x48], eax
je 0x10017db4
push str.CreateToolhelp32Snapshot
push eax
call edi
mov edx, dword [esi + 0x48]
push str.Process32First
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x48]
push str.Process32Next
push eax
call edi
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x1c], eax
test ecx, ecx
je 0x10017db4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10017db4
test eax, eax
je 0x10017db4
mov dword [esi + 0x54], 1
mov eax, dword [esi + 0x48]
test eax, eax
je 0x10017dd4
push str.GetLongPathNameA
push eax
call edi
mov ecx, dword [esi + 0x48]
push str.GetLongPathNameW
push ecx
mov dword [esi + 4], eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x10017de9
mov eax, dword [esi + 0x50]
test eax, eax
jne 0x10017de9
mov ecx, esi
call fcn.10017df0
pop edi
pop esi
ret

Function at 0x10017e80
Capabilities:
Acquire debug privileges

Disassembly:
mov eax, dword [0x101f7538]
test eax, eax
jne 0x10017e9f
push 1
push 0x101b0954
push 0xffffffffffffffff
call fcn.1006c040
add esp, 0xc
mov dword [0x101f7538], eax
ret