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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x408438
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x408430]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4033f5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4033ee
test esi, esi
je 0x4033ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4033d0
mov dword [esp], 0x408438
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403650
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x403688
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40367e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40368a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x403670
xor eax, eax
pop ebx
pop esi
ret
Function at 0x402044
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42f040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x486948]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4020b4
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.00402bc8
lea ecx, [esp + 0x1c]
call fcn.00401e74
cmp eax, dword [esp + 0x10]
je 0x4020cb
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403484
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x402084
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040833e
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00403e0f
push eax
call fcn.00404088
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403484
jmp 0x4020b6
Function at 0x419180
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418e22

Function at 0x41918b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418fb1

Function at 0x419585
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409270
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004164e5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4195c7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419723
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004235a0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x486540]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a755
mov ecx, dword [esi*4 + 0x486540]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41971c
cmp eax, dword [edi + ecx + 0x24]
jne 0x41971c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41971c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a755
add esp, 0x14
test edx, edx
jl 0x41971c
jg 0x419692
test eax, eax
jb 0x41971c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41971c
jl 0x4196ac
cmp dword [ebp - 0x1008], eax
ja 0x41971c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4196ca
test ebx, ebx
je 0x419703
cmp ecx, edi
jae 0x419703
mov al, byte [ecx]
cmp al, 0xd
jne 0x4196e4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4196f0
cmp byte [ecx + 1], 0xa
jne 0x4196f0
inc ecx
jmp 0x4196f0
movzx eax, al
movsx eax, byte [eax + 0x42f300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4196ca
cmp edx, ebx
jne 0x4196ca
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419721
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040833e
leave
ret
Function at 0x419bf3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x486540]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419c33
cmp byte [ebx], 0xa
jne 0x419c33
or byte [eax + edi + 0x28], 4
jmp 0x419c38
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419d36
mov al, byte [edx]
cmp al, 0x1a
je 0x419d18
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x419c67
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419c8c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x419c96
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x419c49
jmp 0x419d36
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419d13
cmp dword [ebp - 0xc], 0
je 0x419d13
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486540]
test byte [eax + edi + 0x28], 0x48
je 0x419ced
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419cd8
mov byte [esi], dl
jmp 0x419ce9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486540]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419d36
cmp byte [ebp - 1], 0xa
jne 0x419cfc
cmp esi, ebx
jne 0x419cfc
mov byte [esi], 0xa
jmp 0x419d35
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a773
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419d36
mov byte [esi], 0xd
jmp 0x419d35
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486540]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419d32
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419d36
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419d3f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x486540]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419d82
cmp word [esi], dx
jne 0x419d82
or byte [edi + eax + 0x28], 4
jmp 0x419d87
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419eda
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419eba
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419dc9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419dff
cmp eax, edx
jae 0x419e0b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419da1
jmp 0x419eda
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419eb6
cmp dword [ebp - 0x14], 0
je 0x419eb6
mov eax, dword [ebx*4 + 0x486540]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419e8e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x419e57
mov word [esi], cx
jmp 0x419e8a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486540]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486540]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486540]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419eda
pop ebx
cmp word [ebp - 4], bx
jne 0x419e9f
cmp esi, dword [ebp + 0xc]
jne 0x419e9f
mov word [esi], bx
jmp 0x419ed7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a773
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419eda
push 0xd
jmp 0x419ed3
mov ecx, dword [ebx*4 + 0x486540]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419ed1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419eda
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5cf389
Capabilities:
Check for trap flag exception

Disassembly:
mov ebp, esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x4a015d]
push edi
push dword fs:[0]
mov dword fs:[0], esp

Function at 0x5cf616
Capabilities:
Check for trap flag exception

Disassembly:
mov ebp, esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x4a01aa]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x4a0155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add ecx, dword [ebx + 0x33020875]
fild dword [esi]
mov edx, 0x8b030001
jge 0x5cf666
push es
lea edi, [edi + 0x4a0155]
push es
mov dword [edi], 0
add byte [eax], al
pop dword fs:[0]
add esp, 4
mov ecx, dword [ebp + 4]
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x4a01aa]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x4a0155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add cl, byte [edx + 0x7d8b0306]
or al, 6
lea edi, [edi + 0x4a0155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
push ebx
push ecx
mov cl, 0
xor ebx, ebx
mov bx, dx
and bx, 1
shl bl, cl
xor al, bl
shl dx, 1
mov bx, dx
and bx, 0x8000
mov ch, 0x80
cmp bh, ch
jne 0x5cf6ed
xor dx, 0x8003
inc cl
mov ch, 8
cmp cl, ch
jne 0x5cf6ca
pop ecx
pop ebx
mov byte [esi], al
inc esi
inc ebx
cmp ecx, ebx
jne 0x5cf675
mov esp, ebp
ret 8
Function at 0x1005487
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3ac
mov eax, dword [0x100c058]
push ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3a0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0x410]
push 0x12c
mov dword [ebp - 0x3a8], ecx
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x39c], eax
xor eax, eax
push ecx
push eax
mov ebx, OleLoadFromStream
push ebx
mov dword [ebp - 0x38c], edi
mov dword [ebp - 0x398], eax
mov dword [ebp - 0x3a4], eax
mov dword [ebp - 0x390], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x10056a7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
inc dword [ebp - 0x390]
cmp byte [ebp - 0x130], 0x2e
mov dword [ebp - 0x394], 0x12c
jne 0x100567d
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x100567d
cmp dword [ebp - 0x3a0], eax
je 0x1005563
lea eax, [ebp - 0x388]
push eax
push dword [ebp - 0x3a0]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100567d
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x388]
push eax
push ebx
mov dword [ebp - 0x394], 0x12c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x100567d
inc dword [ebp - 0x398]
cmp dword [ebp - 0x39c], eax
je 0x10055c2
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x39c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10055c2
mov eax, dword [ebp - 0x398]
mov dword [ebp - 0x3a4], eax
push 0x1001490
call esi
push 0x100148c
mov ebx, eax
call esi
push 0x1001488
add ebx, eax
call esi
add ebx, eax
lea eax, [ebp - 0x25c]
push eax
call esi
add ebx, eax
lea eax, [ebp - 0x130]
push eax
call esi
lea ecx, [ebp - 0x130]
add eax, edi
push ecx
mov dword [ebp - 0x3ac], eax
call esi
mov ecx, dword [ebp - 0x3ac]
add ecx, ebx
lea eax, [eax + ecx + 1]
cmp eax, dword [ebp - 0x3a8]
jae 0x10056a0
mov ebx, dword [ebp - 0x38c]
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1001488
push ebx
call edi
lea eax, [ebp - 0x130]
push eax
push ebx
call edi
push 0x100148c
push ebx
call edi
push ebx
call esi
lea ebx, [ebx + eax + 1]
push 0x1001490
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x130]
push eax
push ebx
call edi
push ebx
call esi
lea edi, [ebx + eax + 1]
mov dword [ebp - 0x38c], edi
mov ebx, OleLoadFromStream
push 0x12c
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x390]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x10054ff
jmp 0x10056a6
mov edi, dword [ebp - 0x38c]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x3a4]
mov byte [edi], 0
pop edi
pop ebx
call fcn.01002f99
leave
ret 0xc
Function at 0x1005bc5
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x100c058]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], edi
je 0x1005c8d
cmp word [esi + 2], di
je 0x1005c8d
mov eax, dword [esi + 0x28]
cmp eax, edi
je 0x1005c03
push eax
call sub.SHELL32.dll_SHChangeNotifyDeregister
mov dword [esi + 0x28], edi
xor eax, eax
mov ax, word [esi + 0x24]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetAtomNameA]
cmp ax, di
mov edi, dword [sym.imp.KERNEL32.dll_DeleteAtom]
je 0x1005c58
push 0x118
lea ecx, [ebp - 0x220]
push ecx
push eax
call ebx
test eax, eax
je 0x1005c41
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov dword [ebp - 0x224], eax
xor eax, eax
mov ax, word [esi + 0x24]
push eax
call edi
and word [esi + 0x24], 0
cmp dword [ebp - 0x224], 0
jne 0x1005c7e
push 0x104
lea eax, [ebp - 0x108]
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
call ebx
test eax, eax
je 0x1005c7e
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov ax, word [esi + 2]
push eax
call edi
and word [esi + 2], 0
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01002f99
leave
ret

Function at 0x1005c9d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100c058]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x1005d6d
xor eax, eax
mov ax, word [esi + 2]
test ax, ax
je 0x1005d6d
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
test eax, eax
je 0x1005d6d
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1005cf7
push eax
call sub.SHELL32.dll_SHChangeNotifyDeregister
and dword [esi + 0x28], 0
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathA]
test eax, eax
mov dword [ebp - 0x110], eax
je 0x1005d44
lea eax, [ebp - 0x110]
push eax
push 1
push 0x467
push 0x2000
push 2
push dword [0x100d1a4]
call sub.SHELL32.dll_SHChangeNotifyRegister
push dword [ebp - 0x110]
mov dword [esi + 0x28], eax
call dword [sym.imp.SHELL32.dll_ILFree]
cmp dword [esi + 0x28], 0
jne 0x1005d6d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1005d6d
or eax, 1
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.01002f99
leave
ret 4
Function at 0x1005d7f
Capabilities:
Create process on windows
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x140
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x1005e1f
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1005def
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_AddAtomA]
call edi
push dword [ebp + 0xc]
mov word [esi + 2], ax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call edi
mov word [esi + 0x24], ax
cmp dword [ebp - 8], ebx
je 0x1005e53
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp - 8]
push 0x1005adf
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x1005e16
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1005e44
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
je 0x1005e44
xor eax, eax
cmp dword [ebp - 4], 0x483
sete al
add eax, 0x21a
push eax
call fcn.01001d01
xor eax, eax
cmp dword [ebp - 4], ebx
pop edi
pop esi
sete al
pop ebx
leave
ret 0xc
push esi
call fcn.01005c9d
jmp 0x1005e28
Function at 0x10062d1
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x100c058]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ecx, ecx
xor edi, edi
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
inc edi
or ebx, 0xffffffff
cmp eax, ecx
mov dword [ebp - 0x194], edi
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x190], ecx
mov dword [ebp - 0x198], ecx
je 0x10063ae
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x198], eax
je 0x100639f
push dword [esi + 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, dword [esi + 4]
jne 0x100638e
and dword [ebp - 0x194], 0
xor edi, edi
cmp ebx, edi
jl 0x1006366
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [ebp - 0x194], edi
jne 0x1006366
cmp dword [esi + 0x10], edi
jne 0x1006366
push 0x100cfc0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x190], edi
je 0x100637a
push dword [ebp - 0x18c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x18c], edi
je 0x100638e
push dword [ebp - 0x18c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x198], edi
je 0x100639f
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01002f99
leave
ret 8
cmp dword [esi + 0x10], ecx
je 0x1006400
cmp dword [0x100c4ec], ecx
jne 0x1006400
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0x120
push dword [0x100ce50]
call dword [sym.imp.USER32.dll_LoadStringA]
push dword [0x100d1a4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push edi
push 0x100cdc0
lea eax, [ebp - 0x84]
push eax
push dword [0x100c50c]
call fcn.01001ab7
dec eax
dec eax
je 0x100639f
push 0x104
lea eax, [ebp - 0x188]
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
test eax, eax
je 0x100639f
push 0x20
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1006341
push ebx
call fcn.01005b20
mov edi, eax
test edi, edi
je 0x1006341
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 0x18c], eax
jne 0x100645e
shr edi, 1
jne 0x1006447
test edi, edi
je 0x1006341
push dword [ebp - 0x18c]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebp - 0x190], eax
je 0x1006341
push edi
push dword [ebp - 0x190]
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
mov edi, eax
test edi, edi
je 0x100633a
push edi
push dword [ebp - 0x190]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll__lwrite]
jmp 0x1006480
Function at 0x1008ce6
Capabilities:
Create process on windows
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x100c058]
and dword [ebp - 0x454], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0xe
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x450]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push edx
push 1
push 0
mov dword [ebp - 0x418], edx
call edi
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.010088e9
test ebx, ebx
je 0x1008d8c
cmp byte [ebx], 0
je 0x1008d8c
push 0x100155c
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01008ae2
push esi
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01008ae2
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHDOCVW.dll_Ordinal_229]
test eax, eax
je 0x1008e42
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x454]
push eax
mov dword [ebp - 0x454], 0x3c
mov dword [ebp - 0x450], 0x800140
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x438], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x1008e22
xor esi, esi
cmp dword [ebp - 0x41c], esi
je 0x1008e42
lea eax, [ebp - 0x418]
push eax
push esi
push dword [ebp - 0x41c]
push 0x1008970
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x1008e16
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1008e42
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1008e42
xor ecx, ecx
cmp eax, 0x483
sete cl
add ecx, 0x21a
push ecx
call fcn.01001d01
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01002f99
leave
ret 8

Function at 0x100a84d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001588
push OleLoadFromStream
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100a8a5
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1001454
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100a898
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100a8a7
xor eax, eax
pop esi
leave
ret 4