joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10148bd
Capabilities:
Check if file exists
Delete registry value
Get file attributes
Query environment variable

Disassembly:
push 0x240
mov eax, 0x101d240
call fcn.0100f9b0
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
push 0x20119
lea ecx, [ebp - 0x23c]
push ecx
push eax
mov dword [ebp - 4], edi
mov byte [ebp - 0x221], 0
call fcn.01017641
test eax, eax
jl 0x1014a5d
mov eax, dword [esi + 4]
mov esi, dword [eax]
mov dword [ebp - 0x228], esi
cmp esi, eax
je 0x1014a5d
jmp 0x1014930
xor edi, edi
mov ebx, dword [esi + 0x1c]
xor eax, eax
push 0x206
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x20]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1014a1a
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1014a1a
xor eax, eax
mov word [ebp - 0x18], ax
push 0xa
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
push 3
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.msvcrt.dll__itow_s
add esp, 0x10
test eax, eax
jne 0x1014a1a
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
push 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x248]
call fcn.01003c5a
test eax, eax
jne 0x1014a0f
lea eax, [ebp - 0x22c]
push eax
add esi, 0xc
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x1014a0f
push dword [ebp - 0x22c]
push dword [ebp - 0x248]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
test eax, eax
jne 0x1014a03
mov byte [ebp - 0x221], 1
push dword [ebp - 0x22c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x248]
call fcn.01003be7
lea ecx, [ebp - 0x228]
call fcn.01013d82
mov esi, dword [ebp - 0x228]
mov eax, dword [ebp - 0x24c]
cmp esi, dword [eax + 4]
jne 0x101492e
cmp byte [ebp - 0x221], 0
je 0x1014a5d
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push 0
push 0x10020a0
push 4
push 0x8000006d
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x23c]
call fcn.01003be7
call fcn.0100fa42
ret 0xc
Function at 0x1016f49
Capabilities:
Query environment variable
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x10222a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x3c], 0xffffffff
mov dword [ebp - 0x220], esi
jne 0x1017100
push dword [ebx + 0x2c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
ja 0x1016f89
xor eax, eax
inc eax
jmp 0x1017127
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x2c]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1016fcd
mov dword [ebp - 0x220], 0x80004005
jmp 0x1016fea
push esi
push 0x2000
push 3
push esi
push 1
push 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_CreateFileW]
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x38]
push edi
cmp eax, 0xffffffff
je 0x10170ea
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.API_MS_Win_Core_Memory_L1_1_0.dll_CreateFileMappingW]
mov dword [ebx + 0x3c], eax
cmp eax, 0xffffffff
je 0x1017104
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.API_MS_Win_Core_Memory_L1_1_0.dll_MapViewOfFile]
mov dword [ebx + 0x40], eax
cmp eax, esi
je 0x10170ea
push 0x34
lea eax, [ebp - 0x254]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push dword [ebx + 0x38]
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_GetFileInformationByHandle]
mov ecx, dword [ebp - 0x230]
mov dword [ebx + 0x44], ecx
cmp dword [ebp - 0x240], esi
jne 0x1017068
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], esi
je 0x101706e
lea eax, [ebp - 0x240]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], eax
cmp ecx, 0x10
ja 0x1017088
mov dword [ebp - 0x220], 0x80070018
cmp dword [ebp - 0x220], esi
jl 0x10170f2
xor eax, eax
mov dword [ebp - 0x21c], esi
lea edi, [ebp - 0x218]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 0x40]
cmp eax, esi
je 0x10170ad
add eax, 0x10
jmp 0x10170af
xor eax, eax
push 0x10
lea edx, [ebp - 0x21c]
push edx
add ecx, 0xfffffff0
push ecx
push eax
call fcn.01012860
cmp eax, esi
mov dword [ebp - 0x220], eax
jl 0x10170f2
mov edi, dword [ebx + 0x40]
push 4
pop ecx
lea esi, [ebp - 0x21c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x10170e8
mov dword [ebp - 0x220], 0x80070017
xor esi, esi
cmp dword [ebp - 0x220], esi
jge 0x10170f9
mov ecx, ebx
call fcn.01016e98
cmp dword [ebx + 0x3c], 0xffffffff
pop edi
je 0x1017118
xor eax, eax
jmp 0x1017127
cmp dword [ebp - 0x220], esi
jl 0x10170f2
mov dword [ebp - 0x220], 0x80070002
jmp 0x10170ea
mov eax, dword [ebp - 0x220]
cmp eax, esi
jl 0x1017127
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100f77f
leave
ret
Function at 0x101718e
Capabilities:
Move file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10222a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x2c]
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
ja 0x10171c1
mov eax, 0x80004005
jmp 0x1017233
mov ecx, esi
call fcn.01016e98
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1017204
mov esi, 0x80004005
test esi, esi
jl 0x1017231
mov eax, dword [edi]
push 0xb
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1017223
mov esi, 0x80004005
test esi, esi
jl 0x1017231
push ebx
mov ecx, edi
call fcn.01016dfc
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100f77f
leave
ret 4

Function at 0x1017249
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x220c
call fcn.0100fbf0
mov eax, dword [0x10222a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10172f7
and dword [esi], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x220c], ax
lea eax, [ebp - 0x220a]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x220c]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x1002cc4
lea eax, [ebp - 0x220c]
push eax
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100f77f
leave
ret 4
mov eax, 0x80070057
jmp 0x10172e8
Function at 0x101789f
Capabilities:
Delete file
Query environment variable

Disassembly:
push 0x210
mov eax, 0x101d535
call fcn.0100f9b0
mov esi, ecx
call fcn.01016e98
lea edi, [esi + 0x2c]
push dword [edi]
call fcn.010127e0
test eax, eax
jbe 0x1017961
and dword [ebp - 0x21c], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
push dword [esi + 0x28]
lea eax, [esi + 0x18]
push eax
add esi, 8
push esi
call fcn.01017710
mov esi, eax
test esi, esi
jl 0x101794c
push edi
lea ecx, [ebp - 0x21c]
call fcn.010175de
test al, al
je 0x101794c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x101793b
mov esi, 0x80004005
test esi, esi
jl 0x101794c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_DeleteFileW]
push dword [edi]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x21c]
and dword [edi], 0
call esi
call fcn.0100fa42
ret

Function at 0x10192fb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10222a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x210], ebx
test ebx, ebx
jne 0x101932c
mov eax, 0x80070057
jmp 0x10193f9
push 0x250
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x1019394
lea edi, [esi + 0x28]
push edi
call fcn.01018f48
test eax, eax
jl 0x10193f8
push edi
push dword [esi + 0x24]
lea eax, [ebp - 0x20c]
push dword [esi + 0x20]
push 0
push 0
push dword [esi + 0x10]
push dword [esi + 0xc]
push 0x104
push eax
call fcn.0101919a
test eax, eax
jl 0x10193f8
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_FindFirstFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x10193f1
jmp 0x10193a0
push ebx
push eax
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_FindNextFileW]
test eax, eax
je 0x10193e7
mov eax, dword [ebp - 0x210]
add eax, 0x2c
push 0x5f
push eax
xor ebx, ebx
xor edi, edi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x10193d0
push 0x24
add eax, 2
push edi
push eax
call dword [sym.imp.msvcrt.dll__wcstoi64]
add esp, 0xc
mov ebx, eax
mov edi, edx
cmp edi, dword [esi + 0x1c]
jg 0x10193f6
jl 0x10193dc
cmp ebx, dword [esi + 0x18]
ja 0x10193f6
mov ebx, dword [ebp - 0x210]
jmp 0x101933d
push esi
call fcn.01018fbd
test eax, eax
jl 0x10193f8
xor eax, eax
inc eax
jmp 0x10193f8
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100f77f
leave
ret 8
Function at 0x10197b6
Capabilities:
Delete file

Disassembly:
push 0x68c
mov eax, 0x101d704
call fcn.0100f9b0
mov ebx, dword [ebp + 0x20]
xor esi, esi
cmp ebx, esi
je 0x10197d0
mov dword [ebx], esi
mov edi, dword [ebp + 0xc]
cmp edi, 0xffff
je 0x10197f8
mov eax, edi
push 0x7f
and eax, 0x3ff
pop ecx
cmp cx, ax
je 0x10197f8
push edi
call fcn.010126b3
test al, al
je 0x10198c7
cmp dword [ebp + 0x14], esi
jl 0x10198c7
jg 0x101980c
cmp dword [ebp + 0x10], esi
jb 0x10198c7
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
not ecx
test eax, ecx
jne 0x10198c7
push eax
push dword [ebp + 0x18]
lea ecx, [ebp - 0x698]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.01018f7f
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 4], esi
call sub.msvcrt.dll_memset
push 0x24c
lea eax, [ebp - 0x464]
push esi
push eax
mov dword [ebp - 0x468], esi
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 8]
add esp, 0x18
jmp 0x10198aa
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x698]
push eax
call fcn.0101940e
test eax, eax
jne 0x10198ae
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_DeleteFileW]
cmp edi, 0x7fffffff
jge 0x10198aa
sub edi, dword [ebp - 0x448]
cmp edi, esi
jg 0x1019871
cmp ebx, esi
je 0x10198b4
mov dword [ebx], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x698]
call fcn.010192e7
xor eax, eax
jmp 0x10198cc
mov eax, 0x80070057
call fcn.0100fa42
ret 0x1c
Function at 0x1019d32
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x10222a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x448], eax
cmp edi, ebx
je 0x1019d6b
mov esi, 0x100318c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp eax, ebx
je 0x1019d71
mov dword [eax], ebx
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x43c], ebx
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, 0x100318c
lea edi, [ebp - 0x424]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x18
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x42c], ebx
mov eax, 0x1002f20
cmp byte [ebp + 8], bl
jne 0x1019ddd
mov eax, 0x1002e98
push 0x20019
push eax
push 0x80000001
lea ecx, [ebp - 0x444]
call fcn.01003c5a
mov esi, eax
xor edi, edi
cmp esi, ebx
jne 0x1019e84
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x428]
push eax
push ebx
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push dword [ebp - 0x444]
mov dword [ebp - 0x434], 0x104
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x438], 0x208
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumValueW]
mov esi, eax
cmp esi, ebx
jne 0x1019e78
inc edi
cmp dword [ebp - 0x428], 1
jne 0x1019e78
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
cmp eax, ebx
mov dword [ebp - 0x42c], eax
jge 0x1019e89
cmp dword [ebp - 0x42c], ebx
jge 0x1019df7
xor ebx, ebx
inc ebx
jmp 0x1019ebb
mov edi, dword [ebp - 0x430]
cmp edi, ebx
je 0x1019e9d
lea esi, [ebp - 0x424]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x448]
cmp esi, ebx
je 0x1019ebb
push ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcstol]
add esp, 0xc
mov dword [esi], eax
lea ecx, [ebp - 0x444]
call fcn.01003be7
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0100f77f
leave
ret 0xc
Function at 0x101bf9d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_CreateEventW]
mov dword [esi + 0x50], eax
cmp eax, edi
jne 0x101bfc7
mov eax, 0x80004005
jmp 0x101c074
lea eax, [esi + 0x48]
push eax
push edi
push esi
push 0x101be96
push edi
push edi
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_CreateThread]
mov dword [esi + 0x44], eax
cmp eax, edi
jne 0x101bfea
mov dword [ebp - 4], 0x80004005
jmp 0x101c016
push ebx
mov ebx, dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_SetThreadPriority]
push 2
push eax
call ebx
push 0x9c4
push dword [esi + 0x50]
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_WaitForSingleObject]
test eax, eax
je 0x101c00f
mov dword [ebp - 4], 0x80004005
push edi
push dword [esi + 0x44]
call ebx
pop ebx
push dword [esi + 0x50]
call dword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
cmp dword [ebp - 4], edi
mov dword [esi + 0x50], edi
jl 0x101c06a
cmp dword [esi + 0x2c], edi
je 0x101c045
mov eax, dword [esi + 0x2c]
lea ecx, [esi + 0x30]
push ecx
push 0x1002450
push eax
mov dword [esi + 0x2c], edi
call dword [sym.imp.ole32.dll_CoGetInterfaceAndReleaseStream]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x30]
cmp eax, edi
jne 0x101c058
cmp dword [ebp - 4], edi
jl 0x101c06a
mov dword [ebp - 4], 0x80004005
cmp dword [ebp - 4], edi
jl 0x101c06a
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x101c071
mov ecx, esi
call fcn.0101a424
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x101c645
Capabilities:
Create directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10222a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_CreateDirectoryW]
push edi
mov edi, dword [ebp + 8]
push 0
push edi
call esi
test eax, eax
jne 0x101c6da
mov ebx, dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x101c6da
call ebx
cmp eax, 3
jne 0x101c6d3
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0101370b
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x101c6d3
lea ecx, [ebp - 0x20c]
cmp eax, ecx
je 0x101c6d3
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.0101c645
test eax, eax
jne 0x101c6d3
push eax
push edi
call esi
test eax, eax
jne 0x101c6da
mov eax, 0x80004005
jmp 0x101c6e8
push 0x2000
push edi
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_SetFileAttributesW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100f77f
leave
ret 4
Function at 0x417f2e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x417f3d
pop dword [ebp - 0x48]
mov eax, 0x3ef99568
add eax, 0xc147e9d5
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x39828
push 0
mov eax, 0x18c67c81
sub eax, 0x1883ec55
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x93a3934e
add ecx, 0x6c5cb68a
xor ebx, ebx
add ebx, eax
mov edi, 0x81d42509
sub edi, 0x8190b709
add edi, dword [ebp - 0x48]
mov edx, 0x3690cab3
sub dword [ebp - 0x24], 0x492203c8
mov esi, dword [edi]
xor dword [ebp - 0x1c], esi
xor esi, edx
add dword [ebp - 0x24], ebx
mov dword [ebx], esi
xor dword [ebp - 0x3c], edi
add ebx, 0x10b26d76
sub ebx, 0x10b26d72
add edi, 0xcdbe7c7a
add edi, 0x3241838a
loop 0x417f98
add eax, 0xb80fbe81
add eax, 0x47f15bb2
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x41e7e0
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x2d4
push esi
call dword [sym.imp.kernel32.dll_GetVersion]
cmp ax, 6
je 0x41e81d
push str.SetDefaultDllDirectories
push 0x429a14
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x41e81d
push 0xc00
call eax
test eax, eax
jne 0x41e8b6
lea eax, [esp + 8]
push 0x106
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41e8b6
cmp eax, 0x104
ja 0x41e8b6
cmp word [esp + eax*2 + 6], 0x5c
je 0x41e84c
mov word [esp + eax*2 + 8], 0x5c
inc eax
mov esi, dword [str.userenv]
cmp byte [esi], 0
je 0x41e8b6
push ebp
lea ecx, [esp + eax*2 + 0xc]
push edi
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [esp + 0xc], ecx
mov ebp, 0x6c
mov cl, byte [esi]
mov eax, dword [esp + 0xc]
inc esi
test cl, cl
je 0x41e88b
xor dx, dx
add eax, 2
mov dl, cl
inc esi
mov word [eax - 2], dx
mov cl, byte [esi - 1]
test cl, cl
jne 0x41e877
mov word [eax], 0x2e
mov word [eax + 2], 0x64
mov word [eax + 4], bp
mov word [eax + 6], bp
mov word [eax + 8], 0
push 8
lea eax, [esp + 0x14]
push 0
push eax
call edi
cmp byte [esi], 0
jne 0x41e86c
pop edi
pop ebp
pop esi
add esp, 0x2d4
ret
Function at 0x4010b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401100
lea ebx, [ebx]
cmp esi, eax
jae 0x401104
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x40110a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401b80
Capabilities:
Create directory

Disassembly:
sub esp, 0x210
mov eax, dword [0x4b3cc4]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
xor ecx, ecx
xor ebp, ebp
push esi
mov eax, edi
cmp cx, word [edi]
je 0x401bf9
push 0x498e94
push eax
call fcn.0047283f
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401c13
mov esi, ebx
sub esi, edi
sar esi, 1
test esi, esi
jle 0x401bef
push 0x20a
lea edx, [esp + 0x10]
push 0
push edx
call fcn.004768f0
push esi
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.004723df
add esp, 0x18
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
lea eax, [ebx + 2]
xor edx, edx
cmp dx, word [eax]
jne 0x401ba2
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00472007
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00472007
add esp, 0x210
ret

Function at 0x401c30
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b3cc4]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401caf
mov ecx, dword [esp + 0x214]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401caf
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xe]
push eax
mov word [esp + 0x10], dx
call fcn.004768f0
mov eax, dword [esp + 0x220]
lea edx, [esp + 0x10]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401c91
push edi
lea edi, [esp + 8]
call fcn.00401b80
mov esi, eax
pop edi
jmp 0x401cb4
mov esi, 1
mov eax, dword [esp + 0x214]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401cd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00472007
add esp, 0x20c
ret