joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1124
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x4fff78]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4b1168
push 0xa
pop esi
cmp word [ebx], si
jne 0x4b1168
or byte [eax + edi + 0x28], 4
jmp 0x4b116d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x4b12d8
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x4b12b0
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4b11ba
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x4b11e4
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4b1203
push 0xa
pop ebx
cmp word [edx], bx
jne 0x4b11d1
push ebx
add eax, 4
pop edx
jmp 0x4b11d9
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4b117f
jmp 0x4b12d8
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b12ab
cmp dword [ebp - 0x14], 0
je 0x4b12ab
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x4fff78]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4b1287
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4b124f
mov word [esi], ax
jmp 0x4b12d5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x4fff78]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4fff78]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4fff78]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x4b12d5
cmp word [ebp - 4], ax
jne 0x4b1291
cmp esi, ebx
je 0x4b1247
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401a00
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4b12d8
push 0xd
pop eax
jmp 0x4b1247
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x4fff78]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4b12d2
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4b12d8
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b9222
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4fc140]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4b926d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004b9695
test al, al
jne 0x4b9267
sub edx, 2
cmp edx, edi
jne 0x4b924d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4b928f
lea eax, [edi + 2]
cmp edx, eax
je 0x4b928f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004b8e12
add esp, 0x10
jmp 0x4b9387
push esi
lea ecx, [ebp - 0x255]
call fcn.004b9695
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b92d0
push dword [ebp - 0x25c]
jmp 0x4b927f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4b930d
cmp word [ebp - 0x226], 0
je 0x4b932e
cmp word [ebp - 0x226], ax
jne 0x4b930d
cmp word [ebp - 0x224], 0
je 0x4b932e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004b8e12
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4b937a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4b92e7
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4b9362
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4b9387
push 0x4b87fa
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405d08
add esp, 0x10
jmp 0x4b9357
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403396
leave
ret

Function at 0x4bf03e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004048a4
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4bf0ad
cmp esi, dword [ebp - 4]
je 0x4bf0a8
cmp dword [ebp + 0xc], 0
je 0x4bf0a8
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4bf085
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004bea69
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4bf0af
xor eax, eax
inc eax
jmp 0x4bf0af
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4038a9
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
and dword [ebp - 4], 0
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov edi, edx
lea ecx, [ebp - 4]
push 0x2002
call fcn.004054de
test al, al
jne 0x4038d0
xor bl, bl
jmp 0x403906
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4038cc
push dword [ebp + 8]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4038cc
and dword [ebp - 4], 0
mov bl, 1
lea ecx, [ebp - 4]
call fcn.004054ff
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x403ab8
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x403c44
Capabilities:
Create directory

Disassembly:
mov eax, 0x429c40
call fcn.004289b0
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x403c67
mov al, 1
jmp 0x403cad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403c78
xor al, al
jmp 0x403cad
lea ecx, [ebp - 0x44]
call fcn.00403e07
lea ecx, [ebp - 0x1c]
call fcn.00402664
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.004040be
test al, al
je 0x403ca2
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00402185
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4040bd
or eax, eax
ret
Function at 0x404769
Capabilities:
Get disk information

Disassembly:
mov eax, 0x429d04
call fcn.004289b0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.00401f5e
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x404837
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4047a5
mov eax, ebx
add eax, eax
push eax
call fcn.0040215e
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x404830
cmp ebx, dword [ebp - 0x14]
ja 0x404830
lea ecx, [ebp - 0x2c]
call fcn.00402664
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x404818
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x40480d
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.004027a3
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00401b39
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x4047e3
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00402185
push esi
call fcn.00402185
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x404839
push esi
call fcn.00402185
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4048be
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4048e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4048e8
xor al, al
jmp 0x404908
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00428c90
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop edi
leave
ret 4
Function at 0x40dcfe
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42a732
call fcn.004289b0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.00402664
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0040dd4d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40ddaa
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x42a77d
call fcn.004289b0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.004102d0
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0040ddf5
push dword [esi + 0x24]
call fcn.00402185
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.0041c734
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040e344
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x411571
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
lea eax, [esp]
neg cl
sbb ecx, ecx
and cl, 1
add ecx, 0x100
or cx, 0x4010
push ecx
push 0x2b4
push eax
push 0x90
push 0x42d7c8
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add esp, 0x2b4
ret

Function at 0x412577
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x42aeec
call fcn.004289b0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi], 0x42e0c0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
mov byte [esi + 0x45], bl
call fcn.00402664
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
call fcn.00402664
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
mov byte [esi + 0x60], bl
call fcn.00402664
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.00402664
lea eax, [esi + 0x80]
mov byte [esi + 0x7c], 1
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 7
call fcn.00402664
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x42e084
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x412583
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x42aeec
call fcn.004289b0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi], 0x42e0c0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
mov byte [esi + 0x45], bl
call fcn.00402664
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
call fcn.00402664
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
mov byte [esi + 0x60], bl
call fcn.00402664
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.00402664
lea eax, [esi + 0x80]
mov byte [esi + 0x7c], 1
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 7
call fcn.00402664
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x42e084
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x412a50
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x42afe2
call fcn.004289b0
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi], 0x42e0c0
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edi
mov dword [esi + 8], edi
call fcn.00402664
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00402664
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00402664
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi], 0x42e130
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x412ab2
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42b015
call fcn.004289b0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.0041c734
push dword [esi + 0x24]
call fcn.00402185
push dword [esi + 0x18]
call fcn.00402185
push dword [esi + 0xc]
call fcn.00402185
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi], 0x42e0f8
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x413f71
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x42b2a8
call fcn.004289b0
sub esp, 0x320
push ebx
mov dword [ebp - 0x1c], ecx
push esi
push edi
lea ecx, [ebp - 0x28]
call fcn.00402664
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp byte [esi], 0
je 0x413fde
push dword [esi + 0xc]
lea ecx, [ebp - 0x40]
push dword [esi + 8]
call fcn.00413e2d
push eax
mov edx, 0xdb0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00413ecd
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00402807
push dword [ebp - 0x58]
call fcn.00402185
push dword [ebp - 0x40]
and byte [ebp - 4], 0
call fcn.00402185
pop ecx
pop ecx
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00402afc
lea ebx, [eax + 1]
lea eax, [ebp - 0x4c]
push ebx
push eax
mov ecx, edi
call fcn.004089e6
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
lea eax, [eax + ebx*2]
push eax
call fcn.004026a7
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00413f13
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.00413f13
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402737
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00402979
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x18]
push eax
call fcn.004029ec
lea ecx, [ebp - 0x18]
call fcn.00402979
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x18]
push eax
call fcn.004029ec
lea ecx, [ebp - 0x18]
call fcn.00402979
cmp byte [esi + 1], 0
je 0x4140ba
mov edx, 0x3f4
lea ecx, [ebp - 0x40]
call fcn.004058db
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004029ec
push dword [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00402185
lea ecx, [ebp - 0x18]
mov dword [esp], 0x42e1f8
call fcn.00402a28
push 0
lea edx, [ebp - 0x78]
lea ecx, [esi + 0x10]
call fcn.004056da
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402a28
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebx + 4]
call esi
push dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [edi]
push 0x110
lea eax, [ebp - 0x32c]
push 0x2b4
push eax
push 0x80
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x414111
push dword [ebp + 0xc]
push dword [ebx + 4]
call esi
push 0
push dword [ebp - 0x32c]
push 0x170
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x18]
call fcn.00402185
push dword [ebp - 0x34]
call fcn.00402185
push dword [ebp - 0x4c]
call fcn.00402185
push dword [ebp - 0x28]
call fcn.00402185
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4142e8
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, 0x42b2e0
call fcn.004289b0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
or eax, 0xffffffff
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x38]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
call fcn.00402664
lea ecx, [esi + 0x44]
mov dword [ebp - 4], ebx
call fcn.00402664
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call fcn.00402664
mov byte [esi + 0x5c], bl
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 3
call fcn.0041437e
lea ecx, [esi + 0x9c]
call fcn.00427750
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x415dad
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x42b590
call fcn.004289b0
sub esp, 0x44
push ebx
push esi
push edi
mov esi, ecx
push 0
call fcn.0041497c
push 1
mov ecx, esi
call fcn.004152fb
mov edx, 0x198
lea ecx, [ebp - 0x20]
call fcn.0041118c
mov eax, dword [eax]
lea edi, [esi + 4]
push eax
push 2
push dword [edi]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [ebp - 0x20]
call fcn.00402185
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
pop ecx
push 2
push dword [edi]
call ebx
push 1
push 1
push 0xf4
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1bc
push dword [edi]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1be
push dword [edi]
call ebx
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
lea ecx, [ebp - 0x50]
call fcn.00415f43
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.00415f43
lea eax, [esi + 0x204]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1cc], ebx
lea ebx, [esi + 0x1d4]
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
setne byte [ebp - 0xd]
call fcn.00415f74
add ebx, 0x18
lea ecx, [ebp - 0x38]
push ebx
call fcn.00415f74
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
je 0x415ec7
cmp dword [ebp - 0x4c], ebx
mov byte [esi + 0x223], 1
jne 0x415ebd
push 0x42e320
lea ecx, [ebp - 0x50]
call fcn.00402905
push 0x10
push dword [ebp - 0x50]
push dword [ebp - 0x44]
jmp 0x415ef2
cmp byte [ebp - 0xd], 0
jne 0x415f08
cmp dword [ebp - 0x28], ebx
mov byte [esi + 0x223], 1
je 0x415f21
cmp dword [ebp - 0x34], ebx
jne 0x415eeb
push 0x42e320
lea ecx, [ebp - 0x38]
call fcn.00402905
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
mov eax, esi
neg eax
sbb eax, eax
and eax, edi
push dword [eax]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [ebp - 0xd], 0
je 0x415f21
cmp byte [esi + 0x156], 0
jne 0x415f21
mov ecx, esi
mov byte [esi + 0x155], 1
call fcn.00416342
jmp 0x415f2a
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x50]
call fcn.0041481a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x416af4
Capabilities:
Get file system object information

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push edx
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
ret 0xc
Function at 0x421a10
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x3e4
push ebp
lea eax, [esp + 4]
push esi
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x421a3e
cmp dword [esp + 0xc], 6
jne 0x421a3e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x421a68
push str.SetDefaultDllDirectories
push 0x42d70c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x421a68
push 0xc00
call eax
test eax, eax
jne 0x421b1e
lea ecx, [esp + 0x11c]
push 0x106
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x421b1e
cmp eax, 0x104
ja 0x421b1e
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
cmp word [esp + ebp*2 + 0x11a], 0x5c
je 0x421ab4
mov word [esp + ebp*2 + 0x11c], 0x5c
inc ebp
mov esi, dword [str.UXTHEME]
cmp byte [esi], 0
je 0x421b1e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov al, byte [esi]
xor cx, cx
inc esi
mov cl, al
test al, al
mov word [esp + ebp*2 + 0x124], cx
je 0x421afa
lea ecx, [esp + ebp*2 + 0x126]
mov al, byte [esi]
xor dx, dx
mov dl, al
inc esi
mov word [ecx], dx
add ecx, 2
test al, al
jne 0x421ae8
lea eax, [esp + 0x124]
push str..dll
push eax
call edi
lea ecx, [esp + 0x124]
push 8
push 0
push ecx
call ebx
cmp byte [esi], 0
jne 0x421acd
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x3e4
ret