joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10195c80
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0
call sub.advapi32.dll_GetUserNameW
test eax, eax
jne 0x10195dc5
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x10195d08
xor ebx, ebx
cmp esi, 0x40000000
setb al
jae 0x10195de9
mov bl, al
lea ecx, [esi + esi]
add ebx, ebx
test ecx, ecx
mov dword [ebp - 0x14], ecx
js 0x10195df0
je 0x10195d0f
mov eax, dword [0x103564a0]
mov edi, dword [0x1035648c]
movzx eax, byte [eax]
mov eax, dword [edi]
test eax, eax
jne 0x10195cf2
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10195ddb
mov dword [edi], eax
push dword [ebp - 0x14]
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov edi, eax
test edi, edi
jne 0x10195d19
jmp 0x10195ddb
mov edi, 2
jmp 0x10195d19
mov edi, ebx
test edi, edi
je 0x10195ddb
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
push eax
push edi
call sub.advapi32.dll_GetUserNameW
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10195d51
mov eax, dword [ebp - 0x10]
xor ecx, ecx
sub eax, 1
cmovb eax, ecx
push eax
push edi
push ebx
call fcn.1014d9e0
add esp, 0xc
test esi, esi
je 0x10195dbb
mov eax, dword [0x1035648c]
push edi
push 0
jmp 0x10195db4
mov eax, dword [0x103564a0]
movzx eax, byte [eax]
mov eax, dword [0x1035648c]
mov eax, dword [eax]
test eax, eax
jne 0x10195d79
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10195df7
mov ecx, dword [0x1035648c]
mov dword [ecx], eax
push 7
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x10195df7
test esi, esi
mov dword [eax + 3], 0x6e776f6e
mov dword [eax], 0x6e6b6e75
mov dword [ebx], eax
mov dword [ebx + 4], 7
mov dword [ebx + 8], 7
mov byte [ebx + 0xc], 1
je 0x10195dbb
push edi
push 0
mov eax, dword [0x1035648c]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1034fa54
push 0x19
push 0x1034f9df
call fcn.10026890
add esp, 0xc
ud2
push dword [ebp - 0x14]
push ebx
call fcn.1001a7e0
add esp, 8
ud2
call fcn.1001a7a0
ud2
call fcn.1001a7a0
ud2
push 7
push 1
call fcn.1001a7e0
add esp, 8
ud2
Function at 0x1019cf80
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
xorps xmm0, xmm0
mov edi, ecx
lea esi, [ebp - 0x30]
mov dword [ebp - 0x10], edx
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
push 2
push 0x20
push esi
push 0
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x1019cfbd
mov ebx, eax
push 0x20
push esi
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x1019cfff
movups xmm0, xmmword [ebp - 0x30]
movups xmm1, xmmword [ebp - 0x20]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
movups xmmword [edi], xmm0
xorps xmm0, xmm0
movups xmmword [edi + 0x10], xmm1
movups xmmword [edi + 0x20], xmm0
mov edx, dword [ebp + 8]
add eax, 0xffffff00
adc ecx, 0xffffffff
mov dword [edi + 0x40], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x3c], ecx
mov ecx, edi
mov dword [edi + 0x38], eax
call fcn.1019f790
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x103564a0]
mov esi, dword [0x1035648c]
movzx eax, byte [eax]
mov eax, dword [esi]
test eax, eax
jne 0x1019d01e
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1019d046
mov dword [esi], eax
push 4
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1019d046
add ebx, 0x80000000
mov dword [eax], ebx
push eax
push 0
push dword [esi]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
jmp 0x1019cfd9
push 4
push 4
call fcn.1001a7e0
add esp, 8
ud2

Function at 0x1019f140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov esi, edx
mov edi, ecx
lea eax, [ebp - 0x20]
push dword [ebp + 0x10]
push eax
call fcn.101b9610
add esp, 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], ebx
add eax, ebx
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], 0
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x3c]
call fcn.101a1630
movzx eax, byte [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
push ecx
push eax
push 0
push ebx
push esi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x1019f1dc
mov dword [edi + 4], eax
xor eax, eax
cmp dword [ebp - 0x28], 0
mov byte [edi], al
je 0x1019f1bd
mov eax, dword [0x1035648c]
push ebx
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
cmp dword [ebp - 0x1c], 0
je 0x1019f1d4
mov eax, dword [0x1035648c]
push dword [ebp - 0x10]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, 4
cmp dword [ebp - 0x28], 0
mov byte [edi], al
jne 0x1019f1ae
jmp 0x1019f1bd
Function at 0x101aa700
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
call fcn.101b6be0
mov edi, eax
mov esi, edx
push eax
call sub.KERNEL32.dll_GetDriveTypeW
mov ebx, eax
test esi, esi
mov word [edi], 0
je 0x101aa73d
mov eax, dword [0x1035648c]
push edi
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
cmp ebx, 7
jae 0x101aa766
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x101aa75c
mov eax, dword [0x1035648c]
push dword [ebp - 0x10]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x28], str.Invalid_Drive_Type
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], str.called__Option::unwrap____on_a__None__valueIndex_out_of_bounds
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x28]
push 0x10351858
push eax
call fcn.10026810
add esp, 8
ud2

Function at 0x101ab460
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, dword [ebp + 8]
call sub.KERNEL32.dll_GetLogicalDrives
test eax, eax
je 0x101ab574
mov edi, eax
mov ebx, 1
xor edx, edx
mov eax, 4
mov esi, 0x41
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
not edi
jmp 0x101ab4c5
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [eax + edx*4], esi
inc edx
mov dword [ebp - 0x10], edx
inc esi
add ebx, ebx
cmp esi, 0x5a
je 0x101ab4d8
test ebx, edi
jne 0x101ab4bd
cmp edx, dword [ebp - 0x14]
jne 0x101ab4b6
lea ecx, [ebp - 0x18]
call fcn.1019e790
jmp 0x101ab4b0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
je 0x101ab57f
test esi, esi
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 0
je 0x101ab549
shl esi, 2
mov eax, 4
xor edi, edi
xor edx, edx
jmp 0x101ab52e
add edi, 4
mov dword [eax + edx*4], ebx
inc edx
cmp esi, edi
mov dword [ebp - 0x10], edx
je 0x101ab549
mov ecx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x14]
mov ebx, dword [ecx + edi]
jne 0x101ab520
lea ecx, [ebp - 0x18]
call fcn.1019e790
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
jmp 0x101ab520
cmp dword [ebp - 0x20], 0
je 0x101ab560
mov eax, dword [0x1035648c]
push dword [ebp - 0x1c]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
movsd xmm0, qword [ebp - 0x18]
mov dword [ebx + 8], eax
movsd qword [ebx], xmm0
jmp 0x101ab58e
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
jmp 0x101ab582
mov ebx, dword [ebp + 8]
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx], 0
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101ad900
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
push 0
push 1
call sub.KERNEL32.dll_OpenProcess
test eax, eax
je 0x101ad934
push 1
push eax
call sub.KERNEL32.dll_TerminateProcess
test eax, eax
je 0x101ad9fd
mov byte [esi], 4
jmp 0x101adacd
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x30], 0x103525d4
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x1002d590
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x30]
lea ebx, [ebp - 0x3c]
push eax
push ebx
call fcn.1001ac00
add esp, 8
mov eax, dword [0x103564a0]
mov esi, dword [0x1035648c]
movzx eax, byte [eax]
mov eax, dword [esi]
test eax, eax
jne 0x101ad99e
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101adad7
mov dword [esi], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101adad7
mov edi, eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 8], eax
mov eax, dword [0x103564a0]
movsd xmm0, qword [ebp - 0x3c]
movsd qword [edi], xmm0
movzx eax, byte [eax]
mov eax, dword [esi]
test eax, eax
jne 0x101ad9da
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ad9ec
mov dword [esi], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
jne 0x101adab4
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101adaff
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x30], 0x10352670
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x1002d590
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x30]
lea ebx, [ebp - 0x3c]
push eax
push ebx
call fcn.1001ac00
add esp, 8
mov esi, dword [0x103564a0]
movzx eax, byte [esi]
mov eax, dword [0x1035648c]
mov eax, dword [eax]
test eax, eax
jne 0x101ada6d
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101adae5
mov ecx, dword [0x1035648c]
mov dword [ecx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101adae5
mov edi, eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 8], eax
movsd xmm0, qword [ebp - 0x3c]
movsd qword [edi], xmm0
movzx eax, byte [esi]
mov esi, dword [0x1035648c]
mov eax, dword [esi]
test eax, eax
jne 0x101adaa6
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101adaf3
mov dword [esi], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101adaf3
mov esi, dword [ebp + 8]
mov dword [eax], edi
mov dword [eax + 4], 0x103507b8
mov byte [eax + 8], 0x27
mov dword [esi + 4], eax
mov dword [esi], 3
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101adaff
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101adaff
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
ud2
Function at 0x101b1ce0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov edi, edx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
call fcn.101b6be0
mov esi, eax
mov ebx, edx
lea eax, [ebp - 0x18]
push 4
push eax
push 4
push 0
push esi
mov dword [ebp - 0x14], edi
push edi
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
test ebx, ebx
mov word [esi], 0
je 0x101b1d31
mov eax, dword [0x1035648c]
push esi
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
test edi, edi
je 0x101b1e07
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x40], 0x10352a04
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], 0x1002d590
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 1
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
push ecx
push eax
call fcn.1001ac00
add esp, 8
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov esi, dword [0x103564a0]
mov edi, dword [0x1035648c]
mov dword [ebp - 0x38], eax
movsd qword [ebp - 0x40], xmm0
movzx eax, byte [esi]
mov eax, dword [edi]
test eax, eax
jne 0x101b1db0
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101b1e24
mov dword [edi], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101b1e24
mov ebx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x28]
movsd qword [ebx], xmm0
movzx eax, byte [esi]
mov eax, dword [edi]
test eax, eax
jne 0x101b1de3
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101b1e32
mov dword [edi], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101b1e32
mov dword [eax], ebx
mov esi, eax
mov ebx, 3
mov dword [eax + 4], 0x103507b8
mov byte [eax + 8], 0x27
jmp 0x101b1e0c
mov ebx, 4
push dword [ebp - 0x14]
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
mov dword [eax + 4], esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101b1e3e
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
ud2
Function at 0x101c40f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.101beac0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.101beac0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x101c4150
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x1038ab64]
test esi, esi
jle 0x101c4270
mov eax, dword [0x1038ab68]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x101c4184
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x101c4207
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x101c4170
mov dword [esp], ebx
call fcn.101c4940
mov edi, eax
test eax, eax
je 0x101c4297
mov eax, dword [0x1038ab68]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.101c4a80
mov edx, dword [0x1038ab68]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x101c4277
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x101c4200
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x101c4210
add dword [0x1038ab64], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x1038ab68]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x101c4200
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.101c40f0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x101c418e
mov eax, dword [0x1038ab68]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.101c40f0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.101c40f0
lea esi, [esi]
nop
Function at 0x101c45b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x1038ab74
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x1038ab6c]
sub esp, 4
test ebx, ebx
je 0x101c4605
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x101c45fe
test esi, esi
je 0x101c45fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x101c45e0
mov dword [esp], 0x1038ab74
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x101c4940
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x10000000], 0x5a4d
jne 0x101c4965
mov ecx, dword [0x1000003c]
cmp dword [ecx + 0x10000000], 0x4550
lea edx, [ecx + 0x10000000]
je 0x101c4970
ret
cmp word [ecx + 0x10000018], 0x10b
jne 0x101c4965
push esi
movzx eax, word [ecx + 0x10000014]
push ebx
movzx esi, word [ecx + 0x10000006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x10000000
test si, si
je 0x101c49b8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x101c49ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x101c49ba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x101c49a0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x101c55e0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x101c5660
test al, 1
jne 0x101c5610
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret
and eax, 0xfffffffe
mov dword [esp], esi
mov dword [esp + 4], eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
sub esp, 8
test eax, eax
jne 0x101c5648
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str._ERROR__Readonly_flag_detected__but_SetFileAttributeW_call_failed:__d_n
mov dword [esp + 4], eax
call fcn.101c5680
jmp 0x101c55fe
mov dword [esp + 4], ebx
mov dword [esp], str._INFO__Readonly_flag_removed._File_new_attributes_are:__lu_n
call fcn.101c5680
jmp 0x101c55fe
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x103559f8
call fcn.101c5680
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
Function at 0x41275a
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10085d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.0040d6aa
test eax, eax
jne 0x4127c6
push ebp
push 0x100a5ca8
mov ecx, edi
call fcn.004119da
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.0040d22a
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00404e4a
push ebx
mov dword [esp + 0x4c], ebp
call fcn.0040d85a
add esp, 4
test eax, eax
je 0x412869
add esi, 0x18
push esi
call fcn.004058da
add esi, eax
push esi
call fcn.004058da
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x412b6c
jmp dword [ecx*4 + 0x1000ee30]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.00411b1a
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.004058da
add esi, eax
push esi
call fcn.004058da
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x4128ba
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x10088400]
test eax, eax
je 0x4128ba
mov eax, 1
jmp 0x4128bc
xor eax, eax
cmp ebx, 8
jge 0x412b21
cmp ebx, 7
ja 0x412b6c
jmp dword [ebx*4 + 0x1000ee40]
test eax, eax
jne 0x412b34
mov ecx, dword [esp + 0x10]
push eax
push 0x100a5c94
call fcn.004119da
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.0041307a
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x1008abc0
call fcn.0040507a
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x4175fa
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10085338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0041817a
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x10088450]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [0x100883f4]
test eax, eax
je 0x4176a3
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0041728a
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x100883dc]
push edi
lea ecx, [esp + 0x4c]
call fcn.00467072
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.0043163a
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x10088080]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x100883e0]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x10088408]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.004670e4
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14