joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ce00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x429c28]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41ce24
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x41ce74
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x42c38c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x41cebc
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x41cebc
cmp dword [ebp - 8], 0x100000
jge 0x41ce90
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x42c38c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x41cee0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x429c28]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x41cf40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x429c28]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x41cf7e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x41cf7e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x41cf80
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x41d010
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x429c28]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x41d120
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x429c28]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x41d80e
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x42c17c], 0
push ebx
push esi
mov esi, 0x42c184
jne 0x41d83a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x42c19c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x42c17c], 1
push dword [0x42c19c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x41d8d7
push 0x14
push 8
push dword [0x42bc14]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x41d901
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x42c180]
test eax, eax
je 0x41d87c
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x42c180], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41d906
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x42c19c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x42bc14]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41d901
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x41dd49
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x42bc14]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x42c274]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x42c278], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0042097c
mov dword [esi + 0x58], 0x41e95c
mov eax, esi
mov dword [esi + 0x5c], 0x41e9a8
mov dword [esi + 0x10], fcn.0041e4fd
mov dword [esi + 0x30], 0x41e3ef
mov dword [esi + 0x64], 0x41ea32
mov dword [esi + 0x60], 0x41e9ea
mov dword [esi + 0x34], 0x41e09f
mov dword [esi + 0x24], 0x41e076
mov dword [esi + 0x28], 0x41e04b
mov dword [esi + 0x2c], 0x41df9d
mov dword [esi + 0x44], 0x41e762
pop esi
ret 4
Function at 0x423c46
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x423cfc
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x423cdc
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x423cb7
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x423cf1
add edi, dword [esp + 0x14]
jmp 0x423cf5
add edi, dword [esp + 0x24]
test edx, edx
jne 0x423c95
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x424007
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x4240e1
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x4240b7
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x42407f
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x4240ce
add edi, ecx
jmp 0x4240d2
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x424055
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x424701
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x4247b6
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x424797
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x424772
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x4247ac
add edx, dword [esp + 0x14]
jmp 0x4247b0
add edx, dword [esp + 0x24]
test esi, esi
jne 0x424750
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x1000105f
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push 0
xor eax, eax
call dword [0x1236e72d]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100010ab
push 0
push 0x40100dc
push 6
call fcn.100042db
add esp, 0xc
mov dword [ebp - 4], 0
push 0
mov ebx, 0x104
call fcn.100049a0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x100010f3
push 0x4b
push 0x40100dc
push 6
call fcn.100042db
add esp, 0xc
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10001103
push ebx
call fcn.100042e7
add esp, 4
call fcn.100012ae
mov eax, 0x10013245
test eax, eax
je 0x10001124
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.100042d5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x1236e719]
test ebx, ebx
je 0x10001138
push ebx
call fcn.100042e7
add esp, 4
pop eax
mov dword [0x1236e719], eax
mov eax, 0x116b3f4d
test eax, eax
je 0x1000115a
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.100042d5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x1236e71d]
test ebx, ebx
je 0x1000116e
push ebx
call fcn.100042e7
add esp, 4
pop eax
mov dword [0x1236e71d], eax
call fcn.10001394
and eax, 1
xor eax, 1
test eax, eax
je 0x10001267
call fcn.10001703
and eax, 1
xor eax, 1
test eax, eax
je 0x10001267
call fcn.10001d8e
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100011b6
push ebx
call fcn.100042e7
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x1236e721
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10001239
push 8
call fcn.100042d5
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, eax
mov esi, 0x12321d59
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, 0x12321d61
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x1236e721
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10001226
push ebx
call fcn.100042e7
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.100042e7
add esp, 4
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], esp
xor eax, eax
call dword [0x1236e731]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10001262
push 0x228
push 0x40100dc
push 6
call fcn.100042db
add esp, 0xc
call fcn.10002ac0
call fcn.10002afb
mov dword [ebp - 0x10], esp
xor eax, eax
call dword [0x1236e731]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10001295
push 0x278
push 0x40100dc
push 6
call fcn.100042db
add esp, 0xc
jmp 0x1000129a
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100012aa
push ebx
call fcn.100042e7
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x10002b0a
Capabilities:
Check for trap flag exception

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
pushfd
or dword [esp], 0x100
popfd
clc
call fcn.10002b2f

Function at 0x10006660
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1000667e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10006673
pop esi
ret
Function at 0x85f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x85f1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x85f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85f06a
add dl, dl
jne 0x85f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85f0dc
xor eax, eax
add dl, dl
jne 0x85f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85f17d
add dl, dl
jne 0x85f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x85f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x85f075
mov eax, 1
add dl, dl
jne 0x85f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85f0e1
sub eax, ebx
mov ebx, 1
jne 0x85f128
mov ecx, 1
add dl, dl
jne 0x85f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x85f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85f136
cmp eax, 0x7d00
jae 0x85f16d
cmp eax, 0x500
jb 0x85f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85f075
cmp eax, 0x7f
ja 0x85f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x85f19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x85f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10002573
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, 0x1001104c
call fcn.1000a63c
sub esp, 0x40
mov eax, dword [0x100162d0]
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x48]
push eax
mov esi, ecx
call fcn.1000241f
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.100024c9
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x100025b3
lea eax, [ebp - 0x44]
push edi
mov edi, 0x2001f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x4c]
call fcn.100012b8
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jne 0x100025fa
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x100025de
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x100025f4
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call esi
lea ecx, [ebp - 0x4c]
call fcn.100012a1
push edi
push str.CLSID
push SysReAllocString
lea ecx, [ebp - 0x4c]
call fcn.100012b8
test eax, eax
pop edi
jne 0x1000262c
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x10002626
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call esi
lea ecx, [ebp - 0x4c]
call fcn.100012a1
lea ecx, [ebp - 0x4c]
call fcn.100012a1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001db0
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.10001db0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.1000987e
leave
ret
Function at 0x10002669
Capabilities:
Get common file path
Get disk information
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
mov dword [ebp - 4], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
mov eax, str.asdf
push eax
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
push esi
push 0x10012304
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.100022cb
push esi
lea ecx, [ebp - 0x74]
mov ebx, eax
mov dword [ebp - 0x5c], 0xf
call fcn.100015ab
lea eax, [ebp - 0x58]
push eax
mov ecx, edi
call fcn.1000241f
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.100024c9
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.100023cd
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 0x10
jae 0x100026fc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x78]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
push 0x100123a6
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.10001db0
push esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.10001db0
push esi
push edi
lea ecx, [ebp - 0x58]
call fcn.10001db0
push esi
push edi
lea ecx, [ebp - 0x74]
call fcn.10001db0
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.1000987e
leave
ret 4

Function at 0x1000284a
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10002864
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x1000288d
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10002898
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x100028f6
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x2f8]
sub esp, 0x378
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
mov dword [ebp + 0x2f4], eax
mov esi, ecx
call dword [0x10016050]
mov ebx, dword [0x100179e4]
mov dword [ebp - 0x80], eax
mov edi, 0x104
push edi
lea eax, [ebp + 0xe8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002945
call fcn.10001269
jmp 0x10002a85
cmp eax, edi
jne 0x10002953
mov eax, 0x8007007a
jmp 0x10002a85
test ebx, ebx
je 0x1000296b
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp ebx, eax
je 0x1000296b
lea ecx, [ebp + 0xe8]
jmp 0x100029a9
lea eax, [ebp + 0xe8]
push eax
lea eax, [ebp + 0x1ed]
push eax
mov byte [ebp + 0x1ec], 0x22
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [ebp + eax + 0x1ec], 0x22
mov byte [ebp + eax + 0x1ed], 0
lea ecx, [ebp + 0x1ec]
mov eax, dword [esi]
push ecx
push str.Module
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x10002a85
mov eax, dword [esi]
lea ecx, [ebp + 0xe8]
push ecx
push str.Module_Raw
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x10002a85
lea eax, [ebp - 0x7c]
push eax
push 0x10016e90
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x10002a85
mov ebx, dword [ebp - 0x7c]
test ebx, ebx
jne 0x100029f9
xor eax, eax
jmp 0x10002a1e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.10009810
mov eax, esp
push dword [ebp - 0x80]
push edi
push ebx
push eax
call fcn.1000119a
mov ecx, dword [esi]
push eax
push str.MODULEGUID
push esi
call dword [ecx + 0x14]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jge 0x10002a3d
mov eax, edi
jmp 0x10002a85
push 0x2000
push 0x160
lea eax, [ebp - 0x78]
push eax
push 0
lea eax, [ebp + 0xe8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
mov eax, dword [esi]
jne 0x10002a67
push str.InprocServer32
jmp 0x10002a6c
push str.LocalServer32
push str.MODULETYPE
push esi
call dword [eax + 0x14]
test eax, eax
jl 0x10002a85
mov ecx, dword [0x10016ea0]
mov eax, dword [ecx]
push esi
call dword [eax + 0x14]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x2f4]
call fcn.1000987e
pop edi
pop esi
pop ebx
add ebp, 0x2f8
leave
ret
Function at 0x10002cce
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x100162d0]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.100012b8
cmp eax, esi
jne 0x10002d56
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10002d1f
lea eax, [ebp - 0x70]
push eax
call fcn.10002cce
cmp eax, esi
jne 0x10002d55
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x10002d12
call fcn.100012a1
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.100012a1
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.1000987e
add ebp, 0x94
leave
ret 4

Function at 0x100050d3
Capabilities:
Copy file

Disassembly:
mov eax, 0x100111f4
call fcn.1000a63c
sub esp, 0x3c
mov eax, dword [0x100162d0]
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 0x10], eax
mov esi, ecx
call fcn.1000620d
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x48]
call fcn.1000238a
add esi, 0xa8
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.1000238a
cmp dword [ebp - 0x30], 0x10
mov ecx, dword [ebp - 0x44]
jae 0x1000511e
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x1000512a
lea eax, [ebp - 0x28]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001db0
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.10001db0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.1000987e
leave
ret