joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100a6204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push 0x200
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.10051fb0
push esi
push str.__SystemRoot__System32_svchost.exe__k__s
lea eax, [ebp - 0x204]
push 0xff
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x204]
push eax
push 2
push 0
push str.ImagePath
push dword [ebp - 0x208]
call esi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push str.Start
push dword [ebp - 0x208]
call esi
xor eax, eax
cmp dword [ebp + 0x14], eax
push 4
setne al
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push str.DelayedAutostart
push dword [ebp - 0x208]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push str.Description
push dword [ebp - 0x208]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10049342
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1001e520
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100a6204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push esi
mov esi, dword [ebp + 8]
push 0x210
push 0
push eax
mov dword [ebp - 0x218], esi
call fcn.10051fb0
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x107
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x214]
push eax
push 2
push 0
push str.ServiceDll
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push str.ServiceMain
push dword [ebp - 0x218]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10049342
mov esp, ebp
pop ebp
ret 8
Function at 0x1001e6e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x100a6204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0x250
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x674]
push 0
push eax
mov dword [ebp - 0x67c], ebx
call fcn.10051fb0
add esp, 0xc
xor eax, eax
test esi, esi
je 0x1001e853
test ebx, ebx
je 0x1001e853
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x424]
push ebx
push eax
call edi
test eax, eax
je 0x1001e850
push dword [ebp - 0x678]
lea eax, [ebp - 0x424]
push eax
call edi
test eax, eax
je 0x1001e850
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001e850
nop dword [eax + eax]
push dword [ebp - 0x67c]
xor eax, eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x1001e81b
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x1001e81b
test dword [ebp - 0x674], 0x10
jne 0x1001e7e2
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.1001d9e0
jmp 0x1001e81b
cmp word [ebp - 0x648], 0x2e
jne 0x1001e808
mov ax, word [ebp - 0x646]
test ax, ax
je 0x1001e81b
cmp ax, 0x2e
jne 0x1001e808
cmp word [ebp - 0x644], 0
je 0x1001e81b
push dword [ebp - 0x678]
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.1001e6e0
lea ecx, [ebp - 0x674]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001e790
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10049342
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10049342
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001e870
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009d3f8
push 0x10052150
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100a6204]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], esi
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], ebx
xor edi, edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], edi
push 0x10085dac
call fcn.10007880
add esp, 4
test ebx, ebx
je 0x1001ea6f
push 1
push esi
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x1001e8fb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x10085dc8
call fcn.10007880
add esp, 8
jmp 0x1001ea6f
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], esi
mov edi, 0x1ffe
mov dword [ebp - 0x58], edi
xor esi, esi
mov dword [ebp - 0x60], esi
cmp esi, 2
jb 0x1001e938
mov word [ebx + esi], 0
cmp edi, 0x1ffe
jne 0x1001e93e
movzx edi, word [ebx]
mov dword [ebp - 0x58], edi
push edi
push 0x10085e00
call fcn.10007880
add esp, 8
cmp edi, 0x1ffe
jbe 0x1001e952
push 0x10085e1c
call fcn.10007880
add esp, 4
jmp 0x1001ea3b
cmp esi, edi
jl 0x1001e968
push str.____n
call fcn.10007880
add esp, 4
jmp 0x1001ea3b
push 0
push dword [ebp + 0x18]
push 0
lea eax, [ebp - 0x68]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ebx, eax
cmp ebx, 2
jae 0x1001ea23
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp + ebx*4 - 0x68]
jne 0x1001e9a1
push 0x10085e8c
call fcn.10007880
add esp, 4
jmp 0x1001ea38
push 0x2c
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.10051fb0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x5c]
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test dword [ebp - 0x48], 1
jne 0x1001e9d9
push str.___._n
call fcn.10007880
add esp, 4
jmp 0x1001ea38
push 0
mov eax, edi
sub eax, esi
push eax
mov ebx, dword [ebp - 0x4c]
lea eax, [ebx + esi]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1001ea0a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.___:_:_u_n
call fcn.10007880
add esp, 8
jmp 0x1001ea3b
add esi, eax
mov dword [ebp - 0x60], esi
push esi
push eax
push str.___:_u_u._n
call fcn.10007880
add esp, 0xc
jmp 0x1001e911
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push 0x10085e58
call fcn.10007880
add esp, 0xc
mov ebx, dword [ebp - 0x4c]
cmp esi, 2
jb 0x1001ea52
movzx ecx, word [ebx]
mov edx, ecx
cmp esi, ecx
jne 0x1001ea55
mov edi, 1
mov eax, ecx
jmp 0x1001ea5a
movzx edx, word [ebx]
xor edi, edi
movzx eax, dx
mov dword [ebp - 0x54], edi
push esi
movzx eax, ax
push eax
push str._____u_u._n
call fcn.10007880
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
call fcn.1001ea9e
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10049342
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10020610
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009d3d8
push 0x10052150
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100a6204]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x58], esi
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], ebx
xor edi, edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], edi
push 0x10085c54
call fcn.10007880
add esp, 4
test ebx, ebx
je 0x100207ba
push 2
push esi
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x1002069b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x10085c70
call fcn.10007880
add esp, 8
jmp 0x100207ba
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], esi
movzx edi, word [ebx]
xor esi, esi
mov dword [ebp - 0x5c], esi
nop dword [eax]
push 0
push dword [ebp + 0x18]
push 0
lea eax, [ebp - 0x64]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ebx, eax
cmp ebx, 2
jae 0x1002076e
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp + ebx*4 - 0x64]
jne 0x100206e9
push 0x10085ce0
call fcn.10007880
add esp, 4
jmp 0x10020783
push 0x2c
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.10051fb0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x58]
mov ebx, dword [ebp + 0x10]
push ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test dword [ebp - 0x48], 2
jne 0x10020722
push 0x10085cf4
call fcn.10007880
add esp, 4
jmp 0x10020783
cmp esi, edi
jge 0x10020783
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp - 0x4c]
add eax, esi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x10020745
add esi, eax
mov dword [ebp - 0x5c], esi
jmp 0x10020722
cmp esi, edi
jge 0x10020783
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
je 0x100206b0
call ebx
push eax
push 0x10085d10
call fcn.10007880
add esp, 8
jmp 0x10020783
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push 0x10085cac
call fcn.10007880
add esp, 0xc
mov eax, dword [ebp - 0x4c]
cmp esi, 2
jb 0x1002079d
movzx ecx, word [eax]
mov edx, ecx
cmp esi, ecx
jne 0x100207a0
mov edi, 1
mov eax, ecx
jmp 0x100207a5
movzx edx, word [eax]
xor edi, edi
movzx eax, dx
mov dword [ebp - 0x54], edi
push esi
movzx eax, ax
push eax
push 0x10085d38
call fcn.10007880
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
call fcn.100207e9
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10049342
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10020c10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0
push 0
push 1
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0x10020570
push 0
push 0
call fcn.10059644
add esp, 0x18
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
setne al
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100251b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007dd39
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100a6204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
cmp byte [esi + 8], 0
je 0x100251f6
call fcn.10024ff0
mov byte [esi + 8], 0
cmp dword [esi + 4], 0x40000000
jle 0x10025232
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x10025217
push eax
call fcn.1005c137
add esp, 4
mov dword [esi + 0x24], 0xffffffff
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x10025222
mov eax, dword [eax]
push eax
call fcn.1005b75f
add esp, 4
mov ecx, esi
call fcn.10024ff0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov eax, dword [edi + 0x10]
push 0
add eax, eax
push eax
call fcn.10023da0
mov edx, dword [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 0x2c], 1
test edx, edx
je 0x10025290
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, edi
cmovae ecx, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x1002526e
mov eax, dword [edi]
push 0
push 0
push edx
push ecx
push dword [edi + 0x10]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10012bd0
cmp dword [ebx + 0x14], 0x10
mov ecx, dword [ebx + 0x10]
jb 0x1002529b
mov ebx, dword [ebx]
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x100252b2
push ecx
push ebx
push eax
call fcn.1005ca4c
add esp, 0xc
mov ebx, eax
jmp 0x100252b5
or ebx, 0xffffffff
mov eax, 1
mov dword [ebp - 0x2c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005370
test ebx, ebx
jle 0x100252db
add dword [esi + 4], ebx
jmp 0x100252ea
cmp dword [edi + 0x14], 8
jb 0x100252e3
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10049342
mov esp, ebp
pop ebp
ret 4
Function at 0x10027860
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e360
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100a6204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10027913
push dword [ebp - 0x18]
call fcn.10057947
mov esi, eax
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x14]
add ecx, ecx
push ecx
call fcn.10057947
add esp, 8
mov edi, eax
mov dword [ebp - 0x20], edi
test esi, esi
je 0x10027970
test edi, edi
je 0x10027970
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x10027970
mov ebx, 1
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x10027932
test edi, edi
je 0x1002793f
push edi
call fcn.10057942
add esp, 4
test ebx, ebx
jne 0x10027952
test esi, esi
je 0x10027957
push esi
call fcn.10057942
add esp, 4
jmp 0x10027957
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
test ebx, ebx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
call fcn.10051090
int3
Function at 0x10028390
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009ef40
push 0x10052150
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x100a6204]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x254], eax
xor ebx, ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x250], 0xffffffff
mov dword [ebp - 4], ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x250], edi
cmp edi, 0xffffffff
je 0x10028461
push 0x22c
push ebx
lea eax, [ebp - 0x248]
push eax
call fcn.10051fb0
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10028461
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop
push dword [ebp - 0x254]
lea eax, [ebp - 0x224]
push eax
call esi
test eax, eax
je 0x10028456
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10028430
jmp 0x10028461
mov ebx, 1
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.10028497
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10049342
mov esp, ebp
pop ebp
ret
Function at 0x100284b0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x100a6204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10051fb0
add esp, 0xc
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x234]
push dword [0x100a50f0]
call fcn.10003ca0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x23c]
push dword [0x100a50f8]
call fcn.10003ca0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.1002ee20
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
lea esi, [ecx + 2]
mov word [ebp - 0x230], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100285a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.10011780
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov edx, dword [ebp - 0x238]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100285e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, esi
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028601
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10028620
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0x20119
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x248]
push eax
push reloc.WS2_32.dll_bind
call fcn.10017580
mov edi, dword [ebp - 0x248]
test eax, eax
jne 0x100286b0
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push str.UninstallString
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100286b0
mov eax, dword [ebp - 0x238]
cmp eax, 1
je 0x10028695
cmp eax, 2
jne 0x100286b0
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x10028704
test al, 1
jne 0x100286b0
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x1002870d
xor esi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.100053f0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100286dd
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x248], 0
mov eax, esi
mov dword [ebp - 0x244], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10049342
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
jmp 0x100286b2
Function at 0x10028b80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e5b2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100a6204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10051fb0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100a79b4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
push 0x100876dc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10028d22
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x10028d3d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 1
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x10028d47
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.100074e0
test al, al
jne 0x10028ca2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10028c80
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000f980
mov byte [ebp - 4], 3
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.10007c30
add esp, 8
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x21c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10028ce0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x10028cfc
js 0x10028d51
cmp word [eax], 0x36
jb 0x10028cfc
mov edi, 1
jmp 0x10028cfe
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10028d20
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10049342
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
push 0x80070057
call fcn.100074c0
int3