joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101a91e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101a970
push edi
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
jmp 0x101a972
xor al, al
pop esi
leave
ret 0xc

Function at 0x101bc92
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
je 0x101bd91
mov edi, dword [ebp + 8]
test edi, edi
je 0x101bd91
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1073660]
mov ebx, 0x1073654
cmp eax, 0xea60
jae 0x101bce6
push edi
push ebx
call fcn.01019366
test al, al
je 0x101bce6
mov eax, dword [0x1073650]
mov dword [esi], eax
jmp 0x101bd98
push esi
push edi
push 0x1003d78
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0101b991
cmp eax, 3
je 0x101bd01
cmp eax, 2
jne 0x101bd3a
push esi
push edi
push 0x1003d08
push SysReAllocStringLen
call fcn.0101b991
cmp eax, 3
je 0x101bd1c
cmp eax, 2
jne 0x101bd3a
push edi
call fcn.0101b841
cmp eax, 0xffffffff
je 0x101bd31
push eax
call fcn.0101bc2a
mov dword [esi], eax
jmp 0x101bd38
mov dword [ebp - 4], 0xc00d0fda
xor eax, eax
test eax, eax
je 0x101bd4d
jle 0x101bd4a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x101bd98
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jae 0x101bd98
push 5
push ebx
lea ecx, [ebp - 0x10]
call fcn.010196d8
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x10]
call fcn.01019f85
mov eax, dword [esi]
mov dword [0x1073650], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x10]
mov dword [0x1073660], eax
call fcn.01019f33
jmp 0x101bd98
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x101be21
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x101bf0e
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x101bf0e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xea60
cmp eax, dword [0x1073674]
jae 0x101be74
push ebx
push 0x1073668
call fcn.01019366
test al, al
je 0x101be74
mov eax, dword [0x1073664]
mov dword [edi], eax
jmp 0x101bf15
push edi
push ebx
push 0x1003d78
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0101bab6
test eax, eax
je 0x101becc
push edi
push ebx
push 0x1003d08
push SysReAllocStringLen
call fcn.0101bab6
mov esi, eax
test esi, esi
je 0x101becc
push ebx
call fcn.0101b841
cmp eax, 0xffffffff
je 0x101beb5
push eax
call fcn.0101bc5e
mov dword [edi], eax
jmp 0x101becc
test esi, esi
jle 0x101bec5
and esi, 0xffff
or esi, 0x80070000
test esi, esi
mov dword [ebp - 4], esi
jl 0x101bf15
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jae 0x101bf15
push 5
push 0x1073668
lea ecx, [ebp - 0x10]
call fcn.010196d8
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x10]
call fcn.01019f85
mov eax, dword [edi]
mov dword [0x1073664], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x10]
mov dword [0x1073674], eax
call fcn.01019f33
jmp 0x101bf15
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x101c175
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp byte [0x10735d4], bl
jne 0x101c1bb
push esi
push ebx
push ebx
push ebx
push 0x101c028
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x101c1b2
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x10735d4], bl
pop esi
je 0x101c201
lea ecx, [ebp - 0xc]
call fcn.01019631
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.01019f85
test eax, eax
jl 0x101c1f9
lea ecx, [ebp - 0xc]
call fcn.0101977e
push dword [ebp - 0xc]
mov ecx, 0x1073614
call fcn.010222b4
test al, al
je 0x101c1f9
lea ecx, [ebp - 0xc]
call fcn.01019f33
mov al, 1
jmp 0x101c203
lea ecx, [ebp - 0xc]
call fcn.01019f33
xor al, al
pop ebx
leave
ret 4
Function at 0x101d0cf
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10570e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1004144]
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1004148]
mov dword [ebp - 8], eax
call dword [sym.imp.msvcrt.dll_towupper]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
movzx esi, ax
pop ecx
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], si
call edi
cmp eax, 5
jne 0x101d13c
and dword [ebp - 0x10], 0
push 0x41
pop ebx
cmp si, bx
jbe 0x101d140
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], bx
call edi
cmp eax, 5
jne 0x101d134
inc dword [ebp - 0x10]
inc ebx
cmp bx, si
jb 0x101d122
jmp 0x101d140
or dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101897b
leave
ret 4
Function at 0x101dd70
Capabilities:
Check os version
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x10570e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x40]
call fcn.01019631
xor ebx, ebx
cmp esi, ebx
je 0x101df27
movzx eax, word [esi]
cmp ax, 0x41
jb 0x101ddb4
cmp ax, 0x5a
ja 0x101ddb4
movzx edi, ax
sub edi, 0x40
jmp 0x101ddba
movzx edi, ax
sub edi, 0x60
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jge 0x101de4f
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push 0x10041ac
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
je 0x101def2
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x34]
push ecx
push 0x1c
lea ecx, [ebp - 0x5c]
push ecx
push 0x1c
push ecx
inc esi
push esi
push eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], 0x860
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x40]
push 0x100419c
push eax
call fcn.0101a365
add esp, 0xc
test eax, eax
jl 0x101def0
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
je 0x101def6
push ebx
lea ecx, [ebp - 0x34]
push ecx
push 0x1e0
lea ecx, [ebp - 0x23c]
push ecx
push ebx
push ebx
push 0x70c00
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x101de3e
cmp dword [ebp - 0x34], ebx
jbe case.default.0x101de3e
mov eax, dword [ebp - 0x234]
xor esi, esi
inc esi
cmp eax, esi
je case.0x101de3e.0
jle case.default.0x101de3e
cmp eax, 5
jle case.0x101de3e.2
cmp eax, 0xa
jle case.0x101de3e.0
cmp eax, 0xb
je case.0x101de3e.6
cmp eax, 0xc
je case.0x101de3e.5
xor esi, esi
Function at 0x101e178
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.01019631
push 0x1004078
mov ecx, esi
call fcn.0101d677
test al, al
je 0x101e243
push dword [esi + 0x28]
call fcn.0103d758
test al, al
je 0x101e1bc
mov dword [ebp - 4], 4
jmp 0x101e25a
mov eax, dword [esi + 0x28]
xor bl, bl
xor ecx, ecx
test eax, eax
je 0x101e1cd
cmp word [eax], cx
setne cl
test cl, cl
je 0x101e1f3
movzx cx, byte [eax]
cmp cx, word [eax]
jne 0x101e1f3
mov bl, byte [eax]
movzx eax, bl
mov al, byte [eax + 0x1073758]
test al, al
jbe 0x101e1f3
movzx eax, al
test eax, eax
mov dword [ebp - 4], eax
jne 0x101e25a
mov eax, dword [esi + 0x28]
push 3
push eax
lea ecx, [ebp - 0x10]
call fcn.01019f85
test eax, eax
jl 0x101e25a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
mov dword [ebp - 4], eax
jne 0x101e235
push dword [ebp - 0x10]
mov ecx, esi
call fcn.0101dd70
cmp eax, 0x15e
je 0x101e22e
cmp eax, 0x20d
jne 0x101e235
mov dword [ebp - 4], 0x80
mov cl, byte [ebp - 4]
movzx eax, bl
mov byte [eax + 0x1073758], cl
jmp 0x101e25a
push 0x10040a4
mov ecx, esi
call fcn.0101d677
test al, al
je 0x101e25a
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.01019f33
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x1020c5c
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea ecx, [ebp - 0xc]
call fcn.01019631
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
call fcn.0101ef8b
mov esi, eax
test esi, esi
jl 0x1020cae
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1020cae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1020ca0
push 0x57
pop eax
test eax, eax
jle 0x1020cac
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp - 0xc]
call fcn.01019f33
mov eax, esi
pop esi
leave
ret 8

Function at 0x1021495
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0x80070005
call fcn.0101e0db
push dword [ebp + 8]
lea ecx, [ebp - 0x60]
push 2
call fcn.0101f5c6
xor ebx, ebx
test eax, eax
jl 0x10214f9
lea ecx, [ebp - 0x60]
call fcn.0101e178
cmp eax, 4
jne 0x10214f9
push 0x3e8
lea eax, [ebp - 0x60]
push eax
call fcn.0102095d
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x1021502
cmp byte [0x1073930], bl
je 0x10214f9
lea eax, [ebp - 0x60]
push eax
mov ecx, 0x1073938
call fcn.010213a8
cmp dword [ebp - 4], ebx
jge 0x10215ad
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 8]
push 0x1020b90
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x10215ad
mov ecx, 0x10735a0
call fcn.0101ff06
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10215a6
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10215a6
mov eax, dword [0x1057798]
cmp eax, 0x1057798
je 0x1021576
test byte [eax + 0x3c], 1
je 0x1021576
cmp byte [eax + 0x39], 3
jb 0x1021576
push dword [ebp - 4]
push 0x1004b28
push 0xb
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0101ffdd
cmp dword [ebp - 4], ebx
je 0x1021584
mov dword [ebp - 4], 0x80070005
jmp 0x10215a6
cmp byte [0x1073930], bl
je 0x10215a6
lea ecx, [ebp - 0x60]
call fcn.0101e0bf
test al, al
jne 0x10215a6
lea eax, [ebp - 0x60]
push eax
mov ecx, 0x1073938
call fcn.010213a8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x60]
call fcn.0101c265
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x10215c5
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
movzx eax, byte [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x10735a0
xor ebx, ebx
mov dword [ebp - 4], eax
call fcn.0101feea
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.01020a28
push dword [ebp + 8]
lea edi, [esi + 0x2c]
push edi
mov ecx, esi
call fcn.01020faf
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x1021633
push eax
mov ecx, edi
call fcn.01020abf
lea edi, [eax + 0x208]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi]
cmp eax, dword [ebp - 8]
jae 0x1021664
push dword [ebp + 0xc]
lea ecx, [esi + 0x2c]
call fcn.01020abf
mov ebx, dword [eax + 0x20c]
jmp 0x102166b
push dword [ebp + 8]
lea edi, [esi + 0x1c]
push edi
mov ecx, esi
call fcn.01020faf
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x102166b
push eax
mov ecx, edi
call fcn.01020abf
lea edi, [eax + 0x208]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi]
cmp eax, dword [ebp - 8]
jb 0x102166b
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.01020a45
xor edi, edi
cmp dword [ebp - 4], edi
je 0x10217a4
cmp ebx, edi
jl 0x10217a4
lea ecx, [ebp - 0x14]
call fcn.01019631
lea ecx, [ebp - 0x7c]
call fcn.0101e0db
lea ecx, [ebp - 0x20]
call fcn.01019631
push dword [ebp + 8]
lea ecx, [ebp - 0x7c]
call fcn.0101fab8
push 0x100203c
lea ecx, [ebp - 0x7c]
call fcn.0101f042
mov ebx, eax
cmp ebx, edi
jl 0x102178c
lea eax, [ebp - 0x14]
push eax
push 0xa
lea ecx, [ebp - 0x7c]
call fcn.0101ef8b
mov ebx, eax
cmp ebx, edi
jl 0x102178c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0101d5f2
mov ebx, eax
cmp ebx, edi
jl 0x102178c
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp ecx, edi
je 0x10216fc
cmp word [ecx], di
setne al
test al, al
je 0x102172c
lea ecx, [ebp - 0x14]
call fcn.010196f9
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x20]
dec eax
lea ebx, [ecx + eax*2]
call fcn.0103d66d
cmp word [ebx], ax
jne 0x102172c
lea ecx, [ebp - 0x14]
call fcn.010196f9
mov ecx, dword [ebp - 0x14]
dec eax
mov word [ecx + eax*2], di
push dword [ebp - 0x14]
call fcn.01021495
mov ebx, eax
cmp ebx, edi
jge 0x102178c
cmp dword [ebp + 0xc], 0xffffffff
je 0x102178c
mov ecx, esi
call fcn.01020a28
push dword [ebp + 8]
lea edi, [esi + 0x2c]
push edi
mov ecx, esi
call fcn.01020faf
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x1021785
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 0xc]
mov ecx, edi
mov ebx, eax
call fcn.01020abf
push dword [ebp + 0xc]
mov ecx, edi
mov dword [eax + 0x208], ebx
call fcn.01020abf
mov ebx, dword [eax + 0x20c]
mov ecx, esi
call fcn.01020a45
lea ecx, [ebp - 0x20]
call fcn.01019f33
lea ecx, [ebp - 0x7c]
call fcn.0101c265
lea ecx, [ebp - 0x14]
call fcn.01019f33
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x1021c19
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 4]
push eax
xor esi, esi
or ebx, 0x8000
push ebx
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call edi
cmp eax, esi
jge 0x1021c60
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
and eax, 0xffff7fff
push ecx
push eax
push esi
mov dword [ebp - 0xc], eax
call edi
mov edi, eax
cmp edi, esi
jl 0x1021c70
push dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0101f69d
mov edi, eax
jmp 0x1021ccb
test byte [ebp + 8], 0x2e
je 0x1021ccb
lea ecx, [ebp - 0x18]
call fcn.01019631
push 0x104
lea ecx, [ebp - 0x18]
call fcn.0101a11b
mov edi, eax
cmp edi, esi
jl 0x1021cc3
push dword [ebp - 0x18]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push esi
push ebx
push esi
call edi
cmp eax, esi
jge 0x1021cb5
push dword [ebp - 0x18]
push esi
push esi
push dword [ebp - 0xc]
push esi
call edi
mov edi, eax
cmp edi, esi
jl 0x1021cc3
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0101f5c6
mov edi, eax
lea ecx, [ebp - 0x18]
call fcn.01019f33
cmp edi, esi
jl 0x1021cd9
push dword [ebp + 0xc]
call fcn.01021adf
mov edi, eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1021cf3
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x1021d00
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1022d30
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp byte [ecx + 0x10], bl
mov dword [ebp - 0xc], ecx
jne 0x1022e44
push ebx
push 0x20019
push 0x1006f18
mov byte [ecx + 0x10], 1
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.0101b41f
test eax, eax
je 0x1022d77
lea ecx, [ebp - 4]
call fcn.0101b401
jmp 0x1022e44
push esi
push edi
xor edi, edi
mov esi, 0x104
jmp 0x1022e16
lea ecx, [ebp - 0x14]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x20]
mov eax, edi
push eax
push dword [ebp - 4]
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1022e32
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x1022db5
cmp word [ecx], bx
setne al
cmp al, bl
je 0x1022e0e
cmp dword [ebp - 8], ebx
je 0x1022e0e
lea ecx, [ebp - 0x2c]
call fcn.01019631
mov eax, dword [ebp - 0x20]
cmp word [eax], 0x2e
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
jne 0x1022dd7
add eax, 2
push eax
call fcn.01019f85
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x1022dec
cmp word [ecx], bx
setne al
cmp al, bl
je 0x1022e06
push ecx
call fcn.0101b7b6
cmp eax, 0xffffffff
jne 0x1022e06
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
call fcn.01022a71
lea ecx, [ebp - 0x2c]
call fcn.01019f33
lea ecx, [ebp - 0x20]
call fcn.01019f33
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], esi
call fcn.01019631
push esi
lea ecx, [ebp - 0x20]
call fcn.01019f3d
test eax, eax
jge 0x1022d85
lea ecx, [ebp - 0x20]
call fcn.01019f33
lea ecx, [ebp - 4]
call fcn.0101b401
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1027496
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
xor ebx, ebx
push 0x2c
lea eax, [ebp - 0x118]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x11c], ebx
call sub.msvcrt.dll_memset
push 0x74
lea eax, [ebp - 0xe8]
push ebx
push eax
mov dword [ebp - 0xec], ebx
call sub.msvcrt.dll_memset
add esp, 0x18
push 8
pop ecx
xor eax, eax
push 9
mov dword [ebp - 0x40], ebx
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x6c], ebx
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
lea ecx, [esi + 0x14]
push ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [edx + 0x14]
mov edi, eax
cmp edi, ebx
jl 0x1027ba5
push dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x1c]
mov edi, eax
cmp edi, ebx
jl 0x1027ba5
cmp dword [esi + 0x3c], ebx
mov dword [ebp - 0x18], ebx
jbe 0x10277e9
mov dword [ebp - 0x10], ebx
Function at 0x1038d82
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
push dword [esi + 0x78]
xor edi, edi
lea ecx, [ebp - 8]
mov dword [ebp - 4], edi
call fcn.010252af
cmp dword [esi + 0x10], edi
je 0x1038dab
cmp dword [esi + 0x14], edi
jne 0x1038e41
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
mov dword [esi + 0x7c], eax
call ebx
cmp eax, edi
mov dword [esi + 0x10], eax
je 0x1038df8
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x14], eax
je 0x1038df8
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea eax, [esi + 0x1c]
push eax
push edi
push esi
push 0x1038d13
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x18], eax
jne 0x1038e40
mov eax, dword [esi]
push esi
call dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1038e0c
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x1038e40
mov eax, dword [esi + 0x10]
cmp eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1038e26
push eax
call ebx
mov dword [esi + 0x10], edi
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x1038e33
push eax
call ebx
mov dword [esi + 0x14], edi
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x1038e40
push eax
call ebx
mov dword [esi + 0x18], edi
pop ebx
mov eax, dword [ebp - 8]
cmp eax, edi
pop edi
pop esi
je 0x1038e50
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x103adeb
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
je 0x103ae42
cmp word [eax], si
je 0x103ae42
push eax
call fcn.0101c559
cmp eax, 0xffffffff
je 0x103ae19
test al, 0x10
jne 0x103ae19
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x103ae47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x103ae3b
cmp eax, 3
je 0x103ae3b
cmp eax, esi
jle 0x103ae37
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x103ae47
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
jmp 0x103ae47
mov esi, 0x80070057
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x103afc9
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.01019631
xor edi, edi
push 2
lea esi, [ebp - 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.0103af87
mov esi, eax
cmp esi, edi
jl 0x103b17f
cmp dword [ebp - 4], edi
jne 0x103b17f
lea ecx, [ebp - 0x14]
call fcn.01019631
push 1
lea esi, [ebp - 4]
lea eax, [ebp - 0x14]
call fcn.0103af87
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x103b16a
cmp dword [ebp - 4], edi
jne 0x103b032
push edi
lea eax, [ebp - 0x14]
call fcn.0103af87
mov dword [ebp - 8], eax
cmp dword [ebp - 8], edi
jl 0x103b16a
cmp dword [ebp - 4], edi
je 0x103b16a
lea ecx, [ebp - 0x14]
call fcn.010196f9
inc eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
cmp ebx, edi
pop ecx
lea ecx, [ebp - 0x14]
jne 0x103b083
call fcn.01019f33
lea ecx, [ebp - 0x20]
call fcn.01019f33
mov eax, 0x8007000e
jmp 0x103b189
call fcn.010196f9
lea eax, [eax + eax + 4]
push eax
push edi
push ebx
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.010196f9
add eax, eax
push eax
push esi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.010196f9
inc eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
cmp esi, edi
pop ecx
jne 0x103b0e0
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [ebp - 0x14]
jmp 0x103b06c
lea ecx, [ebp - 0x20]
call fcn.010196f9
lea eax, [eax + eax + 4]
push eax
push edi
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x20]
add esp, 0xc
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], eax
call fcn.010196f9
add eax, eax
push eax
push dword [ebp - 4]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x40], edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
mov word [ebp - 0x30], 0x1614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x103b14b
mov dword [ebp - 8], 0x80004005
push esi
call fcn.0101c559
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call fcn.01019f33
lea ecx, [ebp - 0x20]
call fcn.01019f33
mov eax, dword [ebp - 8]
jmp 0x103b189
lea ecx, [ebp - 0x20]
call fcn.01019f33
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret