joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001405f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074a7d
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.1004e980
mov eax, dword [0x100a0070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x101c], esi
mov dword [ebp - 4], ebx
test esi, esi
je 0x10014110
cmp esi, 0xffffffff
je 0x10014110
mov ecx, edi
mov eax, dword [edi]
cmp byte [ebp + 8], bl
je 0x100140cd
push 2
push ebx
push ebx
call dword [eax + 8]
jmp 0x100140ef
call dword [eax + 0x20]
jmp 0x100140ef
cmp dword [ebp - 0x1018], 0
je 0x1001410e
push dword [ebp - 0x1018]
mov eax, dword [edi]
lea ecx, [ebp - 0x1014]
push ecx
mov ecx, edi
call dword [eax + 0x10]
push ebx
lea eax, [ebp - 0x1018]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100140d2
mov bl, 1
lea ecx, [ebp - 0x101c]
call fcn.1000391f
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004d78e
mov esp, ebp
pop ebp
ret

Function at 0x10014139
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x100a0070]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov esi, ecx
xor edi, edi
push edi
push edi
xorps xmm0, xmm0
mov eax, dword [esi]
push edi
movlpd qword [esp + 0x14], xmm0
call dword [eax + 8]
mov eax, dword [esi]
lea ecx, [esp + 8]
push 8
push ecx
mov ecx, esi
call dword [eax + 0xc]
cmp dword [esp + 8], 0x70bfbbef
jne 0x1001418c
cmp dword [esp + 0xc], 0x706c646f
je 0x1001420a
push 0x208
lea eax, [esp + 0x14]
push edi
push eax
call fcn.10050900
add esp, 0xc
lea ecx, [esp + 0x10]
mov dl, 1
call fcn.1003022c
test eax, eax
je 0x1001420a
push edi
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.10013f15
add esp, 0xc
test al, al
je 0x100141e5
xor edx, edx
lea ecx, [esp + 0x10]
inc edx
call fcn.1003f931
test eax, eax
je 0x1001421e
push edi
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.1001405f
pop ecx
test al, al
jne 0x100141f0
push str.nfStreamToFile_failed
call fcn.1002f7ab
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001420a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
call fcn.1004d78e
mov esp, ebp
pop ebp
ret
push str.pchFileEncrypt_failed_in__EncryptStream
jmp 0x100141ea
Function at 0x10014225
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x100a0070]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov esi, ecx
xor edi, edi
push edi
push edi
xorps xmm0, xmm0
mov eax, dword [esi]
push edi
movlpd qword [esp + 0x14], xmm0
call dword [eax + 8]
mov eax, dword [esi]
lea ecx, [esp + 8]
push 8
push ecx
mov ecx, esi
call dword [eax + 0xc]
cmp dword [esp + 8], 0x70bfbbef
jne 0x10014300
cmp dword [esp + 0xc], 0x706c646f
jne 0x10014300
push 0x208
lea eax, [esp + 0x14]
push edi
push eax
call fcn.10050900
add esp, 0xc
lea ecx, [esp + 0x10]
mov dl, 1
call fcn.1003022c
test eax, eax
je 0x10014300
push edi
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.10013f15
add esp, 0xc
test al, al
je 0x100142db
push ecx
push 2
pop edx
lea ecx, [esp + 0x14]
call fcn.1003fd57
pop ecx
test eax, eax
je 0x10014314
push edi
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.1001405f
pop ecx
test al, al
jne 0x100142e6
push str.nfStreamToFile_failed
call fcn.1002f7ab
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10014300
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
call fcn.1004d78e
mov esp, ebp
pop ebp
ret
push str.pchFileEncrypt_failed_in__EncryptStream
jmp 0x100142e0
Function at 0x1002242e
Capabilities:
Check if file exists
Delete file
Delete service
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100a0070]
xor eax, ebp
mov dword [ebp - 4], eax
test ecx, ecx
je 0x1002244a
call fcn.10032ce3
push ecx
push 0x10000
push ecx
lea ecx, [ebp - 0x214]
call fcn.10032c7b
cmp dword [ebp - 0x214], 0
je 0x10022471
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
lea ecx, [ebp - 0x214]
call fcn.10032cc2
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10050900
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.drivers_netfilter2.sys
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10030aa4
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100224dc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.10030ae6
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1004d78e
mov esp, ebp
pop ebp
ret

Function at 0x100261fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x100a0070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x48], edx
push 7
pop ecx
xor ebx, ebx
mov dword [ebp - 0x4c], esi
xor eax, eax
mov byte [ebp - 0x28], bl
lea edi, [ebp - 0x27]
rep stosd dword es:[edi], eax
push 0x4c
push ebx
push esi
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10050900
add esp, 0xc
mov dword [esi], 0x44414548
mov edi, ebx
call fcn.100571b7
and eax, 0x800000ff
jns 0x10026251
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp + edi - 0x44], al
inc edi
cmp edi, 4
jl 0x1002623e
mov eax, dword [ebp - 0x44]
mov dword [esi + 4], eax
lea eax, [esi + 8]
push ebx
mov dword [ebp - 0x44], eax
call fcn.10055b26
pop ecx
lea ecx, [esi + 8]
mov dword [esi + 0xc], ebx
mov dword [ecx], eax
lea edi, [esi + 0x18]
mov eax, dword [ebp - 0x48]
lea edx, [esi + 4]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov word [esi + 0x14], ax
mov eax, 0xcccccccc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [edx], ebx
je 0x100262c3
push ecx
lea ecx, [ebp - 0x40]
call fcn.10041033
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100262a8
mov eax, dword [eax]
push 8
pop ecx
mov esi, eax
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.10001805
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
mov eax, ebx
and eax, 7
mov eax, dword [ebp + eax*4 - 0x28]
xor dword [ecx], eax
inc ebx
lea ecx, [ecx + 4]
cmp ebx, 0x10
jb 0x100262c3
push dword [ebp + 8]
mov edx, dword [ebp - 0x48]
mov ecx, esi
call fcn.10026133
pop ecx
mov ecx, dword [ebp - 8]
pop edi
mov dword [esi + 0x48], eax
xor ecx, ebp
pop esi
pop ebx
call fcn.1004d78e
mov esp, ebp
pop ebp
ret
Function at 0x1002a20c
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push 0x22c
mov eax, 0x100780b7
call fcn.1004e336
mov esi, ecx
mov dword [ebp - 0x234], esi
xor ebx, ebx
mov dword [ebp - 0x21c], 7
xor eax, eax
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.10050900
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1002a280
push 0x100893dc
mov ecx, esi
call fcn.1000587d
jmp 0x1002a2c7
lea eax, [ebp - 0x218]
push eax
call fcn.10002f58
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.1000660b
mov edi, str.DSOCNFNetDataHandler.dll
push edi
call fcn.10002f58
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.10018831
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.10005858
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.100065b4
mov eax, esi
call fcn.1004e2e0
ret

Function at 0x1002a2dd
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push 0x22c
mov eax, 0x100780b7
call fcn.1004e336
mov esi, ecx
mov dword [ebp - 0x234], esi
xor ebx, ebx
mov dword [ebp - 0x21c], 7
xor eax, eax
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.10050900
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1002a351
push 0x100893dc
mov ecx, esi
call fcn.1000587d
jmp 0x1002a398
lea eax, [ebp - 0x218]
push eax
call fcn.10002f58
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.1000660b
mov edi, str.DSOCNF_
push edi
call fcn.10002f58
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.10018831
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.10005858
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.100065b4
mov eax, esi
call fcn.1004e2e0
ret
Function at 0x1002a3ae
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0x2c
mov eax, 0x100780ef
call fcn.1004e336
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.1002a73a
mov ebx, dword [ebp - 0x34]
push 0x1000
push ebx
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x1002a419
cmp edi, 0x1000
jbe 0x1002a452
push edi
lea ecx, [ebp - 0x34]
call fcn.1002a7bd
mov ebx, dword [ebp - 0x34]
push edi
push ebx
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1002a452
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.Failed_to_get_PATH_environment_variable.
mov ecx, 0x100a2638
call fcn.1002b917
mov edx, str.error
mov ecx, eax
call fcn.1002b917
pop ecx
mov ecx, eax
call fcn.1002a81e
push eax
call fcn.1002bac4
pop ecx
xor bl, bl
jmp 0x1002a51b
push ebx
lea ecx, [ebp - 0x28]
call fcn.1000587d
mov edi, 0x10089f80
mov byte [ebp - 4], 1
push edi
call fcn.10002f58
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.10018831
cmp dword [esi + 0x14], 8
jb 0x1002a47d
mov esi, dword [esi]
push esi
call fcn.10002f58
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.10018831
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x1002a4df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.Failed_to_set_PATH_environment_variable.
mov ecx, 0x100a2638
call fcn.1002b917
mov edx, str.error
mov ecx, eax
call fcn.1002b917
pop ecx
mov ecx, eax
call fcn.1002a81e
push eax
call fcn.1002bac4
pop ecx
xor bl, bl
jmp 0x1002a50f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.new_path_ws_n
call fcn.1000a2f1
mov edx, str.Successed_to_set_PATH_environment_variable.
mov ecx, 0x100a2638
call fcn.1002b917
push eax
call fcn.1002bac4
add esp, 0xc
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.100065b4
lea ecx, [ebp - 0x34]
call fcn.1002af0b
mov al, bl
call fcn.1004e2e0
ret
Function at 0x1002f907
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor edx, edx
lea eax, [ebp - 4]
push eax
push edx
push edx
push ecx
push edx
push edx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1002f93a
push dword [ebp + 8]
push dword [ebp - 4]
push str.thread__d_created:__s
call fcn.1002f3da
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1002fb55
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8c
mov eax, dword [0x100a0070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xa84], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xa8c], edx
mov dword [ebp - 0xa7c], eax
mov dword [ebp - 0xa80], ecx
test edi, edi
je 0x1002fd4b
test ebx, ebx
jne 0x1002fba5
test eax, eax
je 0x1002fd4b
movzx eax, word [edi + 2]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp eax, 0x3a
je 0x1002fbf1
cmp eax, 0x5c
je 0x1002fbf1
push 0x410
lea eax, [ebp - 0x828]
push 0
push eax
call fcn.10050900
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
lea eax, [ebp - 0x828]
push eax
call esi
lea edi, [ebp - 0x828]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002fd4b
test al, 0x10
je 0x1002fd4b
push edi
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1008bdb8
lea eax, [ebp - 0x418]
push eax
call esi
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa88], eax
cmp eax, 0xffffffff
je 0x1002fd4b
xor esi, esi
inc esi
push 0x1008b244
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1002fd1b
push 0x1008dad8
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1002fd1b
cmp dword [ebp - 0xa78], 0xffffffff
je 0x1002fd1b
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0xa78], 0x10
je 0x1002fd04
mov eax, dword [ebp - 0xa7c]
test eax, eax
je 0x1002fcda
push dword [ebp - 0xa80]
lea ecx, [ebp - 0x210]
push ecx
call eax
test eax, eax
je 0x1002fd38
mov eax, dword [ebp - 0xa7c]
mov ecx, dword [ebp - 0xa8c]
test ecx, ecx
je 0x1002fd1b
push dword [ebp - 0xa80]
mov edx, ecx
lea ecx, [ebp - 0x210]
push eax
push dword [ebp - 0xa84]
push ebx
call fcn.1002fb55
cmp eax, 2
jmp 0x1002fd19
test ebx, ebx
je 0x1002fd1b
push dword [ebp - 0xa84]
lea eax, [ebp - 0x210]
push eax
call ebx
test eax, eax
je 0x1002fd38
lea eax, [ebp - 0xa78]
push eax
push dword [ebp - 0xa88]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002fc4b
jmp 0x1002fd3b
push 2
pop esi
push dword [ebp - 0xa88]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x1002fd4d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d78e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1002fde5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x100a0070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
test esi, esi
je 0x1002fec8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x1002fec8
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.10050900
add esp, 0xc
lea edx, [ebp - 0x210]
mov ecx, esi
call fcn.10030958
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002fe56
shr eax, 4
not eax
and eax, 1
jmp 0x1002feca
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x418]
call fcn.1002fedc
test eax, eax
je 0x1002fec8
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1002feb4
cmp eax, 0xffffffff
je 0x1002feb4
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x41c]
call fcn.1000391f
xor eax, eax
test bl, bl
setne al
jmp 0x1002feca
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d78e
mov esp, ebp
pop ebp
ret 8
Function at 0x1003022c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100a0070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov bl, dl
test esi, esi
je 0x1003029f
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10050900
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1003029f
push esi
push 0
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1003029f
test bl, bl
je 0x1003029a
push ecx
push ecx
mov ecx, esi
call fcn.1002fde5
jmp 0x100302a1
xor eax, eax
inc eax
jmp 0x100302a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d78e
mov esp, ebp
pop ebp
ret

Function at 0x100302b1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.1004e980
mov eax, dword [0x100a0070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, edx
xor ebx, ebx
mov dword [ebp - 0x2014], eax
test esi, esi
je 0x10030454
test eax, eax
je 0x10030454
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100302f8
inc ebx
jmp 0x10030454
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push esi
call edi
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp - 0x2014]
mov esi, eax
mov dword [ebp - 0x2010], esi
call edi
mov edi, eax
mov dword [ebp - 0x200c], edi
test esi, esi
je 0x1003043d
cmp esi, 0xffffffff
je 0x1003043d
test edi, edi
je 0x1003043d
cmp edi, 0xffffffff
je 0x1003043d
lea eax, [ebp - 0x201c]
mov dword [ebp - 0x201c], ebx
push eax
push esi
mov dword [ebp - 0x2018], ebx
mov dword [ebp - 0x2024], ebx
mov dword [ebp - 0x2020], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1003043d
lea eax, [ebp - 0x2024]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1003043d
mov eax, dword [ebp - 0x201c]
cmp eax, dword [ebp - 0x2024]
jne 0x1003043d
mov eax, dword [ebp - 0x2018]
cmp eax, dword [ebp - 0x2020]
jne 0x1003043d
mov dword [ebp - 0x2008], ebx
jmp 0x10030419
cmp dword [ebp - 0x2008], ebx
je 0x1003043a
push ebx
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x2014], ebx
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003043d
mov eax, dword [ebp - 0x2008]
cmp eax, dword [ebp - 0x2014]
jne 0x1003043d
push eax
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.10050a5a
add esp, 0xc
test eax, eax
jne 0x1003043d
push ebx
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100303c2
jmp 0x1003043d
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x200c]
call fcn.1000391f
lea ecx, [ebp - 0x2010]
call fcn.1000391f
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d78e
mov esp, ebp
pop ebp
ret
Function at 0x10030466
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10030481
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
test al, 1
je 0x10030490
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret

Function at 0x100305d7
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
test ebx, ebx
jne 0x100305ff
push ecx
push ecx
mov ecx, edi
call fcn.1002fde5
test eax, eax
je 0x10030666
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
test eax, eax
je 0x10030651
cmp eax, 0xffffffff
je 0x10030651
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
push ecx
push dword [ebp + 8]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10030643
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x10030643
inc esi
jmp 0x1003065c
test ebx, ebx
jne 0x1003065c
lea ecx, [ebp - 8]
call fcn.1000391f
jmp 0x10030655
test ebx, ebx
jne 0x1003065c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 8]
call fcn.1000391f
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1003066f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
mov ecx, 0x179b06cc
movzx edx, byte [esi + edi]
movzx eax, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x1008dcc8]
inc esi
cmp esi, 0x24
jl 0x1003067a
not ecx
pop edi
mov eax, ecx
pop esi
ret 4