joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10058a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1e6e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x100ef034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
push 0
push 0
push 0
push 0x2b
push 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call fcn.1003aaa0
test eax, eax
je 0x10058bc5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 0
call fcn.1003f670
test al, al
jne 0x10058b0e
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.1003f950
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x10058b44
call fcn.1003aaa0
test eax, eax
je 0x10058bc5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 1
jmp 0x10058b93
call fcn.1003aaa0
test eax, eax
je 0x10058bc5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 5
mov ecx, edi
push esi
call fcn.1003f670
test al, al
jne 0x10058b88
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10058b70
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.1003f950
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10058bb2
mov ecx, dword [esi]
push esi
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
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100374f0
int3
Function at 0x10076312
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.100871be
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x10076351
sub eax, 1
je 0x1007634c
sub eax, 1
je 0x10076348
xor eax, eax
leave
ret
push 3
jmp 0x10076353
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x1008cb33
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100bdfa8
push 0x100bdfa0
push str.FlsAlloc
push 0x1e
call fcn.1008c9a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008cb67
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b9334]
call esi
jmp 0x1008cb6d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1008cbb1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100bdfb8
push 0x100bdfb0
push str.FlsGetValue
push 0x20
call fcn.1008c9a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008cbe8
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b9334]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10091db0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10091e4d
push ebx
push esi
call fcn.10091d79
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100909fb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10091dfa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10091e4c
push edi
push eax
call fcn.1008ae51
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10091e1a
call fcn.10088f38
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10091e4b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100909fb
add esp, 0x20
test eax, eax
jne 0x10091e39
push edi
call fcn.10088f38
jmp 0x10091e41
push ebx
call fcn.10088f38
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10091e50
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10091e61
pop esi
ret
push ebx
push edi
push esi
call fcn.10091d79
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1008ae51
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10091e89
push ebx
push esi
push edi
call fcn.10078580
add esp, 0xc
push 0
call fcn.10088f38
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1009224d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10091e9e

Function at 0x100967de
Capabilities:
Read file on windows

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

Function at 0x100967e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009660f
Function at 0x100997d8
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 + 0x100fd598]
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 0x10099818
cmp byte [ebx], 0xa
jne 0x10099818
or byte [eax + edi + 0x28], 4
jmp 0x1009981d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1009991b
mov al, byte [edx]
cmp al, 0x1a
je 0x100998fd
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1009984c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10099871
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1009987b
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 0x1009982e
jmp 0x1009991b
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 0x100998f8
cmp dword [ebp - 0xc], 0
je 0x100998f8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100fd598]
test byte [eax + edi + 0x28], 0x48
je 0x100998d2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100998bd
mov byte [esi], dl
jmp 0x100998ce
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100fd598]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1009991b
cmp byte [ebp - 1], 0xa
jne 0x100998e1
cmp esi, ebx
jne 0x100998e1
mov byte [esi], 0xa
jmp 0x1009991a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10099774
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1009991b
mov byte [esi], 0xd
jmp 0x1009991a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100fd598]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10099917
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1009991b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10099924
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 + 0x100fd598]
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 0x10099967
cmp word [esi], dx
jne 0x10099967
or byte [edi + eax + 0x28], 4
jmp 0x1009996c
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 0x10099abf
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 0x10099a9f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100999ae
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100999e4
cmp eax, edx
jae 0x100999f0
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 0x10099986
jmp 0x10099abf
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 0x10099a9b
cmp dword [ebp - 0x14], 0
je 0x10099a9b
mov eax, dword [ebx*4 + 0x100fd598]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10099a73
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10099a3c
mov word [esi], cx
jmp 0x10099a6f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100fd598]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100fd598]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100fd598]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10099abf
pop ebx
cmp word [ebp - 4], bx
jne 0x10099a84
cmp esi, dword [ebp + 0xc]
jne 0x10099a84
mov word [esi], bx
jmp 0x10099abc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10099774
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10099abf
push 0xd
jmp 0x10099ab8
mov ecx, dword [ebx*4 + 0x100fd598]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10099ab6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10099abf
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 0x1009a341
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009a2bd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1009a4b9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1009a4b9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1009a468
jg 0x1009a39a
test eax, eax
je 0x1009a45e
push 1
push 0x1000
call fcn.1008ae9f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1009a3c0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1009a455
push 0x8000
push ebx
call fcn.1009a1ee
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1009a3ec
jg 0x1009a3e7
cmp ecx, 0x1000
jb 0x1009a3ec
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100983be
add esp, 0x10
cmp eax, 0xffffffff
je 0x1009a431
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1009a3e7
jl 0x1009a418
test ecx, ecx
jne 0x1009a3d9
push dword [ebp - 0xc]
push ebx
call fcn.1009a1ee
push esi
call fcn.10088f38
add esp, 0xc
xor edi, edi
jmp 0x1009a4ca
cmp byte [edi + 0x24], 0
je 0x1009a448
cmp dword [edi + 0x20], 5
jne 0x1009a448
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1009a453
mov edi, dword [edi + 0x18]
jmp 0x1009a455
xor edi, edi
push esi
call fcn.10088f38
pop ecx
jmp 0x1009a4ca
test ecx, ecx
jg 0x1009a42a
jl 0x1009a468
test eax, eax
jae 0x1009a42a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10099774
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1009a48b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1009a42a
jmp 0x1009a4c2
push ebx
call fcn.10096416
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1009a42a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1009a4ca
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1009a4c7
mov edi, dword [edi + 0x18]
jmp 0x1009a4ca
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10099774
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1009b080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1009b0ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009b0ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401360
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x20006
push 0
push ecx
push edx
add esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40139f
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
push esi
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4013d3
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor al, al
pop esi
pop ecx
ret
pop edi
mov al, 1
pop esi
pop ecx
ret

Function at 0x4013e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401418
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
add esp, 8
ret
mov edx, dword [esp + 0x18]
push esi
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401459
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
add esp, 8
ret
mov al, 1
pop esi
add esp, 8
ret
Function at 0x401460
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x218
mov eax, dword [0x48e780]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x22c]
push ebx
mov ebx, dword [esp + 0x228]
push ebp
mov ebp, dword [esp + 0x230]
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x230]
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x10]
push ecx
push 0x47e4ac
push 0x17
push 0
push 0x47e4bc
mov dword [esp + 0x24], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40156e
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x50]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push ebx
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push ebp
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push edi
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x4759b0
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40156e
mov ecx, dword [esp + 0x18]
push 0x104
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0045b8c5
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
add esp, 0xc
push 1
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x401570
xor eax, eax
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00459157
add esp, 0x218
ret

Function at 0x401590
Capabilities:
Print debug messages

Disassembly:
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edx
call esi
push 0x482504
call esi
pop esi
pop ecx
ret

Function at 0x4015e0
Capabilities:
Delete file
Print debug messages
Set file attributes

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401633
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edx
call esi
push 0x482504
call esi
pop esi
pop ecx
ret
Function at 0x4016b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x48e780]
xor eax, esp
mov dword [esp + 0x120], eax
push 0x118
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0x11c
call fcn.004595b0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x401720
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x4017a7
xor edx, edx
cmp eax, 1
setne dl
inc edx
mov eax, edx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00459157
add esp, 0x124
ret
cmp eax, 6
jne 0x4017a0
mov eax, dword [esp + 0xc]
sub eax, 0
je 0x401786
sub eax, 1
je 0x40176c
sub eax, 1
je 0x401752
mov eax, 6
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00459157
add esp, 0x124
ret
mov eax, 5
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00459157
add esp, 0x124
ret
mov eax, 4
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00459157
add esp, 0x124
ret
mov eax, 3
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00459157
add esp, 0x124
ret
mov eax, 7
ja 0x4017aa
mov eax, dword [esp]
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00459157
add esp, 0x124
ret
Function at 0x4017c0
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x66c
mov eax, dword [0x48e780]
xor eax, esp
mov dword [esp + 0x668], eax
push ebp
push esi
mov esi, dword [esp + 0x678]
push edi
test esi, esi
je 0x4019bf
xor eax, eax
cmp ax, word [esi]
je 0x4019bf
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4019bf
push 0x24c
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x1c], 0
call fcn.004595b0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x472]
push eax
mov word [esp + 0x474], dx
call fcn.004595b0
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x26a]
push edx
mov word [esp + 0x26c], cx
call fcn.004595b0
add esp, 0xc
push esi
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
je 0x401894
push esi
push 0x482574
lea ecx, [esp + 0x268]
push 0x103
push ecx
call fcn.0045c32f
jmp 0x4018ac
push 0x103
push esi
lea edx, [esp + 0x268]
push 0x104
push edx
call fcn.00459d4e
add esp, 0x10
lea eax, [esp + 0x260]
push eax
push str._s.
lea ecx, [esp + 0x470]
push 0x103
push ecx
call fcn.0045c32f
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4019bf
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x401900
push 0x482588
lea ecx, [esp + 0x40]
push ecx
call esi
test eax, eax
je 0x40197d
push 0x48258c
lea edx, [esp + 0x40]
push edx
call esi
test eax, eax
je 0x40197d
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x264]
push ecx
push str._s_s
lea edx, [esp + 0x474]
push 0x103
push edx
call fcn.0045c32f
add esp, 0x14
test byte [esp + 0x10], 0x10
je 0x401960
lea eax, [esp + 0x468]
push eax
call fcn.004017c0
add esp, 4
jmp 0x40197d
lea ecx, [esp + 0x468]
push ecx
push str.deleting__s
call fcn.004015d0
mov edx, ecx
push edx
call fcn.004015e0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push edi
call ebp
test eax, eax
jne 0x401900
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.00459157
add esp, 0x66c
ret
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00459157
add esp, 0x66c
ret
Function at 0x4020f0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0xffffffffffffffff
push 0x471288
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x48e780]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [0x493f7c], eax
test eax, eax
jl 0x402209
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [0x493f7c], eax
test eax, eax
jl 0x402203
lea eax, [esp + 0x28]
push eax
push 0x47be94
push 1
push 0
push 0x47bf64
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [0x493f7c], eax
test eax, eax
jl 0x402203
push str.ROOTCIMV2
lea ebx, [esp + 0x14]
call fcn.00401120
mov dword [esp + 0x1c], 0
mov eax, dword [eax]
test eax, eax
je 0x402196
mov ecx, dword [eax]
jmp 0x402198
xor ecx, ecx
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
lea esi, [esp + 0x24]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x10]
mov dword [0x493f7c], eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004011b0
cmp dword [0x493f7c], 0
jl 0x402203
mov ecx, dword [esp + 0x24]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [0x493f7c], eax
test eax, eax
jge 0x40221f
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [0x493fcc], ecx
mov dword [0x493fc8], edx
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret