joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46479f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x46481e
cmp eax, 0x40
jbe 0x4647d1
lea edx, [esi + 0x40]
mov ecx, esi
call fcn.00464d53
mov dword [esi + 0x9c], 0x14
mov ecx, dword [esi + 0x9c]
push edi
xor edi, edi
cmp ecx, 0x40
jae 0x4647f2
push 0x40
pop eax
sub eax, ecx
push eax
lea eax, [ecx + esi]
push edi
push eax
call fcn.004686d0
add esp, 0xc
xor dword [esi + edi*4], 0x36363636
inc edi
cmp edi, 0x10
jb 0x4647f2
lea ecx, [esi + 0x40]
call fcn.00464cb5
push ecx
push 0x40
pop edx
mov ecx, esi
call fcn.00464ce0
or dword [esi + 0x9c], 0xffffffff
pop ecx
mov ecx, dword [ebp - 4]
pop edi
test ebx, ebx
je 0x46482e
lea eax, [esi + 0x40]
mov edx, ebx
push eax
call fcn.00464ce0
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x464834
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4a7014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x1c], ecx
cmp dword [esi + 0x9c], 0xffffffff
je 0x464862
push esi
xor edx, edx
xor ecx, ecx
call fcn.0046479f
pop ecx
push edi
lea edi, [esi + 0x40]
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00464d53
xor eax, eax
xor dword [esi + eax*4], 0x6a6a6a6a
inc eax
cmp eax, 0x10
jb 0x464872
mov ecx, edi
call fcn.00464cb5
push edi
push 0x40
pop edx
mov ecx, esi
call fcn.00464ce0
push edi
push 0x14
pop edx
lea ecx, [ebp - 0x18]
call fcn.00464ce0
pop ecx
pop ecx
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00464d53
pop edi
test ebx, ebx
je 0x4648be
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call fcn.0047b850
add esp, 0xc
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004684b5
mov esp, ebp
pop ebp
ret
Function at 0x4648ce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4a7014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xa0
mov dword [ebp - 0x21c], eax
mov esi, edx
lea eax, [ebp - 0xcc]
mov edi, ecx
push 0
push eax
call fcn.004686d0
lea eax, [ebp - 0xcc]
mov edx, esi
push eax
mov ecx, edi
call fcn.00464736
push 0xa0
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0047b850
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.0046479f
mov eax, dword [ebp + 0x18]
add esp, 0x20
dec eax
xor edx, edx
push 0x14
pop esi
div esi
add eax, 1
mov dword [ebp - 0x220], eax
je 0x464a6d
xor edi, edi
lea ecx, [ebp - 0x2c]
xor ebx, ebx
mov dword [ebp - 0x210], edi
inc ebx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ebx
push esi
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.004686d0
push 0xa0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0047b850
mov eax, ebx
mov byte [ebp - 0x15], bl
shr eax, 0x18
add esp, 0x18
mov byte [ebp - 0x18], al
mov edi, 0x3e8
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x17], al
mov eax, ebx
shr eax, 8
push 4
mov byte [ebp - 0x16], al
pop esi
lea eax, [ebp - 0x16c]
mov edx, esi
push eax
lea ecx, [ebp - 0x18]
call fcn.0046479f
lea eax, [ebp - 0x16c]
push eax
push 0x14
pop edx
lea ecx, [ebp - 0x18]
call fcn.00464834
pop ecx
pop ecx
xor esi, esi
mov al, byte [ebp + esi - 0x18]
xor byte [ebp + esi - 0x2c], al
inc esi
cmp esi, 0x14
jb 0x4649e8
push 0xa0
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0047b850
add esp, 0xc
sub edi, 1
jne 0x4649c1
mov ecx, dword [ebp - 0x210]
xor edx, edx
mov esi, dword [ebp - 0x218]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x21c]
cmp ecx, edi
jae 0x464a3e
mov al, byte [esi + ecx]
inc edx
mov byte [ecx + ebx], al
inc ecx
cmp edx, 0x14
jb 0x464a2d
mov ebx, dword [ebp - 0x214]
sub esi, 0x14
add dword [ebp - 0x210], 0x14
inc ebx
push 0x14
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], ebx
lea eax, [ebx - 1]
pop esi
cmp eax, dword [ebp - 0x220]
jb 0x464977
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004684b5
mov esp, ebp
pop ebp
ret
Function at 0x464a7e
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x4a7014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor edx, edx
mov dword [ebp - 0x154], edi
lea esi, [edi + 0x1c]
mov ecx, dword [esi]
mov eax, ecx
ror eax, 8
lea esi, [esi + 4]
rol ecx, 8
and eax, 0xff00ff00
and ecx, 0xff00ff
or eax, ecx
mov dword [ebp + edx*4 - 0x144], eax
inc edx
cmp edx, 0x10
jb 0x464aa1
push 0x40
lea ecx, [ebp - 0x13c]
pop edx
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
xor eax, dword [ecx - 8]
xor eax, dword [ecx]
lea ecx, [ecx + 4]
rol eax, 1
mov dword [ecx + 0x34], eax
sub edx, 1
jne 0x464ad1
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x10]
xor edi, edi
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x158], 0x14
jmp 0x464b1e
mov ecx, dword [ebp - 0x150]
not ecx
mov edx, esi
and ecx, eax
rol esi, 5
mov eax, ebx
and eax, dword [ebp - 0x150]
xor ecx, eax
mov eax, dword [ebp - 0x14c]
add esi, ecx
add eax, 0x5a827999
add esi, dword [ebp + edi*4 - 0x144]
add esi, eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov eax, ebx
mov ebx, dword [ebp - 0x150]
ror ebx, 2
inc edi
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x150], edx
cmp edi, 0x14
jb 0x464b18
mov dword [ebp - 0x15c], 0x28
xor eax, ebx
mov ecx, esi
xor eax, edx
rol esi, 5
add esi, eax
mov eax, dword [ebp - 0x158]
add esi, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x14c]
add eax, 0x6ed9eba1
add esi, eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov eax, ebx
mov ebx, edx
mov dword [ebp - 0x148], eax
mov edx, ecx
ror ebx, 2
mov ecx, dword [ebp - 0x158]
inc ecx
mov dword [ebp - 0x158], ecx
cmp ecx, 0x28
jb 0x464b7a
mov dword [ebp - 0x150], edx
mov edi, edx
mov ecx, ebx
mov edx, esi
xor ecx, edi
rol esi, 5
add esi, dword [ebp - 0x14c]
and ecx, eax
mov eax, ebx
and eax, edi
xor ecx, eax
mov eax, dword [ebp - 0x15c]
add ecx, 0x8f1bbcdc
push 0x3c
add ecx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x148]
add esi, ecx
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x14c], eax
mov eax, ebx
mov ebx, edi
mov dword [ebp - 0x148], eax
ror ebx, 2
mov edi, edx
inc ecx
pop edx
mov dword [ebp - 0x15c], ecx
cmp ecx, edx
jb 0x464bd4
mov dword [ebp - 0x150], edi
mov edi, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
xor eax, ebx
mov dword [ebp - 0x154], esi
xor eax, ecx
rol esi, 5
add esi, dword [ebp - 0x14c]
add eax, 0xca62c1d6
add eax, dword [ebp + edx*4 - 0x144]
add esi, eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov eax, ebx
mov ebx, ecx
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x154]
ror ebx, 2
inc edx
cmp edx, 0x50
jb 0x464c41
add dword [edi + 8], esi
mov eax, ecx
add dword [edi + 0xc], eax
mov eax, dword [ebp - 0x148]
add dword [edi + 0x14], eax
add dword [edi + 0x10], ebx
mov eax, dword [ebp - 0x14c]
add dword [edi + 0x18], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004684b5
mov esp, ebp
pop ebp
ret
Function at 0x464cb5
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 4], 0
and dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
ret
Function at 0x10009fce
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000a00d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000a00d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000a00d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000a00d
cmp dword [ecx + 0x74], 0xe
jbe 0x1000a00d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000de20
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 0x1000debd
push ebx
push esi
call fcn.1000dde9
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.1000dd7d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000de6a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000debc
push edi
push eax
call fcn.1000ab8c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000de8a
call fcn.1000ab52
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000debb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000dd7d
add esp, 0x20
test eax, eax
jne 0x1000dea9
push edi
call fcn.1000ab52
jmp 0x1000deb1
push ebx
call fcn.1000ab52
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 0x1000e12d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018d10
push 0x10018d08
push str.FlsAlloc
push 0x1f
call fcn.1000e049
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000e161
push dword [ebp + 8]
mov ecx, esi
call dword [0x10016150]
call esi
jmp 0x1000e167
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000e1ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018d20
push 0x10018d18
push str.FlsGetValue
push 0x21
call fcn.1000e049
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000e1e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x10016150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000e1ea
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018d28
push 0x10018d20
push str.FlsSetValue
push 0x22
call fcn.1000e049
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000e224
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10016150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10015480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100154ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100154ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401037
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
call 0x401037
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push esi
push edi
push ebx
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403030], eax
mov dword [ebp - 8], 0
push 0xa
push section..data
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x401089
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x401089
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4010c1
push 4
push 0x1000
push dword [ebp - 0xc]
push 0
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call sub.kernel32.dll_RtlMoveMemory
mov dword [ebp - 8], edi
push 0xdeadbeef
push dword [ebp - 0xc]
push dword [ebp - 8]
call section..text
cmp dword [ebp - 8], 0
je 0x4010fb
lea eax, [ebp - 0x40c]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str.dup2patcher.dll
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_lstrcatA
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 0x40c]
push eax
call fcn.00401184
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401130
mov ebx, eax
push str.load_patcher
push ebx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x40111e
call eax
push ebx
call sub.kernel32.dll_FreeLibrary
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401184
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4011af
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x401241
Capabilities:
Read file on windows
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4196d0]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x260], bx
mov ecx, 0x81
lea edi, [ebp - 0x25e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x260]
push eax
push dword [0x41ab30]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x401331
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401331
push 0xf
pop ecx
xor eax, eax
mov byte [ebp - 0x58], bl
lea edi, [ebp - 0x57]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x264]
push eax
push 0x40
lea eax, [ebp - 0x58]
push eax
push esi
mov dword [ebp - 0x264], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401331
cmp dword [ebp - 0x264], ebx
jbe 0x401331
xor eax, eax
mov word [ebp - 0x18], bx
movzx ecx, byte [ebp - 0x34]
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ah, byte [ebp - 0x33]
movzx eax, ax
or eax, ecx
push eax
lea eax, [ebp - 0x18]
push str._04d
push eax
call fcn.00407a15
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push str.INSTALL_CHANNEL
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401341
push str.0000
push str.INSTALL_CHANNEL
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040763c
leave
ret
Function at 0x402f13
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x4128dd
call fcn.00407f50
mov eax, 0x1030
call fcn.00408220
mov eax, dword [0x4196d0]
and dword [ebp - 0x101c], 0
and dword [ebp - 0x1018], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1020], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x1018], eax
mov dword [ebp - 0x1014], eax
jle 0x40304b
push ebx
push edi
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x1010], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x100e]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1014]
stosw word es:[edi], ax
mov eax, dword [ebp - 0x1020]
push dword [eax + ecx*4]
lea eax, [ebp - 0x1010]
push eax
call fcn.004079f9
lea eax, [ebp - 0x1010]
push eax
call fcn.004080fb
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x810], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x80e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x810]
push eax
call fcn.004079f9
lea eax, [ebp - 0x810]
push eax
call fcn.004080fb
add esp, 0x18
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x103c]
call fcn.004024da
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x810]
push ecx
mov ecx, eax
call fcn.00401858
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
xor edi, edi
push 0
inc edi
push edi
lea ecx, [ebp - 0x103c]
call fcn.0040163e
test bl, bl
jne 0x403043
inc dword [ebp - 0x1014]
mov eax, dword [ebp - 0x1014]
cmp eax, dword [ebp - 0x1018]
jl 0x402f6e
jmp 0x403049
mov dword [ebp - 0x101c], edi
pop edi
pop ebx
push dword [ebp - 0x1020]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x101c]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040763c
leave
ret
Function at 0x40307a
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov eax, 0x412911
call fcn.00407f50
sub esp, 0x318
mov eax, dword [0x4196d0]
push ebx
push edi
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x218], bx
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push str.shell32.dll
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
jne 0x4030d1
mov ecx, dword [ebp + 8]
push ebx
call fcn.004024da
jmp 0x403229
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x403170
lea ecx, [ebp - 0x220]
push ecx
push ebx
push ebx
push 0x41327c
mov dword [ebp - 0x220], ebx
call eax
cmp eax, ebx
jge 0x40310d
mov ecx, dword [ebp + 8]
push ebx
call fcn.004024da
jmp 0x403229
push dword [ebp - 0x220]
lea eax, [ebp - 0x320]
lea ecx, [ebp - 0x324]
mov dword [ebp - 0x324], eax
call fcn.004013df
mov dword [ebp - 4], 1
push dword [ebp - 0x324]
lea eax, [ebp - 0x218]
push eax
call fcn.004079f9
pop ecx
pop ecx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x320]
cmp dword [ebp - 0x324], eax
je 0x403162
push dword [ebp - 0x324]
call fcn.0040795e
pop ecx
push dword [ebp - 0x220]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x403182
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Thunder_Network_
lea eax, [ebp - 0x218]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x218]
push eax
call edi
cmp eax, 0xffffffff
je 0x4031bc
test al, 0x10
jne 0x4031ce
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x403200
push str.XMP4_
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call edi
cmp eax, 0xffffffff
je 0x4031ee
test al, 0x10
jne 0x403203
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403203
push ebx
jmp 0x403220
cmp dword [ebp + 0xc], ebx
je 0x403219
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
call fcn.004079cf
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
call fcn.004024da
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x21c], 1
pop ebx
call fcn.0040763c
leave
ret
Function at 0x403652
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x4129a3
call fcn.00407f50
sub esp, 0x2c8
mov eax, dword [0x4196d0]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
xor bl, bl
cmp dword [esi + 0x14], edi
mov dword [ebp - 0x10], eax
jne 0x403680
xor al, al
jmp 0x40382f
push esi
lea ecx, [ebp - 0x64]
call fcn.0040231c
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x14]
dec eax
push eax
mov ecx, esi
call fcn.00401606
cmp word [eax], 0x5c
je 0x4036aa
push 0x5c
push 1
lea ecx, [ebp - 0x64]
call fcn.00401f6d
push 0x4136e0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004032d0
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4036cf
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x2b4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x2b8], eax
je 0x40380d
lea eax, [ebp - 0x288]
push 0x4136dc
push eax
call fcn.0040830c
test eax, eax
pop ecx
pop ecx
je 0x4037c5
lea eax, [ebp - 0x288]
push 0x4136d4
push eax
call fcn.0040830c
test eax, eax
pop ecx
pop ecx
je 0x4037c5
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004032d0
add esp, 0xc
mov byte [ebp - 4], 2
test byte [ebp - 0x2b4], 0x10
mov eax, dword [ebp - 0x28]
je 0x403789
cmp dword [ebp - 0x14], 8
jae 0x403752
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.004024da
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2d4]
push eax
call fcn.00403652
pop ecx
mov bl, al
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x2d4]
call fcn.0040163e
test bl, bl
jne 0x4037b6
jmp 0x4037b6
cmp dword [ebp - 0x14], 8
jae 0x403792
lea eax, [ebp - 0x28]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4037aa
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov byte [ebp - 4], 1
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040163e
lea eax, [ebp - 0x2b4]
push eax
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4036ec
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x40380d
cmp dword [esi + 0x18], 8
jb 0x4037fb
mov esi, dword [esi + 4]
jmp 0x4037fe
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40380d
mov bl, 1
jmp 0x40380f
xor bl, bl
mov byte [ebp - 4], 0
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040163e
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x64]
call fcn.0040163e
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040763c
leave
ret