joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001970
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
push edi
xor edi, edi
cmp eax, edi
je 0x1000198a
push eax
call ebx
mov dword [esi + 0x14], edi
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x10001997
push eax
call ebx
mov dword [esi + 0x18], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x50]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x30], edi
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax + 0x34], edi
mov dword [eax + 0x30], edi
mov dword [eax + 0x2c], edi
mov dword [eax + 0x28], edi
mov eax, dword [esp + 0x10]
cmp eax, edi
jle 0x100019ee
mov ecx, 0xa
cmp dword [esi + 4], ecx
jle 0x100019e5
mov dword [esi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
mov dword [ecx + 4], eax
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
cmp eax, edi
je 0x10001a1d
lea eax, [esp + 0x10]
push eax
push edi
push esi
push 0x10001af0
push edi
push edi
mov dword [esp + 0x28], edi
call fcn.100b40c6
add esp, 0x18
mov dword [esi + 0x14], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
Function at 0x10001e70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10110558
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x102ac760]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
push edi
call fcn.10003370
lea eax, [edi + 0x18]
push eax
mov dword [esp + 0x18], 0
call fcn.10003370
lea esi, [edi + 0x30]
call fcn.10001300
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x10005190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100051a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100051e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x100051e0
lea ebx, [ebx]
cmp esi, eax
jae 0x100051e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100051d0
cmp esi, eax
jb 0x100051ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x10005a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1010f96e
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x102ac760]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], 2
call fcn.10005ae0
lea esi, [edi + 0x30]
call fcn.10001ed0
mov eax, dword [edi + 0x24]
xor esi, esi
cmp eax, esi
je 0x10005a8f
push eax
call fcn.100b1e2a
add esp, 4
mov eax, dword [edi + 0x18]
push eax
mov dword [edi + 0x24], esi
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], esi
call fcn.100b1e2a
mov eax, dword [edi + 0xc]
add esp, 4
cmp eax, esi
je 0x10005ab4
push eax
call fcn.100b1e2a
add esp, 4
mov ecx, dword [edi]
push ecx
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
call fcn.100b1e2a
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x10005e00
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push esi
push edi
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.100b2d30
mov esi, dword [esp + 0x58]
push 0x5418
push 0
push esi
call fcn.100b2d30
mov edi, dword [esp + 0x60]
mov eax, 0x400
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], eax
lea eax, [esi + 0x3008]
lea edx, [esi + 0x2808]
mov dword [esp + 0x3c], eax
mov eax, 0x104
lea ecx, [esi + 0x2008]
mov dword [esp + 0x4c], edx
lea edx, [esi + 0x3418]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
lea ecx, [esi + 0x3210]
mov eax, edi
mov dword [esp + 0x54], edx
add esp, 0x18
mov dword [esp + 8], 0x3c
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], 0x1000
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005e90
lea ecx, [esp + 8]
push ecx
sub eax, edx
push 0
sar eax, 1
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x10005ef0
mov eax, dword [esp + 0x14]
cmp eax, 3
je 0x10005ec0
cmp eax, 4
jne 0x10005ef0
push edi
push 0x1000
push esi
call fcn.100f2642
mov eax, dword [esp + 0x20]
mov dx, word [esp + 0x2c]
add esp, 0xc
mov dword [esi + 0x2004], eax
pop edi
mov word [esi + 0x2000], dx
mov eax, 1
pop esi
add esp, 0x3c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret
Function at 0x10007bf0
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x10110bd8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x102ac760]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x102b0b9c]
mov edx, dword [eax + 0xc]
mov ecx, 0x102b0b9c
xor ebx, ebx
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x54e0]
test eax, eax
jne 0x10007c40
lea ebx, [eax + 1]
jmp 0x10007c78
cmp eax, 2
jne 0x10007c78
lea ebx, [eax + 1]
lea eax, [esi + 0x54e4]
push eax
lea ecx, [esp + 0x10]
call fcn.10003630
mov eax, dword [esi + 0x54e8]
test eax, eax
jle 0x10007c74
push eax
push 0x102865a0
lea edi, [esp + 0x14]
call fcn.100090a0
add esp, 8
mov edi, dword [esp + 0xc]
push 0x10000000
push 0
push edi
push ebx
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_2.0.50727__.NET_CLR_3.0.04506.648__.NET_CLR_3.5.8888.8888__
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x10007cc7
or ebx, 0xffffffff
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x10007cb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x14
ret
push 0x10007b60
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x10007c96
mov edx, dword [esi + 8]
push 4
lea ecx, [esp + 0x14]
push ecx
push 2
push edx
mov dword [esp + 0x20], 0x7530
call dword [sym.imp.WININET.dll_InternetSetOptionW]
movzx eax, word [esi + 0x2014]
mov edx, dword [esi + 8]
push esi
push 0
push 3
push 0
push 0
push eax
lea ecx, [esi + 0x201c]
push ecx
push edx
mov dword [esi + 0x5480], 1
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0xc], eax
test eax, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], ebx
lea ecx, [eax + 0xc]
je 0x10007ca0
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x10007d49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x1000a1d0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
mov eax, dword [0x102ac760]
xor eax, esp
mov dword [esp + 0x14], eax
cmp dword [esi], 0
je 0x1000a2a6
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
push eax
mov dword [esi + 0xc], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
xor ecx, ecx
push ecx
mov word [esp + 0x10], ax
mov edx, 0x3a
mov word [esp + 0x12], dx
mov eax, 0x5c
push ecx
lea edx, [esp + 8]
mov word [esp + 0x18], ax
push edx
lea eax, [esp + 0x18]
push eax
mov word [esp + 0x22], cx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1000a2a6
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
test eax, eax
ja 0x1000a256
test ecx, ecx
jbe 0x1000a2a6
mov edx, dword [esp + 4]
cmp edx, eax
jb 0x1000a2a6
ja 0x1000a267
mov edx, dword [esp]
cmp edx, ecx
jbe 0x1000a2a6
push 0
mov ecx, eax
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
push edx
sar ecx, 0x1f
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000a2b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000a2b9
mov eax, dword [esi]
test eax, eax
je 0x1000a2a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.100b2738
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x14]
xor ecx, esp
mov eax, 1
call fcn.100b2738
add esp, 0x1c
ret 8

Function at 0x1000a2d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esp + 0x10]
push 0
mov ecx, eax
lea edx, [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
push edx
sar ecx, 0x1f
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000a305
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000a33f
mov dword [esp + 0xc], 0
test esi, esi
jne 0x1000a315
lea esi, [esp + 0xc]
mov edx, dword [esp + 0x14]
push 0
push esi
push ebx
mov dword [esi], 0
mov eax, dword [edi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000a33f
cmp dword [esi], ebx
jne 0x1000a33f
mov eax, 1
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x1000aa40
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x10111188
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x102ac760]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x102b0b9c]
mov edx, dword [eax + 0xc]
mov ecx, 0x102b0b9c
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
push str..fd.cfg
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call fcn.10002f20
mov ecx, dword [esp + 0x24]
lea eax, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x28], 1
call fcn.10003010
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.10003630
mov byte [esp + 0x1c], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000aae0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ab05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ab34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 4
Function at 0x10032350
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10032369
xor al, al
pop esi
ret 4
lea ecx, [esi + 0x7c]
call fcn.10005250
mov ecx, dword [esp + 8]
push ecx
lea ecx, [esi + 0x34]
mov byte [esi + 0x80], 0
call fcn.1002f140
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push 0
push esi
push 0x100323c0
push 0
push 0
mov byte [esi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret 4
Function at 0x100327b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10111340
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x102ac760]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x28]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov esi, esp
push eax
call fcn.10003c40
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x24], 1
mov eax, dword [eax]
sub eax, 0x10
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.10003c40
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0x24], bl
call fcn.10035ab0
mov bl, al
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003284c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x10032870
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10110dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x102ac760]
xor eax, esp
mov dword [esp + 0x25c], eax
push esi
push edi
mov eax, dword [0x102ac760]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
push 0x10289b9c
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.10008a30
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x278], 0
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100328ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov byte [esp + 0xf], 0
jmp 0x10032900
mov ecx, 0x10289ba0
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10032936
test dx, dx
je 0x10032932
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10032936
add eax, 4
add ecx, 4
test dx, dx
jne 0x10032910
xor eax, eax
jmp 0x1003293b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1003298d
mov ecx, 0x10289ba4
lea eax, [esp + 0x40]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003296e
test dx, dx
je 0x1003296a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003296e
add eax, 4
add ecx, 4
test dx, dx
jne 0x10032948
xor eax, eax
jmp 0x10032973
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1003298d
lea eax, [esp + 0x40]
push 0x10289bac
push eax
call fcn.100b375b
add esp, 8
test eax, eax
jne 0x1003299f
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x10032900
jmp 0x100329a4
mov byte [esp + 0xf], 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0xf], 0
jne 0x100329c0
push 7
push str.driver_
mov ecx, ebx
call fcn.100036b0
mov dword [esp + 0x278], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100329eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.100b2738
mov esp, ebp
pop ebp
ret
Function at 0x10033620
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10111310
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x102ac760]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x60]
mov eax, dword [eax - 0xc]
test eax, eax
jle 0x10033802
mov eax, dword [edi + 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10033721
mov ecx, dword [edi + 0x6c]
cmp dword [ecx - 0xc], 0
lea ebx, [edi + 0x6c]
jle 0x10033721
mov eax, dword [edi + 0x78]
push eax
lea esi, [esp + 0x18]
call fcn.10035980
add esp, 4
mov ecx, ebx
mov dword [esp + 0x28], 0
call fcn.100310f0
push eax
mov ecx, esi
call fcn.100310f0
push eax
call fcn.10018810
add esp, 8
test al, al
je 0x100336ef
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100336da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10033721
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003377b
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x60]
push eax
push ecx
call fcn.10035810
add esp, 8
test al, al
jne 0x1003377b
mov eax, dword [edi + 0x64]
cmp dword [eax - 0xc], 0
je 0x1003377b
mov ecx, dword [edi + 0x78]
push ecx
push eax
call fcn.10035810
add esp, 8
test al, al
jne 0x1003377b
mov eax, dword [edi + 0x68]
cmp dword [eax - 0xc], 0
je 0x1003377b
mov ecx, dword [edi + 0x78]
push ecx
push eax
call fcn.10035810
add esp, 8
test al, al
je 0x10033802
mov ecx, dword [edi + 0x6c]
cmp dword [ecx - 0xc], 0
lea ebx, [edi + 0x6c]
jle 0x100336da
mov eax, dword [edi + 0x78]
push eax
lea esi, [esp + 0x1c]
call fcn.10035980
add esp, 4
mov ecx, ebx
mov dword [esp + 0x28], 1
call fcn.100310f0
push eax
mov ecx, esi
call fcn.100310f0
push eax
call fcn.10018810
add esp, 8
test al, al
je 0x100337d0
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
jmp 0x100336be
mov edi, dword [edi + 0x78]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10033802
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10033d70
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push edi
call ebx
cmp byte [esi + 0x30], 0
mov ebp, eax
jne 0x10033dba
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
call ebx
sub eax, ebp
cmp eax, 0xea60
ja 0x10033ddf
lea eax, [esi + 0x54]
call fcn.100356b0
cmp eax, 2
je 0x10033dad
cmp eax, 1
jne 0x10033de8
push 0x3e8
call edi
cmp byte [esi + 0x30], 0
je 0x10033d90
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], str.user_cancel
call fcn.100b1e46
push 0x102a37d4
lea ecx, [esp + 0x14]
push ecx
call fcn.100b2199
pop edi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
pop edi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
Function at 0x10035460
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10111e38
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebp
push esi
push edi
mov eax, dword [0x102ac760]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp eax, 4
je 0x10035694
cmp eax, 5
je 0x10035694
cmp eax, 3
je 0x10035694
cmp eax, 6
je 0x10035694
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100354e7
cmp byte [ecx], 1
jne 0x100354e7
cmp byte [esi + 0x8c], 0
jne 0x100354e7
mov dword [esi], 6
mov eax, 6
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
mov ebp, eax
test eax, eax
je 0x10035527
cmp eax, 1
je 0x10035527
cmp eax, 2
jne 0x10035688
mov eax, dword [esi + 0x38]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10035512
mov dword [esi], ebp
jmp 0x10035688
xor ecx, ecx
cmp byte [esi + 0x8c], cl
sete cl
add ecx, 4
mov dword [esi], ecx
jmp 0x10035688
cmp dword [esi + 0x98], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x1003554e
test eax, eax
jne 0x1003554e
call edi
sub eax, dword [esi + 0x90]
cmp eax, dword [esi + 0x98]
ja 0x100354c9
push 1
call sub.SETUPAPI.dll_CMP_WaitNoPendingInstallEvents
cmp eax, 0x102
jne 0x10035567
mov dword [esi], 1
jmp 0x10035688
cmp dword [esi], 1
jne 0x10035574
call edi
mov dword [esi + 0x90], eax
mov edx, dword [esi + 4]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esi], 0
call fcn.1002f8e0
add esp, 8
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x54], 0
call fcn.10006120
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x30]
call fcn.100e2f20
push eax
lea ecx, [esp + 0x18]
call fcn.100314e0
test al, al
je 0x10035672
cmp byte [esi + 0x9c], 0
lea ecx, [esp + 0x14]
jne 0x1003563c
call fcn.10031470
cmp dword [eax + 0x24], 4
je 0x1003566c
lea ecx, [esp + 0x14]
call fcn.10031470
cmp dword [eax + 0x24], 3
je 0x1003566c
lea ecx, [esp + 0x14]
call fcn.10031470
cmp dword [eax + 0x24], 1
je 0x10035652
lea ecx, [esp + 0x14]
call fcn.10031470
cmp dword [eax + 0x24], 2
je 0x10035652
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.100314a0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
call fcn.100e2f20
push eax
lea ecx, [esp + 0x18]
call fcn.100314e0
test al, al
jne 0x100355c1
jmp 0x10035672
mov dword [esi], 2
call fcn.10031470
push eax
lea ecx, [esi + 0xc]
call fcn.10032350
jmp 0x10035672
lea ecx, [esp + 0x14]
mov dword [esi], 2
call fcn.10031470
push eax
lea ecx, [esi + 0xc]
call fcn.10032350
jmp 0x10035672
mov dword [esi], 3
lea ecx, [esp + 0x2c]
call fcn.10031810
mov edx, dword [esp + 0x2c]
push edx
call fcn.100b1e2a
add esp, 4
mov esi, dword [esi]
mov eax, esi
sub eax, ebp
neg eax
sbb eax, eax
and eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret