joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10071e40
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1009c310
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
mov ebx, 8
cmp dword [ebp + 0x18], ebx
lea esi, [ebp + 4]
jb 0x10071e7b
mov eax, dword [esi]
jmp 0x10071e7d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10071e9d
mov al, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp dword [ebp + 0x18], ebx
jb 0x10071ea6
mov eax, dword [esi]
jmp 0x10071ea8
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
je 0x10071f86
cmp dword [ebp + 0x18], ebx
jb 0x10071ec5
mov edx, dword [esi]
jmp 0x10071ec7
mov edx, esi
lea eax, [esp + 0x10]
call fcn.10010210
mov dword [esp + 0x34], 0
cmp dword [esp + 0x28], ebx
mov eax, dword [esp + 0x14]
jae 0x10071ee6
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
test al, al
sete bl
mov dword [esp + 0x34], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x10071f15
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
test bl, bl
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], 0
jne 0x10071f86
cmp dword [ebp + 0x18], 8
jb 0x10071f3a
mov eax, dword [esi]
jmp 0x10071f3c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10071e88
cmp dword [ebp + 0x18], 8
jb 0x10071f55
mov edx, dword [esi]
jmp 0x10071f57
mov edx, esi
lea eax, [esp + 0x10]
call fcn.10010210
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x10]
mov dword [esp + 0x34], 1
call fcn.10071c80
lea esi, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.10006e70
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x10071fa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x620], eax
push esi
push edi
xor edi, edi
cmp dword [0x100c6d98], edi
mov esi, ecx
je 0x10071fe8
push 0xffffffffffffffff
push edi
mov eax, 0x100c6d84
call fcn.100076e0
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.1009176c
add esp, 0x624
ret
push 0x20a
lea eax, [esp + 0xe]
push edi
push eax
mov word [esp + 0x14], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x100720d3
push 0x410
lea edx, [esp + 0x21a]
push edi
push edx
mov word [esp + 0x21e], di
mov word [esp + 0x220], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x10072095
cmp eax, edi
je 0x10072095
push esi
lea edx, [esp + 0x218]
mov word [esp + eax*2 + 0x218], di
call fcn.10010250
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.1009176c
add esp, 0x624
ret
lea eax, [esp + 8]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100720a0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xc]
push edx
call fcn.10011cd0
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.1009176c
add esp, 0x624
ret
mov ecx, dword [esp + 0x628]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.1009176c
add esp, 0x624
ret

Function at 0x100720f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
push 0x20a
lea eax, [esp + 0x12]
push 0
push eax
mov ebx, ecx
mov edi, edx
mov word [esp + 0x18], 0
call sub.MSVCR80.dll_memset
mov eax, 8
add esp, 0xc
cmp dword [edi + 0x18], eax
jb 0x1007213c
mov edi, dword [edi + 4]
jmp 0x1007213f
add edi, 4
cmp dword [ebx + 0x18], eax
jb 0x10072149
mov ebx, dword [ebx + 4]
jmp 0x1007214c
add ebx, 4
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x100721a4
lea eax, [esp + 0xc]
mov word [esp + 0x216], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10072170
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
call fcn.10011cd0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1009176c
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.1009176c
add esp, 0x210
ret
Function at 0x10072580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x4c
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
cdq
push esi
push edx
mov esi, ecx
push eax
lea ecx, [esp + 0x10]
call fcn.1006aae0
add esp, 8
push 0xffffffffffffffff
push 0
mov eax, edi
mov ecx, esi
call fcn.100076e0
push 1
push 0x100ae1a0
mov ecx, esi
call fcn.10011bd0
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100725c6
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.10011bd0
push 1
push 0x100ae1a4
mov ecx, esi
call fcn.10011bd0
push 0
push ebx
or eax, 0xffffffff
call fcn.10011ac0
cmp dword [esi + 0x18], 8
jb 0x10072606
mov esi, dword [esi + 4]
jmp 0x10072609
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov al, cl
mov ecx, dword [esp + 0x4c]
pop esi
xor ecx, esp
call fcn.1009176c
add esp, 0x4c
ret
Function at 0x100731d0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov ebx, eax
mov edi, ecx
mov dword [esi], 0
cmp ebx, 0x100000
mov eax, ebx
jbe 0x100731f3
mov eax, 0x100000
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push edi
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
test eax, eax
setne al
add dword [esi], ecx
test al, al
je 0x1007322f
test ecx, ecx
je 0x10073226
add edi, ecx
sub ebx, ecx
jne 0x100731e4
pop edi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 4
pop edi
pop ebp
xor al, al
pop ebx
pop ecx
ret 4
Function at 0x10074f80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100966e6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
lea esi, [edi + 0x30]
call fcn.10053850
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10074fd5
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [edi + 0x14], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x10074ff0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword [esi + 0x14]
push ebx
push ebp
push edi
xor ebx, ebx
lea edi, [esi + 0x14]
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x10075015
mov eax, edi
call fcn.100793e0
add dword [esi + 0x18], eax
adc dword [esi + 0x1c], edx
mov edx, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
add edx, 0x10
push edx
call ebp
mov byte [esi + 0x10], 1
mov byte [esi + 0x11], bl
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [edi]
add ecx, 8
push ecx
call ebp
mov edi, dword [edi]
mov dword [edi + 0x10], ebx
mov dword [edi + 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 ecx, dword [esi + 0x34]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 0x34]
mov dword [ecx + 4], ecx
cmp eax, dword [esi + 0x34]
mov dword [esi + 0x38], ebx
je 0x10075082
lea ebx, [ebx]
mov edi, dword [eax]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, dword [esi + 0x34]
mov eax, edi
jne 0x10075070
pop edi
pop ebp
pop ebx
ret
Function at 0x10079040
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x14c
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0x154]
push ebp
mov ebp, dword [esp + 0x154]
push esi
push pe_nt_image_headers32
mov esi, ecx
lea ecx, [esp + 0x3c]
push 0
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], 0x11c
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x38], 6
mov dword [esp + 0xc], eax
jne 0x100790b4
cmp dword [esp + 0x3c], 2
jne 0x100790b4
call fcn.10078f80
test al, al
je 0x100790b4
mov dword [esp + 0x3c], 3
cmp dword [esp + 0xc], 0
jne 0x100790d4
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.1009176c
add esp, 0x14c
ret
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [edi], eax
mov dword [ebx], ecx
call fcn.10078fd0
neg al
sbb eax, eax
and eax, 0x20
add eax, 0x20
mov dword [esi], eax
lea eax, [esp + 0x48]
lea edx, [eax + 2]
jmp 0x10079100
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10079100
mov esi, dword [esp + 8]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.10011cd0
cmp dword [esp + 0x38], 5
mov dword [ebp], 0
jne 0x10079160
mov eax, dword [esp + 0x3c]
cmp eax, 2
jne 0x1007915b
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp byte [esp + 0x14e], 1
jne 0x1007916a
cmp word [esp + 0x10], 9
jne 0x1007916a
mov dword [ebp], 0
jmp 0x10079171
cmp eax, 1
jbe 0x10079152
cmp byte [esp + 0x14e], 1
je 0x10079171
mov dword [ebp], 1
mov ecx, dword [esp + 0x150]
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.1009176c
add esp, 0x14c
ret

Function at 0x10079460
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x1009c1f9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x20], edi
mov esi, ecx
mov dword [esp + 0x10], edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x14], esi
mov word [esi + 4], di
mov dword [esp + 0x20], edi
push ebx
mov dword [esp + 0x14], 1
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, edi
jle 0x10079513
lea ebp, [eax + eax]
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10090f1a
add esp, 4
push ebp
mov edi, eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebp
jg 0x1007950a
mov word [edi + eax*2], 0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100794f4
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.10011cd0
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x10079870
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009a3c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x44]
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [esp + 0x3c], eax
sub esp, 0x20
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov edi, esp
mov ecx, 8
lea esi, [esp + 0x30]
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
call fcn.1007a0e0
mov dword [esp + 0x3c], 0xffffffff
mov eax, ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret 4

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

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push ebp
push esi
call fcn.10079ed0
mov edi, eax
test edi, edi
jne 0x10079bc6
push ebp
push esi
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
pop esi
pop ebp
ret 8
mov ecx, dword [edi + 4]
add ebp, 0xfffffa00
test ecx, ecx
push ebx
je 0x10079be4
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 5
cmp ebp, eax
jae 0x10079be4
mov ebx, ebp
jmp 0x10079be6
xor ebx, ebx
test ecx, ecx
je 0x10079c5f
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 5
cmp ebx, eax
jae 0x10079c5f
mov esi, ebx
shl esi, 5
add esi, dword [edi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x10]
jb 0x10079c5f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10079c2a
mov edx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, dword [esi + 0x18]
push edx
mov edx, dword [esp + 0x1c]
push ebx
push edx
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.10079ed0
test eax, eax
je 0x10079c5f
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10079c54
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 5
cmp ebp, eax
jae 0x10079c54
mov eax, ebp
jmp 0x10079c56
xor eax, eax
cmp eax, ebx
jne 0x10079c5f
call edi
mov dword [esi + 0x14], eax
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x1007ac00
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x1009eb30
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov byte [esp + 0x13], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
neg eax
sbb eax, eax
neg eax
test al, al
mov byte [esp + 0x13], al
jne 0x1007ac6b
mov dword [esp + 0x38], 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push 0xd
call esi
mov edi, eax
test edi, edi
je 0x1007ace6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1007acaa
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x1007ac90
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x1007ac90
sub ecx, esi
sar ecx, 1
push ecx
push eax
mov esi, ebp
call fcn.10011cd0
jmp 0x1007acb1
mov eax, ebp
call fcn.10006ea0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.USER32.dll_CloseClipboard]
neg eax
sbb eax, eax
add eax, 1
mov byte [esp + 0x13], al
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
push 1
call esi
mov edi, eax
test edi, edi
je 0x1007ad29
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1007acaa
push 0
push 0xffffffffffffffff
mov ecx, eax
lea esi, [esp + 0x1c]
call fcn.1006d690
add esp, 8
mov byte [esp + 0x38], 1
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.100076e0
mov byte [esp + 0x38], 0
call fcn.10006e70
jmp 0x1007acb1
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.USER32.dll_CloseClipboard]
neg eax
sbb eax, eax
add eax, 1
mov byte [esp + 0x13], al
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
Function at 0x1007da20
Capabilities:
Check http status code

Disassembly:
sub esp, 8
push esi
mov esi, dword [eax + 4]
test esi, esi
mov dword [esp + 4], 0
mov dword [esp + 8], 4
je 0x1007da93
call fcn.10074b70
mov ecx, dword [eax + 0x20]
push str.HttpQueryInfoW
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007da67
push 0
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push ecx
push 0x20000013
push esi
call eax
test eax, eax
setne al
test al, al
je 0x1007da93
mov eax, dword [esp + 4]
cmp eax, 0xce
je 0x1007da89
cmp eax, 0xc8
je 0x1007da89
xor eax, eax
pop esi
add esp, 8
ret
mov eax, 1
pop esi
add esp, 8
ret
xor al, al
pop esi
add esp, 8
ret
Function at 0x10080960
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x1009e9cb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov edi, dword [esi]
test edi, edi
je 0x100809a9
push edi
call fcn.100905e0
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi], 0
cmp dword [esi + 0x18], 0
mov edi, 8
je 0x100809c8
cmp dword [esi + 0x1c], edi
jb 0x100809be
mov eax, dword [esi + 8]
jmp 0x100809c1
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x1c], edi
jb 0x100809e1
mov eax, dword [esi + 8]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov word [esi + 8], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

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

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov eax, dword [eax]
cmp dword [eax], 0
push ebp
mov ebp, dword [esp + 0x1c]
jne 0x10080fce
cmp dword [eax + 4], 0
jne 0x10080fce
xor al, al
pop ebp
pop ecx
ret 0x14
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
xor bl, bl
cmp dword [esp + 0x1c], esi
mov dword [esp + 0xc], eax
jbe 0x10081077
push edi
lea esp, [esp]
mov eax, dword [esp + 0x20]
sub eax, esi
mov edi, 0x1000
cmp eax, edi
jae 0x10081001
mov edi, eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp dword [eax], 0
mov dword [esp + 0x28], 0
je 0x1008102d
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
push ebp
lea edx, [esp + 0x2c]
push edx
lea edx, [esi + ecx]
push eax
mov ecx, edi
call fcn.1007dc90
jmp 0x1008104b
mov eax, dword [eax + 4]
test eax, eax
je 0x1008104d
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esi + edx]
push ecx
push eax
mov ecx, ebp
mov edx, edi
call fcn.10083490
mov bl, al
mov eax, dword [esp + 0x28]
add esi, eax
test bl, bl
je 0x10081076
test eax, eax
je 0x10081076
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0xbb8
ja 0x10081076
cmp esi, dword [esp + 0x20]
jb 0x10080ff0
pop edi
mov edx, dword [esp + 0x20]
mov dword [edx], esi
pop esi
mov al, bl
pop ebx
pop ebp
pop ecx
ret 0x14
Function at 0x100815f0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x1009bfe1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
mov edi, ecx
push eax
mov ebp, 1
mov dword [esp + 0x18], 0
mov ebx, ebp
xor eax, eax
mov edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], 0x25
call fcn.10010d50
xor ebx, ebx
push 0xffffffffffffffff
cmp eax, 0xffffffff
push ebx
mov eax, edi
jne 0x1008167a
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov ecx, esi
mov word [esi + 4], bx
call fcn.100076e0
mov dword [esp + 0x48], ebx
mov dword [esp + 0x14], ebp
jmp 0x100817a1
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.100076e0
mov dword [esp + 0x48], ebp
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [esp + 0x10], eax
jb 0x100816a7
mov eax, dword [eax]
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x100816fb
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push ebx
mov eax, edi
mov ecx, esi
mov word [esi + 4], bx
call fcn.100076e0
mov dword [esp + 0x14], ebp
mov byte [esp + 0x48], bl
cmp dword [esp + 0x38], 8
jb 0x100816ee
mov ecx, dword [esp + 0x24]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x38], 7
jmp 0x10081798
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10090f1a
add esp, 4
cmp dword [edi + 0x18], 8
mov ebp, eax
mov eax, dword [esp + 0x10]
jb 0x10081725
mov eax, dword [eax]
mov edi, dword [esp + 0x18]
lea ecx, [edi + 1]
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
jbe 0x1008174e
cmp eax, edi
ja 0x1008174e
lea edx, [esp + 0x20]
push edx
mov edx, ebp
mov word [ebp + eax*2], bx
call fcn.10010250
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
push 0xffffffffffffffff
mov edi, 7
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push ebx
lea eax, [esp + 0x28]
mov ecx, esi
mov word [esi + 4], bx
call fcn.100076e0
mov dword [esp + 0x14], 1
mov byte [esp + 0x48], bl
cmp dword [esp + 0x38], 8
jb 0x10081794
mov eax, dword [esp + 0x24]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x38], edi
mov word [esp + 0x24], bx
mov dword [esp + 0x34], ebx
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1009176c
add esp, 0x3c
ret
Function at 0x10082820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x428
mov eax, dword [0x100c60c8]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push ebp
mov ebp, dword [esp + 0x434]
push esi
push edi
mov eax, ebp
mov edi, ecx
mov esi, edx
call fcn.10006ea0
cmp dword [edi + 0x18], 8
mov dword [esp + 0x14], 0
jb 0x1008285d
mov edi, dword [edi + 4]
jmp 0x10082860
add edi, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push edi
push SysReAllocStringLen
call ebx
cmp eax, 5
jne 0x100828a7
test edi, edi
je 0x10082944
push SysReAllocStringLen
mov edx, edi
call fcn.10082a00
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push edi
push SysReAllocStringLen
call ebx
test eax, eax
jne 0x10082944
mov edi, dword [esp + 0x14]
test edi, edi
je 0x10082944
push 0x410
push eax
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x40f
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x100828e5
mov eax, dword [esi + 4]
jmp 0x100828e8
lea eax, [esi + 4]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
push ecx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x1008292c
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10082910
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x24]
push edx
mov esi, ebp
call fcn.10011cd0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1008293b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x10082946
xor al, al
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1009176c
add esp, 0x428
ret 4