joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ce0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
or esi, 0xffffffff
xor edi, edi
test edx, edx
mov eax, 0x45771c
mov ebx, ecx
cmovne eax, edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
cmp eax, 3
jne 0x405e3c
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x405e80
test ebx, ebx
je 0x405d42
push 0x457630
mov edx, 0x7fff
mov ecx, ebx
call fcn.00402470
test eax, eax
js 0x405d42
movzx edi, word [0x457630]
jmp 0x405d5a
mov dword [0x457630], edi
test ebx, ebx
je 0x405d58
cmp word [ebx], di
je 0x405d58
mov edi, 0x7fff
jmp 0x405d5a
xor edi, edi
movzx esi, di
dec esi
lea esi, [ebx + esi*2]
test di, di
je 0x405d81
movzx eax, word [esi]
cmp eax, 0x5c
je 0x405d92
cmp eax, 0x2f
je 0x405d81
add edi, 0xffff
sub esi, 2
test di, di
jne 0x405d66
movzx eax, word [esi]
cmp eax, 0x5c
je 0x405d92
cmp eax, 0x2f
jne 0x405e7b
push 2
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x405dd2
movzx esi, di
add esi, esi
push esi
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x405e7d
push esi
push ebx
push edi
call fcn.0043c9e0
add esi, 0xfffffffe
mov dword [ebp - 4], edi
add esp, 0xc
add esi, edi
jmp 0x405dd4
xor edi, edi
movzx eax, word [esi]
mov dword [ebp - 8], eax
xor eax, eax
push eax
push dword [ebp - 4]
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405e13
push 0
push dword [ebp - 4]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x405e13
mov eax, dword [ebp - 8]
mov word [esi], ax
jmp 0x405e7d
mov eax, dword [ebp - 8]
mov word [esi], ax
mov eax, dword [ebp + 0x14]
push 0
push dword [eax]
mov eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0xc]
push 0
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
jmp 0x405e80
cmp eax, 5
jne 0x405e80
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x405e80
xor eax, 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x405e80
mov eax, dword [ebp + 0x14]
push 0
push dword [eax]
mov eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 8]
push 0
push 1
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
jmp 0x405e80
xor edi, edi
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
test edi, edi
je 0x405e9e
push edi
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405eb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov byte [ebp - 1], 0
push esi
mov esi, edx
test ebx, ebx
je 0x405f76
cmp word [ebx], 0
je 0x405f76
test si, si
jne 0x405efe
push 0x457630
mov edx, 0x7fff
call fcn.00402470
test eax, eax
jns 0x405f68
mov dword [0x457630], 0
cmp word [ebx], si
je 0x405f76
mov esi, 0x7fff
push edi
movzx edi, si
dec edi
lea edi, [ebx + edi*2]
test si, si
je 0x405f2b
nop dword [eax + eax]
movzx eax, word [edi]
cmp eax, 0x5c
je 0x405f38
cmp eax, 0x2f
je 0x405f2b
add esi, 0xffff
sub edi, 2
test si, si
jne 0x405f10
movzx eax, word [edi]
cmp eax, 0x5c
je 0x405f38
cmp eax, 0x2f
jne 0x405f5f
push 2
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x405f92
movzx edi, si
add edi, edi
push edi
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x405f7e
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
movzx esi, word [0x457630]
mov eax, esi
test ax, ax
jne 0x405efe
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
push esi
call fcn.0043c9e0
add edi, 0xfffffffe
add esp, 0xc
mov ebx, esi
add edi, esi
jmp 0x405f94
xor esi, esi
movzx eax, word [edi]
mov dword [ebp - 8], eax
xor eax, eax
push eax
push ebx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405fc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405fc7
push 0
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x405fcb
mov bl, 1
jmp 0x405fce
mov bl, byte [ebp - 1]
mov eax, dword [ebp - 8]
mov word [edi], ax
test esi, esi
je 0x405fe7
push esi
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4074b0
Capabilities:
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x250
lea eax, [ebp - 0x258]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x25c], edi
call fcn.0042a4e0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0xc
xor esi, esi
push edi
call ebx
test eax, eax
je 0x407509
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x40752a
xor eax, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40752a
push edi
call ebx
test eax, eax
jne 0x4074f3
push 0x10212
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x260], ebx
test ebx, ebx
jne 0x407564
mov dword [0x45771c], 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
push ecx
lea eax, [ebp - 0x25c]
mov ecx, edi
push eax
lea edx, [ebp - 0x260]
call fcn.00404830
add esp, 8
test al, al
je 0x40768f
movzx eax, word [0x457638]
mov edi, dword [ebp - 0x25c]
mov dword [ebp - 0x260], eax
mov eax, edi
sub eax, ebx
sar eax, 1
movzx eax, ax
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x40768f
mov eax, dword [ebp - 0x264]
movzx eax, ax
lea eax, [ebx + eax*2]
mov dword [ebp - 0x264], eax
nop word [eax + eax]
push 0x457630
mov edx, 0x104
lea ecx, [ebp - 0x22c]
call fcn.00402470
mov ecx, dword [0x457630]
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x260]
cmovs ecx, edx
inc eax
mov dword [ebp - 0x260], eax
movzx eax, ax
add eax, eax
mov dword [0x457630], ecx
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x264]
call fcn.0043c9e0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x407668
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x407668
xor eax, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x407668
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, 1
cmovne esi, eax
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4075e0
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
Function at 0x417b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0
push eax
mov eax, dword [ebx]
mov edi, edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
sub eax, dword [edx]
add eax, eax
push eax
push dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x417b8c
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx]
mov edx, dword [edi]
cmp esi, ecx
jbe 0x417bbb
lea eax, [esi*2 + 0x10016]
push eax
push edx
push 0
push dword [0x45764c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x417b83
lea ecx, [esi + 0x8000]
mov dword [edi], edx
mov dword [ebx], ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x41f780
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 5], 0
push edi
test esi, esi
je 0x41f92d
cmp word [esi], 0
mov edi, dword [ebp + 8]
jne 0x41f7bd
test edi, edi
je 0x41f92d
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push esi
call ebx
mov dword [ebp - 0x18], eax
test edi, edi
je 0x41f7d7
push edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
jmp 0x41f7db
push 0
call ebx
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x41f7fc
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x41f92d
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x14]
push eax
push 0x43e580
push 1
push 0
push 0x43e590
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41f90e
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x2c]
push eax
call ebx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
sub esp, 0x10
mov dword [ebp - 0x24], edi
mov esi, 8
mov eax, esp
mov word [ebp - 0x2c], si
movups xmm0, xmmword [ebp - 0x2c]
mov edx, dword [ecx]
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x24]
test eax, eax
js 0x41f900
lea eax, [ebp - 0x3c]
push eax
call ebx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0x3c], si
sub esp, 0x10
mov esi, dword [ebp - 0x18]
mov eax, esp
mov dword [ebp - 0x34], esi
movups xmm0, xmmword [ebp - 0x3c]
mov edx, dword [ecx]
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x24]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x1c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x4c]
push eax
call ebx
mov eax, 3
mov dword [ebp - 0x44], 0x614
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x5c]
push eax
call ebx
movups xmm0, xmmword [ebp - 0x4c]
mov ecx, dword [ebp - 0x10]
mov eax, 9
mov word [ebp - 0x5c], ax
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
mov eax, esp
mov edx, dword [ecx]
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x5c]
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x3c]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov byte [ebp - 5], 1
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x41f911
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x41f911
mov esi, dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push edi
call esi
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fcc0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x88]
mov ebx, edx
push 0
push eax
mov esi, ecx
call fcn.0042a4e0
xorps xmm0, xmm0
mov dword [ebp - 0x90], 0
add esp, 0xc
movq qword [ebp - 0xc], xmm0
mov byte [ebp - 0x89], 0
mov dword [0x457638], 0
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
test ebx, ebx
je 0x41fd20
mov esi, ebx
jmp 0x41fd3b
push 0
push 0x2000080
push 3
push 0
push 7
push 0x120089
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41fd53
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x90]
push 0
push eax
push 0x40
lea eax, [ebp - 0x88]
push eax
push esi
call edi
test eax, eax
je 0x41fe36
cmp dword [ebp - 0x90], 0x40
jb 0x41fe36
mov eax, 0x5a4d
cmp word [ebp - 0x88], ax
jne 0x41fe36
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x41fe36
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebp - 0x4c]
jne 0x41fe36
push 0
lea eax, [ebp - 0x90]
push eax
push 0x1a
lea eax, [ebp - 0x48]
push eax
push esi
call edi
test eax, eax
je 0x41fe41
cmp dword [ebp - 0x90], 0x1a
jb 0x41fe41
cmp dword [ebp - 0x48], 0x4550
jne 0x41fe41
movzx eax, word [ebp - 0x34]
push 1
push 0
sub eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41fe41
push 0
lea eax, [ebp - 0x90]
mov dword [0x457638], 1
push eax
push 0x28
lea eax, [ebp - 0x2c]
push eax
push esi
call edi
test eax, eax
je 0x41fe41
cmp dword [ebp - 0x90], 7
jbe 0x41fe41
cmp dword [ebp - 0x2c], 0x30585055
jne 0x41fe41
cmp dword [ebp - 0x28], 0
jne 0x41fe41
mov byte [ebp - 0x89], 1
jmp 0x41fe41
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x41fe4c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x89]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
Function at 0x4235b0
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x9a68
call fcn.0043c8d0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x21c
lea eax, [ebp - 0x220]
mov ebx, ecx
push 0
push eax
call fcn.0042a4e0
push 0x8014
lea eax, [ebp - 0x8234]
push 0
push eax
call fcn.0042a4e0
push 0x1820
lea eax, [ebp - 0x9a54]
mov dword [ebp - 0x9a60], 0xff
push 0
push eax
mov dword [ebp - 0x9a64], 0x3fff
call fcn.0042a4e0
xor ecx, ecx
mov dword [ebp - 0x9a68], 5
add esp, 0x24
mov dword [ebp - 0x9a5c], ecx
xor esi, esi
mov dword [ebp - 0x9a58], ecx
add ebx, 4
nop dword [eax]
mov eax, dword [ebx]
lea edi, [ebp - 0x9a4c]
mov dword [ebp - 0x9a4c], eax
test eax, eax
je 0x42375c
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x9a60]
mov dword [ebp - 0x9a60], 0xff
push ecx
lea ecx, [ebp - 0x220]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
je 0x423720
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x4236f3
nop
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x9a64]
mov dword [ebp - 0x9a64], 0x3fff
push eax
lea eax, [ebp - 0x8234]
push eax
push 0
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
jne 0x4236d5
lea eax, [ebp - 0x8234]
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x423690
mov ecx, dword [ebp - 0x9a5c]
test ecx, ecx
jne 0x4236ee
cmp esi, 0x103
cmovne ecx, esi
mov dword [ebp - 0x9a5c], ecx
sub edi, 0xc
jmp 0x423747
push eax
call dword [0x457718]
mov dword [0x45771c], eax
test eax, eax
je 0x423713
push eax
call dword [0x457640]
mov dword [0x45771c], eax
test eax, eax
jne 0x423753
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub edi, 0xc
jmp 0x423741
add edi, 0xc
lea eax, [ebp - 0x220]
push edi
push 0x1000b
push 4
push eax
push dword [edi - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x423756
mov ecx, dword [ebp - 0x9a5c]
mov eax, dword [edi]
test eax, eax
jne 0x423656
jmp 0x42375c
add edi, 0xc
mov ecx, dword [ebp - 0x9a5c]
sub edi, 0xc
lea eax, [ebp - 0x9a58]
cmp edi, eax
jbe 0x423790
nop dword [eax]
mov eax, dword [edi]
cmp eax, dword [ebx]
je 0x42378a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub edi, 0xc
lea eax, [ebp - 0x9a58]
cmp edi, eax
ja 0x423770
mov ecx, dword [ebp - 0x9a5c]
test ecx, ecx
jne 0x4237a3
cmp esi, 0x103
cmovne ecx, esi
mov dword [ebp - 0x9a5c], ecx
add ebx, 4
sub dword [ebp - 0x9a68], 1
jne 0x423640
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428cd6
mov esp, ebp
pop ebp
ret
Function at 0x42b83c
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x43e6b8
push str.FlsAlloc
push 0
call fcn.0042b7b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b86e
push dword [ebp + 8]
mov ecx, esi
call fcn.00429639
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x42b8b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x43e6dc
push str.FlsGetValue
push 2
call fcn.0042b7b5
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x42b8e1
mov ecx, esi
call fcn.00429639
call esi
jmp 0x42b8e7
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x42b8ea
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x43e6f0
push str.FlsSetValue
push 3
call fcn.0042b7b5
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x42b91e
mov ecx, esi
call fcn.00429639
call esi
jmp 0x42b924
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x4338a3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00433563
Function at 0x1000cc3e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1002d770
call fcn.10016ea3
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000ccbb
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1000ccbb
call fcn.10005a09
mov esi, eax
jmp 0x1000cd92
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1000ccde
call fcn.10005a09
jmp 0x1000cd85
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000ccd4
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000cd0e
mov esi, 0x8007000e
jmp 0x1000cd87
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10024887
jmp 0x1000cd34
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000cd07
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1000ccd4
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.10024887
mov esi, eax
test edi, edi
je 0x1000cd92
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000cdab
lea ecx, [ebp - 0x418]
call fcn.1000c3cf
mov eax, esi
call fcn.10016df0
ret 0x10
Function at 0x10012247
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x1002dc29
call fcn.10016e01
mov ebx, ecx
mov eax, dword [ebx]
xor edi, edi
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x100304d0]
mov ecx, ebx
call esi
push eax
lea ecx, [ebp - 0x10]
call fcn.10024887
and dword [ebp - 4], edi
lea esi, [ebx + 0x44]
cmp dword [esi], edi
je 0x100122f2
push str.Excel.Application
lea ecx, [ebp - 0x10]
call fcn.10024887
mov ecx, dword [esi]
test al, al
je 0x100122d4
push 0xb
pop eax
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x18], ax
sub esp, 0x10
mov byte [ebp - 4], 1
mov edi, esp
lea esi, [ebp - 0x20]
push 1
movsd dword es:[edi], dword [esi]
push str.Close
push ecx
push eax
movsd dword es:[edi], dword [esi]
push 1
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10024887
add esp, 0x28
mov byte [ebp - 4], 0
mov edi, eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.oleaut32.dll_VariantCopy]
lea esi, [ebx + 0x44]
jmp 0x100122eb
push 0
push str.Close
push ecx
push 0
push 1
push ebx
call fcn.10024887
add esp, 0x18
mov edi, eax
mov ecx, esi
call fcn.10009b23
cmp dword [ebx + 0x24], 0
je 0x10012312
push str.Excel.Application
lea ecx, [ebp - 0x10]
call fcn.10024887
test al, al
je 0x10012312
push dword [ebx + 0x24]
call dword [sym.imp.kernel32.dll_DeleteFileW]
push dword [ebp - 0x10]
call dword [sym.imp.oleaut32.dll_SysStringLen]
mov eax, edi
call fcn.10016dca
ret
Function at 0x10013230
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x214
mov eax, 0x1002dcec
call fcn.10016e35
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
cmp dword [ebx + 8], 0
je 0x1001325b
mov eax, reloc.oleaut32.dll_VariantCopyInd
jmp 0x100133e6
mov eax, dword [ebx - 0xc]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x100304d0]
lea ecx, [ebx - 0xc]
call esi
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jne 0x1001327f
mov eax, 0x80004005
jmp 0x100133e6
mov edx, dword [ebp + 0x10]
mov esi, reloc.oleaut32.dll_SysReAllocString
mov eax, edx
and eax, esi
cmp eax, esi
push dword [ebp - 0x21c]
sete al
mov byte [ecx + 0x31], al
lea ecx, [esi + 2]
mov eax, edx
and eax, ecx
cmp eax, ecx
mov eax, dword [ebx + 0x14]
sete cl
mov byte [eax + 0x32], cl
lea eax, [esi + 6]
and edx, eax
cmp edx, eax
mov eax, dword [ebx + 0x14]
sete cl
mov byte [eax + 0x33], cl
mov ecx, dword [ebx + 0x14]
add ecx, 0x28
call fcn.10024887
mov edi, dword [ebx + 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x100304d0]
mov ecx, edi
call esi
push eax
lea ecx, [ebp - 0x220]
call fcn.10024887
xor esi, esi
lea ecx, [ebp - 0x220]
push str.Excel.Application
mov dword [ebp - 4], esi
call fcn.10024887
test al, al
je 0x100133be
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10019ba0
mov edi, dword [ebp - 0x21c]
push 0x5c
push edi
call fcn.10024887
add esp, 0x14
test eax, eax
jne 0x10013338
push 0x2f
push edi
call fcn.10024887
pop ecx
pop ecx
test eax, eax
je 0x10013358
add eax, 2
push 0x2e
push eax
call fcn.10024887
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10024887
add esp, 0x14
cmp word [ebp - 0x218], si
je 0x100133b7
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.kernel32.dll_CopyFileW]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10024887
pop ecx
pop ecx
mov ecx, dword [ebx + 0x14]
add ecx, 0x24
test eax, eax
jne 0x100133a9
lea eax, [ebp - 0x218]
push eax
call fcn.10024887
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
jmp 0x100133af
push edi
call fcn.10024887
mov eax, dword [ebx + 0x14]
add eax, 0x24
jmp 0x100133cf
mov esi, 0x80004005
jmp 0x100133d8
mov ecx, dword [ebx + 0x14]
push dword [ebp - 0x21c]
add ecx, 0x24
call fcn.10024887
push eax
lea ecx, [ebx + 0x10]
call fcn.10024887
push dword [ebp - 0x220]
call dword [sym.imp.oleaut32.dll_SysStringLen]
mov eax, esi
call fcn.10016ddf
ret 0xc