joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b2a6
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, ebx
shl eax, 2
push eax
push 0x40
mov esi, 0x8007000e
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x1000b3d0
cmp ebx, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
jle 0x1000b32d
mov esi, dword [ebp + 8]
mov ebx, eax
sub ebx, esi
cmp dword [ebp - 4], edi
jne 0x1000b396
lea eax, [ebx + esi]
push eax
push 1
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
mov dword [ebp - 4], eax
je 0x1000b317
cmp eax, 5
jne 0x1000b31a
mov dword [ebp - 4], edi
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add esi, 4
cmp eax, dword [ebp + 0xc]
jl 0x1000b2ef
cmp dword [ebp - 4], edi
jne 0x1000b396
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0xc], edi
mov dword [ebp + 0x10], ebx
jle 0x1000b396

Function at 0x1000b365
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [ebp - 8]
mov eax, dword [eax + esi*4]
cmp eax, edi
je fcn.1000b365
push edi
push edi
push edi
push edi
lea ecx, [ebp + 8]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
mov dword [ebp - 4], eax
jne fcn.1000b365
add ebx, dword [ebp + 8]
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x1000b339
cmp dword [ebp - 4], edi
mov dword [ebp + 0x10], ebx
jne 0x1000b396
cmp ebx, edi
jbe 0x1000b396
mov eax, ebx
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, edi
jne 0x10012894
mov dword [ebp - 4], 0xe
push esi
push esi
push 0x597
call fcn.10006890
cmp eax, 1
je fcn.1001294d
cmp eax, 8
je fcn.1001294d
test byte [ebp - 0x25b], 0x80
je 0x1001292e
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x258]
call fcn.1000ed9c
test al, al
jne 0x1001292e
lea eax, [ebp - 0x228]
push eax
call fcn.1000d95c
test eax, eax
jne 0x100128f3
call dword [fcn.1001396c]
cmp eax, 5
je 0x100128f3
cmp eax, 0x52e
jne 0x1001292e
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x258]
call fcn.1000af9c
mov eax, dword [ebp - 0x258]
cmp eax, esi
je 0x10012970
mov eax, dword [eax]
dec eax
push eax
lea ecx, [ebp - 0x258]
call fcn.10002460
cmp eax, esi
je 0x1001292e
push eax
push esi
push 0x4d1
call fcn.10003e64
push esi
push esi
push esi
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x254]
push eax
push edi
call fcn.10010f98
test eax, eax
jne 0x10012894
xor eax, eax
jmp 0x10012911
Function at 0x1000b788
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x1000e415
call fcn.100110e4
sub esp, 0x64
mov al, byte [ebp + 0xb]
push esi
xor esi, esi
mov dword [ebp - 0x10], esi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x70]
push fcn.10013010
push 0x20
push eax
mov dword [ebp - 4], esi
call sub.KERNEL32.dll_GetCommandLineA
add esp, 0x10
test eax, eax
jge 0x1000b7e2
push 0x8007000e
lea ecx, [ebp - 0x30]
call fcn.10007044
push 0x1000e889
lea eax, [ebp - 0x30]
push eax
call fcn.10001fc8
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x20]
mov word [ebp - 0x32], si
call fcn.1000a534
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.100048c8
push 1
lea ecx, [ebp - 0x20]
call fcn.10004d84
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1000b86c
Capabilities:
Accept command line arguments
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x40]
xor edi, edi
push ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
call dword [fcn.1001396c]
cmp dword [esi + 0x3c], edi
jne 0x100015f4
push 4
call dword [0x1000b3b4]
mov dword [esi + 0x3c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp dword [esi + 0x3c], edi
je 0x10001626
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0xc], eax
add eax, 0x3c
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
jne 0x1000b838
mov dword [ebp - 4], 0x8007000e
mov ecx, dword [ebp - 0xc]
mov dword [ebx], esi
mov esi, dword [ebp + 8]
lea edi, [ebx + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov eax, ecx
shr ecx, 2
lea edi, [ebx + 0x3c]
mov dword [ebx + 0x18], edi
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 8]
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x1000b8c6
or dword [ebx + 0x24], 0x10
mov eax, dword [edi]
push edi
call dword [eax + 4]
push 0x10012f86
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
push fcn.10006e74
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebx + 0x14], eax
je 0x1000b8e7
lea esi, [edi + 0x40]
push esi
call dword [fcn.1001396c]
push ebx
push 0x7fffffff
push dword [edi + 0x3c]
call dword [fcn.1000f888]
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1000162d
test byte [edi + 0xe], 4
je 0x1000b86c
lea ecx, [ebp + 0x10]
call fcn.1000b08a
push 1
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea ecx, [edi + 0x78]
call fcn.1000a896
jmp 0x1000b86c
mov esi, dword [fcn.1001396c]
call esi
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push eax
call fcn.100023f2
push eax
push dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
push 0x61
push 3
push dword [ebp + 8]
Function at 0x1000c3c4
Capabilities:
Create thread

Disassembly:
push 0x10
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x1000c441
mov ecx, dword [ebp + 8]
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebx + 0x10]
shr ecx, 6
and ecx, 1
mov dword [esi + 0xc], ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push esi
push 0x100028a7
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x1000c44a
and dword [ebp + 8], 0
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
push 0x2ee
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call esi
and dword [ebp - 4], 0
jmp 0x1000c3b5
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1000c441

Function at 0x1000ce23
Capabilities:
Accept command line arguments

Disassembly:
lea eax, [ebp - 0x4d0]
push eax
lea eax, [ebp - 0x4cc]
push eax
lea eax, [ebp - 0x4d4]
push eax
push fcn.10001caf
push 0x10012c44
push 0x80000001
mov dword [ebp - 0x4cc], 2
mov dword [ebp - 0x4d0], 4
call dword [fcn.10013be7]
mov eax, dword [ebp - 0x4cc]
dec eax
neg eax
mov ecx, 0x865
sbb eax, eax
add eax, ecx
push eax
push ecx
push 0x864
push ebx
mov dword [ebp - 0x4cc], eax
call dword [sym.imp.USER32.dll_CheckRadioButton]
push edi
call dword [fcn.1001396c]
cmp eax, esi
mov dword [ebp - 0x4c8], eax
je 0x1000d7de
push 0x100
xor eax, eax
mov dword [ebp - 0x4c0], esi
mov ecx, 0xac
lea edi, [ebp - 0x4bc]
push 0x2b4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4c0]
push eax
push esi
push dword [ebp - 0x4c8]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp dword [ebp - 0x4c0], esi
je 0x1000d7de
push esi
push dword [ebp - 0x4c0]
push 0x170
push 0x855
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x1000d7de
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.10013344
leave
ret 0x10
Function at 0x1000d59b
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1001e6e4]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 4]
push edi
mov edi, dword [esi]
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [edi + eax*2], 0x5c
inc eax
mov dword [ebp - 0x260], eax
lea eax, [edi + eax*2]
and word [eax + 2], 0
mov word [eax], 0x2a
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x264], eax
je 0x1000d734
and dword [ebp - 0x25c], 0
lea eax, [ebp - 0x228]
push eax
call fcn.1000121c
test eax, eax
jne 0x1000d70d
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, ebx
sub ecx, dword [ebp - 0x260]
cmp eax, ecx
jl 0x1000d662
lea ecx, [eax + 1]
mov eax, 0x400
cmp ecx, eax
jl 0x1000d643
mov eax, ecx
add ebx, eax
push 2
lea eax, [ebx + ebx]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
test edi, edi
je fcn.1000da54
mov dword [esi], edi
mov dword [esi + 4], ebx
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x260]
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [edi + eax*2]
push eax
call fcn.1000e05c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test byte [ebp - 0x254], 0x10
mov dword [ebp - 0x268], eax
je 0x1000d69d
mov dword [ebp - 0x25c], 1
push dword [esi + 0x10]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
push edi
call dword [esi + 0xc]
cmp eax, 1
mov dword [ebp - 0x258], eax
jne 0x1000d6f1
cmp dword [esi + 8], 0
je 0x1000d6f1
cmp dword [ebp - 0x25c], eax
jne 0x1000d6f1
push esi
call fcn.1000d59b
mov eax, dword [ebp - 0x268]
and word [edi + eax*2], 0
push dword [esi + 0x10]
lea eax, [ebp - 0x254]
push eax
push 2
push edi
call dword [esi + 0xc]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 2
jne 0x1000d704
mov dword [ebp - 0x258], 1
cmp dword [ebp - 0x258], 1
jne 0x1000d728
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000d601
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x258]
pop edi
pop esi
pop ebx
call fcn.10013344
leave
ret 4

Function at 0x1000d74c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100110b7
and eax, ebx
cmp al, bl
je 0x1000d76e
push dword [ebp - 4]
call esi
jmp 0x100110aa
mov dword [ebp - 8], 1
jmp 0x100110b7
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x1c]
push ecx
push dword [eax + 0x18]
push dword [ebp + 0xc]
call fcn.10006778
test eax, eax
je 0x100110b9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push dword [ebp - 4]
call esi
mov edi, dword [pe_dos_header]
push dword [ebp - 4]
call edi
test eax, eax
je 0x1000d74c
pop edi
pop esi
lea eax, [ebp - 4]
push eax
call fcn.100114ec
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0x14
Function at 0x1000edc8
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x1001e6e4]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 4]
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov edi, dword [esi]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x25c], eax
cmp word [edi], ax
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
je fcn.1000ee36
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [edi + eax*2], 0x5c
inc eax
and word [edi + eax*2], 0
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x26c], edi
xor eax, eax

Function at 0x1000ee36
Capabilities:
Accept command line arguments

Disassembly:
push eax
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x254]
push ecx
push eax
push dword [ebp - 0x26c]
call fcn.10010eb0
cmp eax, 0xffffffff
mov dword [ebp - 0x274], eax
je 0x1000efc1

Function at 0x1000eeff
Capabilities:
Accept command line arguments

Disassembly:
push dword [esi + 0x10]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x270]
push dword [ebp - 0x25c]
push dword [ebp - 0x260]
push dword [ebp - 0x264]
push edi
call dword [esi + 0xc]
cmp eax, 1
mov dword [ebp - 0x258], eax
jne 0x1000ef69
cmp dword [esi + 8], 0
je 0x1000ef69
cmp dword [ebp - 0x264], eax
jne 0x1000ef69
push esi
call fcn.1000edc8
mov ecx, dword [ebp - 0x278]
xor eax, eax
mov word [edi + ecx*2], ax
push dword [esi + 0x10]
lea ecx, [ebp - 0x254]
push ecx
push eax
push eax
push eax
push 2
push edi
call dword [esi + 0xc]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 2
jne 0x1000ef7c
mov dword [ebp - 0x258], 1
cmp dword [ebp - 0x258], 1
jne 0x1000efb6
Function at 0x1000f160
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1000375b
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x11c
cmp eax, 1
jne 0x1000f287
lea ecx, [esp + 0xc]
call fcn.10010f34
push 0
push 2
push 0x1002f804
push 1
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x138], 0
call fcn.100047b0
push 0x10030b8c
push 0x1388
push 0x1002f804
lea ecx, [esp + 0x18]
call fcn.100115ec
mov dword [esp], 0x4f8c
cmp word [esp], 0xcb0
jne 0x1000f1de
call fcn.10010a06
mov eax, dword [esp]
mov dword [0x10031f50], 0x10031f58
and eax, 0xff
lea ecx, [eax + eax*2]
movsx eax, byte [0x10031f58]
add eax, 0xfffc
cdq
mov dword [esp + 4], edx
movsx edx, byte [esp + 0xb]
add edx, eax
shl ecx, 2
mov dword [0x10031f5c], edx
mov eax, dword [0x10031f5c]
sub eax, ecx
mov dword [0x10031f54], eax
mov ecx, dword [esp]
mov edx, dword [esp + 4]
add ecx, 2
adc edx, 0
mov dword [esp], ecx
mov dword [esp + 4], edx
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [0x10031f54]
mov eax, dword [0x10031f54]
mov ecx, dword [0x1001b048]
mov eax, dword [0x1001b044]
push 0x1002f800
sub ecx, eax
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x10030b8c
push 0x1002f804
mov edx, dword [esp + 0x134]
push edx
push 1
call fcn.100068e0
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.1000bff8
mov ecx, dword [esp + 0x11c]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x128
ret 0xc

Function at 0x1000fdc8
Capabilities:
Accept command line arguments
Get common file path
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x30
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea edi, [esi + 0xbc]
push edi
lea eax, [esi + 0xb8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push 0x50
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call sub.KERNEL32.dll_GetCommandLineA
cmp word [esi], bx
jne 0x1000fe29
push 0x50
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [esi + 0xb8], ebx
mov dword [edi], ebx
push esi
call dword [fcn.1001396c]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [ebp + 8]
mul dword [ebp - 4]
push ebx
push dword [ebp - 8]
push edx
push eax
call fcn.10001254
mov dword [esi + 0xa0], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xa8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xac], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xb0], eax
mov eax, dword [ebp - 0x18]
pop edi
mov dword [esi + 0xa4], edx
mov dword [esi + 0xb4], eax
pop esi
pop ebx
leave
ret 4
Function at 0x10010634
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1001e6e4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x224], eax
xor ebx, ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
xor eax, eax
lea edi, [ebp - 0x23c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x7f02
push ebx
stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push esi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x228], eax
call fcn.10004948
cmp eax, ebx
mov dword [ebp - 0x220], eax
jl 0x1001083c
mov dword [ebp - 0x21c], ebx

Function at 0x100106c1
Capabilities:
Check if file exists

Disassembly:
cmp dword [ebp - 0x21c], eax
jae 0x1001083c
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x218], 0x60010000
call fcn.1000b365
cmp eax, ebx
mov dword [ebp - 0x220], eax
jl 0x1001083c
test byte [ebp - 0x215], 0x40
je 0x1001082a
test byte [ebp - 0x216], 1
je 0x10010779
push ebx
lea eax, [ebp - 0x214]
push eax
push 3
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], ebx
call fcn.10008e95
cmp dword [ebp - 0x214], ebx
je 0x10010779
mov ecx, dword [ebp - 0x210]
push ebx
push dword [ebp - 0x214]
call fcn.1001345c
test al, al
jne 0x1001076d
mov ecx, dword [ebp - 0x210]
push 1
push ebx
push dword [ebp - 0x214]
call fcn.10001da6
lea eax, [ebp - 0x214]
push eax
call fcn.100114ec
mov edi, dword [ebp - 0x218]
mov esi, dword [ebp - 0x224]
and edi, 0x20000000
cmp esi, ebx
je fcn.100107b0
cmp edi, ebx
je fcn.100107b0
cmp dword [esi], ebx
jne fcn.100107b0
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.1000af9c
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
push dword [ebp - 0x228]
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [ebp - 0x23c]
call fcn.10006778
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
pop edi
pop esi
pop ebx
call fcn.10013344
leave
ret 0x14

Function at 0x100107b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x10010835
mov eax, dword [eax]
mov ecx, dword [ebp - 0x210]
cmp edi, ebx
setne al
push 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10001da6
cmp edi, ebx
jne 0x1001082a
push fcn.10012854
lea eax, [ebp - 0x20c]
push eax
call dword [fcn.10013be7]
test eax, eax
je 0x1001082a
lea eax, [ebp - 0x20c]
push eax
call dword [fcn.1001396c]
cmp eax, ebx
je 0x100107f8
mov word [eax], bx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
je 0x1001082a
test al, 0x10
je 0x1001082a
mov ecx, dword [ebp - 0x210]
push 1
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.10001da6
inc dword [ebp - 0x21c]
jmp 0x100106b1
xor eax, eax
jmp fcn.100106c1
Function at 0x100109cb
Capabilities:
Create directory
Get session user name

Disassembly:
push ebx
push eax
call esi
test eax, eax
jne 0x100109dc
call edi
cmp eax, 0xb7
jne fcn.10010a06
push 0x10009e53
lea ecx, [ebp - 0x34]
call fcn.10012a30
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x100109f5
mov eax, fcn.100089e8
push ebx
push eax
call esi
test eax, eax
jne 0x10010a1a
call edi
cmp eax, 0xb7
je 0x10010a1a
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x10010a42
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x270]
push eax
mov dword [ebp + 0x18], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x270]
mov cl, byte [ebp + 0x1b]
mov byte [ebp - 0x44], cl
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.10001ab3
mov al, byte [ebp + 0x1b]
mov byte [ebp - 0x58], al
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.1000b788
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.1000106e
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.10004d84
mov esi, dword [ebp - 0x40]
cmp esi, ebx
jne 0x10010aa8
mov esi, fcn.100089e8
mov eax, dword [ebp - 0x54]
cmp eax, ebx
jne 0x10010ab4
mov eax, fcn.100089e8
push eax
call fcn.10013454
push esi
mov dword [ebp + 0x18], eax
call fcn.10013454
mov ecx, dword [ebp + 0x18]
push dword [ebp + 0xc]
add ecx, eax
mov dword [ebp + 0x18], ecx
call fcn.10013454
mov ecx, dword [ebp + 0x18]
add ecx, eax
push edi
mov dword [ebp + 0x18], ecx
call fcn.10013454
mov ecx, dword [ebp + 0x18]
lea eax, [ecx + eax + 0xa]
add esp, 0x10
cmp eax, 0x104
jbe 0x10010b0d
push 0x80004005
lea ecx, [ebp - 0x6c]
call fcn.10007044
push 0x1000e889
lea eax, [ebp - 0x6c]

Function at 0x10011034
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
inc eax
jmp 0x100110c5
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
test word [ebp + 0x10], 0x411
push ebx
je 0x1000d77a
mov eax, dword [ebp + 0x14]
push 6
pop ebx
and eax, ebx
cmp al, bl
je 0x1000d77a
mov eax, dword [ebp + 0x18]
and eax, ebx
cmp al, bl
je 0x1000d77a
test byte [ebp + 0x14], 0x10
je fcn.1001107d
test byte [ebp + 0x18], 0x10
jne 0x1000d77a

Function at 0x1001107d
Capabilities:
Check if file exists

Disassembly:
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100110b7
and eax, ebx
cmp al, bl
je 0x1000d76e
push dword [ebp - 4]
call esi
jmp 0x100110aa
mov dword [ebp - 8], 1
jmp 0x100110b7
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x1c]
push ecx
push dword [eax + 0x18]
push dword [ebp + 0xc]
call fcn.10006778
test eax, eax
je 0x100110b9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push dword [ebp - 4]
call esi
mov edi, dword [pe_dos_header]
push dword [ebp - 4]
call edi
test eax, eax
je 0x1000d74c
pop edi
pop esi
lea eax, [ebp - 4]
push eax
call fcn.100114ec
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0x14
Function at 0x10011394
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20006
push esi
push 0x1000239c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x100113ea
push 8
push dword [ebp + 8]
push 3
push esi
push fcn.10002a54
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
jne 0x100113d8
push 1
pop esi
jmp 0x100113df
push eax
call dword [fcn.1001396c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100113f1
push eax
call dword [fcn.1001396c]
mov eax, esi
pop esi
leave
ret 4