joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100091f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8ab6
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x100db55c]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x414], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
test edi, edi
jne 0x1000928d
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x1000928d
call fcn.10007f00
mov esi, eax
jmp 0x10009386
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100092b0
call fcn.10007f00
jmp 0x10009379
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x100092c8
call fcn.10007f00
jmp 0x10009379
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x100092e3
mov esi, 0x8007000e
jmp 0x1000937b
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x100093c0
jb 0x10009301
cmp eax, 0xffffffff
ja 0x100093c0
cmp eax, 0x400
jbe 0x10009316
push eax
lea ecx, [ebp - 0x414]
call fcn.10007e20
jmp 0x10009322
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
mov dword [ebp - 4], 1
jne 0x10009339
mov esi, 0x8007000e
jmp 0x1000937b
push esi
push dword [ebp - 0x414]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10009359
call fcn.10007f00
jmp 0x10009379
mov eax, dword [ebp - 0x414]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x424]
push dword [ebp - 0x414]
call fcn.10009050
mov esi, eax
test edi, edi
je 0x10009386
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x100093a0
lea ecx, [ebp - 0x414]
call fcn.100081c0
nop
mov eax, esi
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.1006a7ac
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.10001810
int3
Function at 0x10009d60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8b3a
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push esi
push edi
mov eax, dword [0x100db55c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x100dd740]
test ecx, ecx
jne 0x10009def
push 0x100da014
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100dd740], 0
jne 0x10009dde
push 4
call fcn.1006a76e
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x10009dcc
mov ecx, eax
call fcn.1006be60
mov ecx, eax
jmp 0x10009dce
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
xchg dword [ebp - 0x10], eax
mov dword [0x100dd740], ecx
push 0x100da014
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100dd740]
push 0
push str.Basic
push 1
call fcn.1006bef0
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xc], 0
jne 0x10009e7f
call fcn.1005d6c0
test eax, eax
je 0x10009e5d
call fcn.1005d6c0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10009e5d
call fcn.1005d6c0
lea ecx, [ebp - 0xa8]
mov edi, eax
call fcn.10006650
mov esi, eax
push str.StartPlugin
push esi
mov dword [ebp - 4], 1
call fcn.100072a0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0xa8]
call fcn.10007360
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0
push ebx
push 0x1000a090
push 0
push 0
call fcn.1007d943
add esp, 0x18
mov dword [ebx + 0xc], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8cab
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100db55c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x220], esi
call fcn.10076710
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1000c5ef
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.10002c20
mov ecx, eax
test ecx, ecx
je 0x1000c660
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.100036d0
test al, al
jne 0x1000c644
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c626
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10002820
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006a7ac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001810
int3
Function at 0x1000c770
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8d49
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x100db55c]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x21c], edi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.10076710
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1000c840
call fcn.10002c20
mov ecx, eax
test ecx, ecx
je 0x1000c96a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x100cc394
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.100036d0
test al, al
jne 0x1000c815
push 0
push 0x100cc394
mov ecx, edi
call fcn.10002820
mov esi, dword [ebp + 0xc]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000c94c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1000c94c
call fcn.10002c20
mov ecx, eax
test ecx, ecx
je 0x1000c974
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x21c]
call fcn.100036d0
test al, al
jne 0x1000c8a2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c880
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.10002820
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
push dword [eax - 0xc]
push eax
call fcn.1000c3b0
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp - 0x21c]
je 0x1000c901
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000c901
push 0x100cc394
mov ecx, edi
call fcn.10003790
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000c92d
mov ecx, dword [edx]
push edx
jmp 0x1000c928
lea ebx, [esi - 0x10]
push ebx
call fcn.100025a0
add eax, 0x10
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov dword [edi], eax
add esp, 4
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x1000c92d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1000c94c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.1006a7ac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001810
push 0x80004005
call fcn.10001810
int3
Function at 0x1000c980
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8d88
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100db55c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1000cad2
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1000cad2
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1000cad2
call fcn.10002c20
mov ecx, eax
test ecx, ecx
je 0x1000cafd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
push edi
push 0x800
push 0x800
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.1000c520
push eax
push dword [ebp + 0x18]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push dword [esi - 8]
push esi
call fcn.1007dbae
add esp, 8
test eax, eax
js 0x1000cb07
cmp eax, dword [esi - 8]
jg 0x1000cb07
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
cmp eax, 0x7ff
je 0x1000ca44
cmp eax, 0x7fe
jne 0x1000ca8e
push edi
push 0x1000
push 0x1000
lea ecx, [ebp + 0xc]
call fcn.1000c520
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp + 0xc]
push dword [esi - 8]
push esi
call fcn.1007dbae
add esp, 8
test eax, eax
js 0x1000cb07
cmp eax, dword [esi - 8]
jg 0x1000cb07
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
add esi, 0xfffffff0
push esi
call fcn.100025a0
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000cabe
mov ecx, dword [esi]
push esi
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
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov ecx, 0x100cc394
test eax, eax
cmovne ecx, eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.10003790
mov eax, dword [ebp + 8]
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 0x80004005
call fcn.10001810
push 0x80070057
call fcn.10001810
int3
Function at 0x1000cb20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000cbd7
cmp dword [ebp + 0xc], 0
je 0x1000cbd7
test edx, edx
je 0x1000cbd7
mov ecx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 4
mov dword [ebp + 8], 0
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000cb70
sub ecx, ebx
lea eax, [ebp + 8]
sar ecx, 1
mov ebx, 0
push eax
cmovne ebx, edx
mov ecx, 0x20019
cmp dword [ebp + 0x18], 0
mov eax, 0x20119
cmove eax, ecx
push eax
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000cbd7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
test esi, esi
je 0x1000cbda
mov eax, dword [ebp + 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000cbe0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x100db55c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x814], ecx
mov dword [ebp - 0x810], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x80c], edi
test ecx, ecx
je 0x1000ccea
test eax, eax
je 0x1000ccea
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10076710
add esp, 0xc
mov dword [ebp - 0x80c], 1
mov dword [ebp - 0x818], 0x200000
mov dword [ebp - 0x808], 0
test esi, esi
je 0x1000cc7b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000cc64
sub ecx, edx
mov eax, 0
sar ecx, 1
cmove esi, eax
cmp dword [ebp + 0x1c], 0
lea eax, [ebp - 0x808]
push eax
mov ecx, 0x20019
mov eax, 0x20119
cmove eax, ecx
push eax
push 0
push dword [ebp - 0x810]
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000ccea
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push esi
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x808]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000ccea
lea eax, [ebp - 0x804]
jmp 0x1000ccf4
test ebx, ebx
mov eax, 0x100cc394
cmovne eax, ebx
push eax
mov ecx, edi
call fcn.10003790
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006a7ac
mov esp, ebp
pop ebp
ret
Function at 0x1000d070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000d116
cmp dword [ebp + 0xc], 0
je 0x1000d116
test edx, edx
je 0x1000d116
mov ecx, edx
mov dword [ebp + 8], 0
push ebx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d0a2
sub ecx, ebx
lea eax, [ebp - 4]
push eax
sar ecx, 1
lea eax, [ebp + 8]
push eax
mov ebx, 0
mov ecx, 0x20006
push 0
cmovne ebx, edx
mov eax, 0x20106
cmp dword [ebp + 0x18], 0
cmove eax, ecx
push eax
push 0
push 0
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x1000d109
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop ebx
sete al
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000d120
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 8
mov edx, dword [ebp + 0x10]
test eax, eax
push esi
mov esi, 0x100cc394
cmovne esi, eax
cmp dword [ebp + 8], 0
push edi
je 0x1000d1f2
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1000d1f2
test edx, edx
je 0x1000d1f2
mov ecx, edx
mov dword [ebp + 0x14], 0
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d164
sub ecx, dword [ebp - 4]
mov eax, 0
sar ecx, 1
mov ecx, 0x20006
cmovne eax, edx
cmp dword [ebp + 0x18], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x14]
push eax
push 0
mov eax, 0x20106
cmove eax, ecx
push eax
push 0
push 0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x1000d1e5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d1b6
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push dword [ebp - 4]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000e940
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100db55c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
mov edi, dword [ebp + 8]
push edi
call ebx
test eax, eax
je 0x1000eb0d
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000eb0d
push esi
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10076710
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10076710
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.10086f8a
add esi, eax
lea eax, [ebp - 0x20c]
push esi
push eax
push str._sxra__u.tmp
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000ff00
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x414]
add esp, 0x14
push 1
push eax
push edi
call esi
test eax, eax
je 0x1000ea15
push 4
push 0
lea eax, [ebp - 0x414]
push eax
call esi
push edi
call ebx
test eax, eax
je 0x1000eac6
push edi
call ebx
test eax, eax
je 0x1000eafa
movzx eax, word [edi]
push eax
push str._c:.temp
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000ff00
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x1000ea73
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.10086f8a
add esi, eax
lea eax, [ebp - 0x20c]
push esi
push eax
push str._sxra__u.tmp
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000ff00
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x414]
add esp, 0x14
push 1
push eax
push edi
call esi
test eax, eax
je 0x1000eadc
push 4
push 0
lea eax, [ebp - 0x414]
push eax
call esi
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a7ac
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x1000eafa
push 4
push 0
push edi
call esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a7ac
mov esp, ebp
pop ebp
ret
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a7ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.1006a7ac
mov esp, ebp
pop ebp
ret
Function at 0x1000eb50
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
test ebx, ebx
je 0x1000ecf2
mov eax, dword [0x100dd788]
test eax, eax
jne 0x1000ebd4
push 0x100da0c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100dd788], 0
jne 0x1000ebc4
push 0x10
call fcn.1006a76e
mov ecx, eax
add esp, 4
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x1000ebb9
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
jmp 0x1000ebbb
xor ecx, ecx
xchg dword [ebp - 4], eax
mov dword [0x100dd788], ecx
push 0x100da0c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x100dd788]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1000ecf2
mov eax, dword [ecx]
call dword [eax]
mov edi, eax
test edi, edi
je 0x1000ecf2
mov edx, dword [edi]
mov ecx, edi
push 0
push 0x100aff1c
call dword [edx + 0x30]
mov eax, dword [edi]
mov ecx, edi
push 0
push str.gzip
call dword [eax + 0x30]
test edi, edi
je 0x1000ecf2
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push edi
mov dword [ebp - 8], 0
call fcn.1000df00
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov edi, dword [esi + 8]
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
test edi, edi
je 0x1000ec62
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x1000ec5f
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x1000ec5f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [esi + 4]
push esi
mov eax, dword [ecx]
call dword [eax]
mov edi, dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000ec8d
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000ecf2
mov ecx, dword [esi + 4]
push dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [esi + 4]
push dword [ebp + 8]
push 0
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x1000ecf2
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000ecf2
mov ecx, dword [ebp + 0x14]
push ebx
test ecx, ecx
je 0x1000ecdb
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x1000ecf2
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000ecf2
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10012130
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100db55c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10012199
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a7ac
mov esp, ebp
pop ebp
ret

Function at 0x10012440
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x10012457
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebp + 0x14], 0
je 0x10012540
push edi
push 0x1418
call fcn.1006a76e
mov edi, eax
add esp, 4
test edi, edi
je 0x100124d0
mov ecx, dword [ebp + 8]
push esi
push 0x1000
lea esi, [edi + 4]
mov dword [edi], ecx
push 0
push esi
mov dword [edi + 0x1414], 1
call fcn.10076710
push 0x800
push ebx
push esi
call fcn.1008706a
push 0x410
lea esi, [edi + 0x1004]
push 0
push esi
call fcn.10076710
mov eax, dword [ebp + 0x10]
add esp, 0x24
test eax, eax
je 0x100124cd
push 0x208
push eax
push esi
call fcn.1008706a
add esp, 0xc
pop esi
jmp 0x100124d2
xor edi, edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], vtable.CSimpleThread.0
push eax
push 0
push edi
push 0x10012560
push 0
push 0
mov dword [ebp - 8], 0x10012560
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.1007d943
add esp, 0x18
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], vtable.CSimpleThread.0
pop edi
test eax, eax
je 0x10012534
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
call fcn.100128e0
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x10012630
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 0x10012655
test byte [ebp - 4], 7
je 0x10012655
mov eax, 1
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov esp, ebp
pop ebp
ret 4