joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460100
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417670]
call fcn.00404a94
xor eax, eax
push ebp
push 0x460244
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x469f30], 0
jne 0x460153
mov ecx, dword [0x46a110]
mov dl, 1
mov eax, dword [0x4073fc]
call fcn.0040bba8
call fcn.00403b1c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402da4
mov eax, ebx
call fcn.00404964
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x460254
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405b2c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404974
test eax, eax
jle 0x4601eb
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4601e4
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404384
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040436c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408254
test eax, eax
jne 0x4601e4
mov ebx, 0x15
jmp 0x4601f0
mov ebx, 0x10
jmp 0x4601f0
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x469f30]
call fcn.00460058
mov eax, dword [ebp - 8]
call fcn.00460058
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405b44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46024b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404120
lea eax, [ebp - 0x10]
mov edx, dword [0x417670]
call fcn.00404b64
ret
Function at 0x6be336
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.006be3b5
jae 0x6be342
xor ecx, ecx
call fcn.006be3b5
jae 0x6be36c
xor eax, eax
call fcn.006be3b5
jae 0x6be37d
mov al, 0x10
call fcn.006be3b5
adc al, al
jae 0x6be35e
jne 0x6be3aa
stosb byte es:[edi], al
jmp 0x6be343
call fcn.006be3c1
dec ecx
loop 0x6be389
mov eax, ebp
call fcn.006be3bf
jmp 0x6be3ab
lodsb al, byte [esi]
shr eax, 1
je 0x6be3d1
adc ecx, 2
mov ebp, eax
jmp 0x6be3ab
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.006be3bf
cmp eax, 0x7d00
jae 0x6be3a9
cmp eax, 0x500
jae 0x6be3aa
cmp eax, 0x7f
ja 0x6be3ab
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6be343
pop ebp
ret 8
Function at 0x261609
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x261a90
call fcn.002617b4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x262370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x2613c4
cmp eax, esi
jne 0x2613b7
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x2613c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x26139e
xor esi, esi
inc esi
mov eax, dword [0x26236c]
cmp eax, esi
jne 0x2613da
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x261409
mov eax, dword [0x26236c]
test eax, eax
jne 0x261403
mov dword [0x26236c], esi
push 0x2610b8
push 0x2610ac
call fcn.00261300
pop ecx
pop ecx
test eax, eax
je 0x261409
jmp 0x26152d
mov dword [0x262034], esi
mov eax, dword [0x26236c]
cmp eax, esi
jne 0x26142d
push 0x2610a8
push 0x2610a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x26236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x26143a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x262374], ebx
je 0x26145b
push 0x262374
call fcn.00261729
pop ecx
test eax, eax
je 0x26145b
push ebx
push 2
push ebx
call dword [0x262374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x26152d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x2614c5
cmp cx, bx
je 0x261480
cmp dword [ebp - 0x1c], ebx
jne 0x2614c5
movzx ecx, word [eax]
cmp cx, bx
je 0x261495
cmp cx, 0x20
ja 0x261495
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x261480
test byte [ebp - 0x40], 1
je 0x2614a1
movzx ecx, word [ebp - 0x3c]
jmp 0x2614a4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x260000
call main
mov dword [0x262030], eax
cmp dword [0x262024], ebx
jne 0x26150a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x2614d6
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x26146a
cmp dword [0x262034], ebx
jne 0x261518
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x262030]
jmp 0x261539
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.002617f9
ret
call fcn.00261901
jmp 0x261361
Function at 0x8d4710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x74e015
lea edi, [esi - 0x34d015]
push edi
jmp 0x8d472a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8d4731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d4720
mov eax, 1
add ebx, ebx
jne 0x8d4743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8d4754
jne 0x8d4773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d4773
dec eax
add ebx, ebx
jne 0x8d4760
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8d4738
add ebx, ebx
jne 0x8d476f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8d47c5
xor ecx, ecx
sub eax, 3
jb 0x8d478b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8d47fa
sar eax, 1
mov ebp, eax
jmp 0x8d4796
add ebx, ebx
jne 0x8d4796
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d4764
inc ecx
add ebx, ebx
jne 0x8d47a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d4764
add ebx, ebx
jne 0x8d47b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8d47a6
jne 0x8d47c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8d47a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8d47e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8d47d6
jmp 0x8d4726
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8d47e4
add edi, ecx
jmp 0x8d4726
pop esi
mov edi, esi
mov ecx, 0x45caa0
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x8d481f
cmp byte [edi], 0x2f
jne 0x8d4804
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x8d4802
lea edi, [esi + 0x4d2000]
mov eax, dword [edi]
or eax, eax
je 0x8d4867
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4d4200]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4d4280]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8d4825
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4d4288]
or eax, eax
je 0x8d4861
mov dword [ebx], eax
add ebx, 4
jmp 0x8d4842
call dword [esi + 0x4d4284]
mov ebp, dword [esi + 0x4d428c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8d489b
sub esp, 0xffffff80
jmp 0x45a3b0
Function at 0x647e9f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
imul dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov eax, ecx
imul dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
jmp fcn.00647a1a

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

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x64b24c
cmp dword [ecx + 0xc], 0
jne 0x64b24c
test byte [ecx + 0x28], 0x80
jne 0x64b24c
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov edx, eax
pop ebx
jmp fcn.0064add9
mov eax, 0xffffffea
pop ebx
ret
Function at 0x4088fc
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x4085d8
call fcn.0040891c
inc ebx
xor dword [ecx], eax
sub ebx, ebx
add ecx, 1
or ebx, ebx
cmp ecx, edx
jne fcn.004088fc
sub ebx, ebx
add ebx, esi
ret
Function at 0x10003f40
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x1015a4dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x10004001
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10094be0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x10003feb
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.10094be0
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x1011a940
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1011a944
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x10004001
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067b98
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.10094be0
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.100040d0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.100afff0
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x10004061
cmp eax, 0x207
ja 0x10004061
jne 0x10004068
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004071
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10067b98
mov esp, ebp
pop ebp
ret
Function at 0x10004b30
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.10067fc0
mov eax, dword [0x1015a4dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10004b60
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067b98
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.10094be0
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.100b1355
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.10067b98
mov esp, ebp
pop ebp
ret
Function at 0x10004bf0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x1015a4dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10004dd0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10004dd0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004c23
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x10004dd0
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov ebx, 1
push 0
push eax
call fcn.10094be0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10094be0
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call edi
push 0x1011a9fc
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x10004db6
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10004daa
test byte [ebp - 0x664], 0x10
je 0x10004d3a
cmp word [ebp - 0x638], 0x2e
jne 0x10004cf9
mov ax, word [ebp - 0x636]
test ax, ax
je 0x10004d8f
cmp ax, 0x2e
jne 0x10004cf9
cmp word [ebp - 0x634], 0
je 0x10004d8f
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10094be0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call fcn.10004bf0
add esp, 4
jmp 0x10004d8d
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10094be0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and ebx, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10004cc2
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
and eax, ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067b98
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10067b98
mov esp, ebp
pop ebp
ret
Function at 0x10004df0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10004e51
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10004e51
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10004e28
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10004e51
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10004e4c
test al, 0x10
je 0x10004e4c
push esi
call fcn.10004bf0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10004e51
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x10005ae0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10005b28
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10005b28
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10005b18
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10005b28
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x10005e40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10005e99
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10005e99
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10005e8a
cmp esi, edx
jae 0x10005e99
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10005e78
cmp esi, edx
jae 0x10005e99
cmp word [esi], 0
je 0x10005e99
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x100072c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x1015a4dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x800
lea eax, [ebp - 0x804]
mov ebx, ecx
push 0
push eax
call fcn.10094be0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.PCStoreInstaller
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x808], esi
test esi, esi
je 0x100073d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000739d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.PCStoreSetupMainWnd
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x1000738b
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1000738b
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0
push eax
push 0x3e8
push 1
push 0
push 0
push 0x1400
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067b98
mov esp, ebp
pop ebp
ret
push edi
lea edi, [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
lea ecx, [ebx + 4]
cmp dword [ecx + 8], eax
je 0x100073bb
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x100073c8
lea edx, [ebp - 0x808]
push edx
push eax
call fcn.10006e10
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.10067b98
mov esp, ebp
pop ebp
ret
Function at 0x10009cb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], esi
push edi
test ebx, ebx
jne 0x10009ccd
xor edi, edi
jmp 0x10009e24
cmp dword [ebp + 0x14], 0
je 0x10009dfd
push 0x1440
call fcn.10032d00
mov edi, eax
add esp, 4
test edi, edi
je 0x10009d93
mov ecx, dword [ebp + 0x40]
xor edx, edx
mov dword [ebp - 0x28], edx
test ecx, ecx
je 0x10009d07
mov eax, dword [ecx]
lea edx, [ebp - 0x4c]
push edx
call dword [eax]
mov edx, eax
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp + 8]
lea esi, [edi + 0x1418]
mov dword [edi], ecx
mov dword [edi + 0x1414], 1
mov dword [esi + 0x24], 0
test edx, edx
je 0x10009d31
mov eax, dword [edx]
mov ecx, edx
push esi
call dword [eax]
mov dword [esi + 0x24], eax
push 0x1000
lea esi, [edi + 4]
push 0
push esi
call fcn.10094be0
push 0x800
push ebx
push esi
call fcn.100b1355
push 0x410
lea esi, [edi + 0x1004]
push 0
push esi
call fcn.10094be0
mov eax, dword [ebp - 4]
add esp, 0x24
test eax, eax
je 0x10009d79
push 0x208
push eax
push esi
call fcn.100b1355
add esp, 0xc
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x10009d95
mov edx, dword [ecx]
lea eax, [ebp - 0x4c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x10009d95
xor edi, edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], vtable.CSimpleThread.0
push eax
push 0
push edi
push 0x10009e50
push 0
push 0
mov dword [ebp - 0xc], 0x10009e50
mov dword [ebp - 8], edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.100b2431
add esp, 0x18
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], vtable.CSimpleThread.0
test eax, eax
je 0x10009df6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x10009e24
sub esp, 0x28
mov edi, esp
mov dword [edi + 0x24], 0
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x10009e18
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov ecx, dword [ebp + 8]
push esi
push ebx
call fcn.1000a0f0
mov edi, eax
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x10009e3c
mov esi, dword [ecx]
lea eax, [ebp + 0x1c]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x10009f30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.10067fc0
mov eax, dword [0x1015a4dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0x10]
push 0x4000
push 0
push eax
call fcn.10094be0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x1000a028
test edi, edi
je 0x1000a028
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x1000a028
cmp eax, 0x3fff
ja 0x1000a028
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1000a028
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x1011ab90
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1000a028
mov esi, dword [ebp + 0x14]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.10094be0
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x1011ad84
lea eax, [esi - 1]
push eax
push edi
call fcn.1000b1c0
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067b98
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.10067b98
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1000a0b0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x1000a0d5
test byte [ebp - 4], 7
je 0x1000a0d5
mov eax, 1
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a0f0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010ac58
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x1015a4dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x1000a192
cmp word [esi], di
je 0x1000a192
test eax, eax
je 0x1000a14e
cmp word [eax], di
je 0x1000a14e
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x1000a192
jmp 0x1000a18d
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10094be0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x1000a192
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1000a1c3
mov dword [ebp - 0x424], edi
lea edx, [ebp - 0x424]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1000a1c3
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
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.10067b98
mov esp, ebp
pop ebp
ret 0x30