joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10064990
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x100649b3
mov eax, dword [edi]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x10064b0b
lea edx, [ecx - 1]
cmp edx, 0xffffffff
jb 0x100649c9
or edx, 0xffffffff
cmp word [eax + edx*2], 0x5c
lea esi, [eax + edx*2]
je 0x100649e4
cmp esi, eax
je 0x10064b0b
sub esi, 2
cmp word [esi], 0x5c
jne 0x100649d3
sub esi, eax
sar esi, 1
cmp esi, 0xffffffff
je 0x10064b0b
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp ecx, esi
jb 0x10064a0b
mov ecx, esi
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10064a15
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.100070c0
xor eax, eax
mov dword [ebp - 0x28], 0
inc esi
mov word [ebp - 0x38], ax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x24], 7
cmp eax, esi
jb 0x10064b88
sub eax, esi
cmp eax, 0xffffffff
jb 0x10064a49
or eax, 0xffffffff
cmp dword [edi + 0x14], 8
jb 0x10064a51
mov edi, dword [edi]
push eax
lea eax, [edi + esi*2]
push eax
lea ecx, [ebp - 0x38]
call fcn.100070c0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x50]
call fcn.10005170
push 4
push str._tmp
lea ecx, [ebp - 0x50]
call fcn.10006d70
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
jb 0x10064a85
mov eax, dword [ebp - 0x50]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10005170
push 1
push 0x10202944
lea ecx, [ebp - 0x1c]
call fcn.10006d70
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
jb 0x10064ab5
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push eax
call fcn.10006d70
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.10005170
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebx + 0x18]
call fcn.10005170
lea ecx, [ebp - 0x1c]
call fcn.10005250
lea ecx, [ebp - 0x50]
call fcn.10005250
lea ecx, [ebp - 0x38]
call fcn.10005250
lea ecx, [ebp - 0x68]
call fcn.10005250
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 0x20]
call fcn.10005170
mov eax, dword [ebp - 0x20]
lea ecx, [ebx + 0x18]
mov dword [ebx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x14], eax
xor eax, eax
push eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push 0x10202940
mov dword [ebp - 8], 0x10202940
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov word [ecx], ax
call fcn.100070c0
lea ecx, [ebp - 0x20]
call fcn.10005250
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
call fcn.10006b50
int3
Function at 0x10065400
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
push esi
jb 0x1006544f
call fcn.10065470
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
call fcn.100657a0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x10065f80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 0x22d]
call fcn.10129b80
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
push 0x102096d4
push 0x17
push 0
push 0x102096c4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x234]
mov esi, eax
mov dword [ebp - 0x238], 0
test ecx, ecx
je 0x10066111
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0x14]
mov esi, eax
test esi, esi
jne 0x10066101
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x238]
push edx
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov esi, eax
test esi, esi
jne 0x10066101
push edi
push 0x190
push eax
mov dword [ebp - 0x23c], eax
lea edi, [ebp - 0x20c]
lea eax, [ebp - 0x194]
mov ecx, 0x1e
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.101f9fcf
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x23c]
add esp, 0xc
push 4
push eax
push 4
push str.NoInternetIcon
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call esi
push 4
lea eax, [ebp - 0x23c]
push eax
push 4
push str.NoInternetIcon
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x238]
call esi
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x102096b4]
lea edx, [ebp - 0x22c]
mov dword [ebp - 0x22c], eax
mov eax, dword [0x102096b8]
mov dword [ebp - 0x228], eax
mov eax, dword [0x102096bc]
mov dword [ebp - 0x224], eax
mov eax, dword [0x102096c0]
push edx
mov dword [ebp - 0x220], eax
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 0x234]
push edx
push 1
mov dword [ebp - 0x21c], 0x35378eac
mov dword [ebp - 0x218], 0x11d2683f
mov dword [ebp - 0x214], 0xc0009aa8
mov dword [ebp - 0x210], 0xa2cfbb4f
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x1c]
mov esi, eax
pop edi
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x10066111
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x22d]
call fcn.10129ba0
mov ecx, dword [ebp - 4]
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret

Function at 0x10066130
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10257b6c]
test eax, eax
jne 0x10066199
cmp dword [0x10257b70], eax
jne 0x100661ba
push 0x118
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.101f9fcf
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov dword [0x10257b6c], eax
mov dword [0x10257b70], ecx
jmp 0x1006619f
mov ecx, dword [0x10257b70]
cmp eax, 6
jb 0x100661ba
jne 0x100661aa
test ecx, ecx
je 0x100661ba
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x100669d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.101f9fcf
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
setae al
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret

Function at 0x10066f10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov ecx, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x218], esi
lea edx, [ecx + 2]
mov dword [ebp - 0x214], eax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10066f50
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0x10202940
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.101f9fcf
lea edx, [ebp - 0x20c]
add esp, 0xc
mov ecx, ebx
sub edx, ebx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10066f93
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10066fb0
mov ecx, 7
mov esi, str.opencommand
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x214]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10066fd3
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0x10202940
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push ebx
push str._s_scommand
push 0x104
push eax
call fcn.101fa29f
mov ecx, esi
add esp, 0x14
lea edx, [ecx + 2]
jmp 0x10067030
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10067030
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0x10202940
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10067070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1006709c
mov esi, str.360SE.EXE
lea eax, [ecx + 0x1c]
mov ebx, str.360SE_Browser
jmp 0x100670a9
mov esi, str.IEXPLORE.EXE
lea eax, [ecx + 4]
mov ebx, str.Internet_Explorer
cmp dword [eax + 0x14], 8
jb 0x100670b1
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.101ef650
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.101f9fcf
add esp, 0x18
test edi, edi
je 0x100671e2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100670e6
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0x10202940
push str.SOFTWAREClientsStartMenuInternet
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push esi
push str.SOFTWAREClientsStartMenuInternet
push 0x102040c0
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.101fa29f
mov ecx, ebx
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10067137
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0x10202940
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push str.shellopencommand
push esi
push str.SOFTWAREClientsStartMenuInternet
push 0x102049ac
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.101fa29f
lea ecx, [ebp - 0x414]
add esp, 0x18
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10067190
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0x10202940
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push str.SOFTWAREClientsStartMenuInternet
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x18
push str.IEXPLORE.EXE
push 1
push 0x10202940
push str.SOFTWAREClientsStartMenuInternet
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 0x18
push str.IEXPLORE.EXE
push 1
push 0x10202940
push str.SOFTWAREClientsStartMenuInternet
push SysReAllocString
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
Function at 0x10079b50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
add ebx, 0x90
push edi
mov dword [ebp - 0x428], esi
mov edi, dword [esi]
add edi, 0xc0
cmp dword [ebx + 4], 0
jne 0x10079c9d
mov eax, dword [0x1025b450]
cmp eax, 0xffffffff
je 0x10079bf0
cmp dword [0x1025b454], 0xffffffff
je 0x10079bf0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x10079bf2
mov eax, dword [0x1025b458]
test eax, eax
je 0x10079bf2
lea ecx, [ebp - 0x420]
push ecx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push dword [0x1025b450]
call esi
push dword [ebp - 0x420]
push dword [0x1025b454]
call esi
mov esi, dword [ebp - 0x424]
jmp 0x10079bf2
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.101f9fcf
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.101f9fcf
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push 0
push eax
push 0
call dword [0x102023e4]
test eax, eax
je 0x10079c4d
lea eax, [ebx + 8]
push eax
push ebx
push 0x100
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1008e2e0
add esp, 0x14
push 0
push 0x19
lea eax, [ebp - 0x414]
push eax
push 0
call dword [0x102023e4]
test eax, eax
je 0x10079c7f
lea eax, [ebx + 8]
push eax
push ebx
push 0x100
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1008e2e0
add esp, 0x14
push esi
mov ecx, 0x1025b450
call fcn.10008cd0
cmp dword [ebx + 4], 0
jne 0x10079c97
xor bl, bl
jmp 0x10079d40
mov esi, dword [ebp - 0x428]
test edi, edi
je 0x10079ca8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea eax, [ebp - 0x41c]
mov ecx, edi
push eax
call fcn.1007ee90
cmp dword [ebp - 0x418], 0
je 0x10079ceb
push dword [ebp + 8]
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x41c]
push 0x100
push eax
call fcn.10096370
test al, al
jne 0x10079cdf
xor bl, bl
jmp 0x10079ced
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x418]
add dword [ecx + 0x1c], eax
mov bl, 1
mov esi, dword [ebp - 0x41c]
lea ecx, [ebp - 0x41c]
push dword [esi + 4]
call fcn.100291c0
mov eax, dword [ebp - 0x41c]
push 0x40
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x41c]
mov dword [eax], esi
mov eax, dword [ebp - 0x41c]
mov dword [eax + 8], esi
push dword [ebp - 0x41c]
mov dword [ebp - 0x418], 0
call fcn.101f9fd5
add esp, 8
test edi, edi
je 0x10079d40
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10079d68
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10079d68
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10079d68
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
Function at 0x100839a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0
je 0x100839cd
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1025b450]
push esi
cmp eax, 0xffffffff
je 0x10083a2f
cmp dword [0x1025b454], 0xffffffff
je 0x10083a2f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], esi
test esi, esi
jne 0x10083a39
mov eax, dword [0x1025b458]
test eax, eax
je 0x10083a39
lea ecx, [ebp - 0x210]
push ecx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push dword [0x1025b450]
call esi
push dword [ebp - 0x210]
push dword [0x1025b454]
call esi
jmp 0x10083a39
mov dword [ebp - 0x214], 0
call fcn.100ddff0
test eax, eax
je 0x10083a84
push 1
call fcn.100db7b0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10002a60
lea esi, [eax + 0x10]
lea eax, [ebx + 8]
push eax
push ebx
push 0x400
push 0
push esi
call fcn.1008e2e0
add esp, 0x1c
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10083a84
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.100de050
test eax, eax
je 0x10083ae0
xor eax, eax
lea edi, [ebp - 0x20c]
push eax
mov ecx, 0x82
rep stosd dword es:[edi], eax
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [0x102023e4]
test eax, eax
je 0x10083ae0
push str.MicrosoftWindowsStart_MenuProgramsAccessories_
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebx + 8]
push eax
push ebx
push 0x400
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1008e2e0
add esp, 0x14
xor eax, eax
lea edi, [ebp - 0x20c]
push eax
mov ecx, 0x82
lea esi, [ebx + 8]
rep stosd dword es:[edi], eax
push 0xb
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [0x102023e4]
test eax, eax
je 0x10083b20
push esi
push ebx
push 0x400
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.1008e2e0
add esp, 0x14
xor eax, eax
lea edi, [ebp - 0x20c]
push eax
mov ecx, 0x82
rep stosd dword es:[edi], eax
push 0x16
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [0x102023e4]
pop edi
test eax, eax
je 0x10083b5e
push esi
push ebx
push 0x400
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.1008e2e0
add esp, 0x14
push dword [ebp - 0x214]
mov ecx, 0x1025b450
call fcn.10008cd0
cmp dword [ebx + 4], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x100999b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x11
lea esi, [ebp + 8]
lea edi, [ebp - 0x8c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x11
lea esi, [ebp + 0x4c]
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x90]
mov edx, dword [ebp - 8]
mov dword [esi + 0x40], edx
test edx, edx
jle 0x10099a13
jmp 0x10099a00
mov cl, byte [ebp + eax - 0x48]
xor cl, byte [ebp + eax - 0x8c]
mov byte [esi + eax], cl
inc eax
cmp eax, edx
jl 0x10099a00
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x1009b970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x60
push 0
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x408], 0
call ebx
mov edi, eax
test edi, edi
jne 0x1009b9e0
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x1009b9e0
call fcn.1009ade0
mov esi, eax
jmp 0x1009baca
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1009ba03
call fcn.1009ade0
jmp 0x1009babd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x1009ba1b
call fcn.1009ade0
jmp 0x1009babd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1009ba36
mov esi, 0x8007000e
jmp 0x1009babf
mov ecx, 2
mul ecx
test edx, edx
ja 0x1009ba48
jb 0x1009ba4e
cmp eax, 0xffffffff
jbe 0x1009ba4e
mov eax, dword [ebp - 0x40c]
cmp eax, 0x400
jbe 0x1009ba71
push eax
lea ecx, [ebp - 0x408]
call fcn.10023c30
cmp dword [ebp - 0x408], 0
jne 0x1009ba7d
mov esi, 0x8007000e
jmp 0x1009babf
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], eax
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1009ba9d
call fcn.1009ade0
jmp 0x1009babd
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.1009b7d0
mov esi, eax
test edi, edi
je 0x1009baca
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x1009bae3
lea ecx, [ebp - 0x408]
call fcn.10024940
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100bf6a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x10257ddc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 8]
push 0x10202940
mov dword [ebp - 8], eax
call fcn.10023e80
test al, al
jne 0x100bf6e3
push 0
push 0x10202940
lea ecx, [ebp - 8]
call fcn.10003740
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x100bf6f2
push 0x10257dd0
jmp 0x100bf6fc
cmp eax, 2
jne 0x100bf704
push 0x10257dd4
lea ecx, [ebp - 8]
call fcn.10002790
push esi
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x100bf779
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push esi
push dword [0x10257dcc]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x100bf74d
add dword [ebp - 4], ecx
jmp 0x100bf75d
mov eax, dword [ebp - 4]
test eax, eax
jle 0x100bf779
test ecx, ecx
jns 0x100bf779
add eax, ecx
mov dword [ebp - 4], eax
js 0x100bf779
push 4
lea eax, [ebp - 4]
push eax
push 4
push esi
push dword [0x10257dcc]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100bf791
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x10257ddc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100d9800
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
push edi
mov edi, dword [ebp + 8]
push SysReAllocString
push eax
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x100d9862
push esi
push SysReAllocString
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x100d985b
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x100d9870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x100d9905
cmp word [esi], 0
je 0x100d9905
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100d9890
sub eax, edx
xor ecx, ecx
sar eax, 1
mov edx, 2
lea ebx, [eax + 1]
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101f9fe1
mov edi, eax
add esp, 4
test edi, edi
je 0x100d9905
push esi
push ebx
push edi
call fcn.101ef650
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x100d98ee
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100d98ee
push edi
call fcn.100d9870
add esp, 4
push edi
call fcn.101f9fe7
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret