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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f97
mov ecx, dword [0x423ed8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41703c], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403095
cmp eax, edi
jl 0x40308e
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409018]
call ebx
test eax, eax
je 0x40308b
cmp dword [ebp - 4], esi
jne 0x40308b
push dword [ebp + 8]
add dword [0x41703c], esi
call fcn.00403095
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40308e
cmp dword [ebp + 0x10], edi
jne 0x40305a
cmp dword [ebp + 8], edi
jle 0x403086
mov esi, 0x413038
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x40300a
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x40308b
cmp edi, dword [ebp - 4]
jne 0x40308b
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x403056
cmp dword [ebp + 0x14], edi
jne 0x403056
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41703c], eax
cmp dword [ebp + 8], 0
jg 0x402ffd
jmp 0x403086
push 0xfffffffffffffffe
jmp 0x40308d
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403065
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x40308b
mov eax, dword [ebp - 4]
add dword [0x41703c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40308e
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403095
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41703c]
sub esi, dword [0x40afa8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423e8c], eax
jle 0x4031fd
push dword [0x41f04c]
call fcn.00403246
push ebx
push ebx
push dword [0x40afa8]
push dword [0x409018]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [0x41f048], esi
mov dword [0x417038], ebx
mov ebp, 0x40b038
mov eax, dword [0x417040]
mov edi, 0x4000
sub eax, dword [0x41f04c]
cmp eax, edi
jg 0x40310a
mov edi, eax
mov esi, 0x413038
push edi
push esi
call fcn.00403214
test eax, eax
je 0x4031e5
add dword [0x41f04c], edi
mov dword [0x40afc8], esi
mov dword [0x40afcc], edi
cmp dword [0x423e90], ebx
je 0x403161
cmp dword [0x423f20], ebx
jne 0x403161
mov eax, dword [0x41f048]
push ebx
sub eax, dword [0x41703c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40afa8]
mov dword [0x417038], eax
call fcn.00402c25
pop ecx
mov ecx, 0x40afb0
mov dword [0x40afd0], ebp
mov dword [0x40afd4], 0x8000
call fcn.0040609c
test eax, eax
jl 0x40320f
mov esi, dword [0x40afd0]
sub esi, ebp
je 0x4031bf
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4031ea
cmp esi, dword [esp + 0x10]
jne 0x4031ea
add dword [0x40afa8], esi
cmp dword [0x40afcc], ebx
jne 0x403130
jmp 0x4031cb
cmp dword [0x40afcc], ebx
jne 0x40320f
cmp edi, ebx
je 0x40320f
mov eax, dword [0x41703c]
mov ecx, eax
sub ecx, dword [0x40afa8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x4031ee
jmp 0x4030f4
or eax, 0xffffffff
jmp 0x403207
push 0xfffffffffffffffe
jmp 0x403211
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 1
call fcn.00402c25
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x403207
Function at 0x405477
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422490], 0x44
push eax
xor eax, eax
push 0x422490
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x4054b2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405558
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040580e
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40558c
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f08], eax
jmp 0x405725
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4055aa
test eax, eax
je 0x4056d0
test byte [ebp + 0xc], 2
je 0x4056d0
mov esi, 0x421490
push edi
push esi
call fcn.00405c42
test ebx, ebx
je 0x4055c7
push str..
push esi
call fcn.00405c65
jmp 0x4055cd
push edi
call fcn.00405772
cmp byte [edi], 0
jne 0x4055db
cmp byte [0x421490], 0x5c
jne 0x4055e6
push 0x409010
push edi
call fcn.00405c65
push edi
call fcn.00405c58
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4056c6
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405756
cmp byte [eax], 0
je 0x40562c
cmp byte [ebp - 0x18], 0
je 0x40562c
lea esi, [ebp - 0x18]
mov al, byte [esi]
cmp al, 0x2e
jne 0x405647
cmp byte [esi + 1], 0
je 0x4056a5
cmp al, al
jne 0x405647
cmp byte [esi + 1], al
jne 0x405647
cmp byte [esi + 2], 0
je 0x4056a5
push esi
push ebx
call fcn.00405c42
test byte [ebp - 0x148], 0x10
je 0x40566c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4056a5
push dword [ebp + 0xc]
push edi
call fcn.00405558
jmp 0x4056a5
push edi
call fcn.004058f8
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x40569d
test byte [ebp + 0xc], 4
je 0x405695
push edi
push 0xfffffffffffffff1
call fcn.00404fab
push 0
push edi
call fcn.0040598f
jmp 0x4056a5
inc dword [0x423f08]
jmp 0x4056a5
push edi
push 0xfffffffffffffff2
call fcn.00404fab
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40560a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp - 4], 0
je 0x4056d0
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405725
cmp dword [ebp - 8], esi
jne 0x4056e5
inc dword [0x423f08]
jmp 0x405725
push edi
call fcn.00405f67
test eax, eax
je 0x405725
push edi
call fcn.0040572b
push edi
call fcn.004058f8
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x40571d
test byte [ebp + 0xc], 4
je 0x4056dd
push edi
push 0xfffffffffffffff1
call fcn.00404fab
push esi
push edi
call fcn.0040598f
jmp 0x405725
push edi
push 0xffffffffffffffe5
call fcn.00404fab
pop edi
pop esi
leave
ret 8
Function at 0x40580e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421890
push esi
call fcn.00405c42
push esi
call fcn.004057bf
mov edi, eax
test edi, edi
jne 0x40582f
xor eax, eax
jmp 0x405881
push edi
call fcn.00405ece
test byte [0x423e98], 0x80
je 0x405848
mov al, byte [edi]
test al, al
je 0x40582b
cmp al, 0x5c
je 0x40582b
sub edi, esi
push esi
call fcn.00405c58
cmp eax, edi
push esi
jle 0x40586b
call fcn.00405f67
test eax, eax
je 0x405863
test byte [eax], 0x10
je 0x40582b
push esi
call fcn.00405772
jmp 0x40584a
call fcn.0040572b
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4058f8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405914
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
ret 4

Function at 0x405917
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
ret 0xc

Function at 0x405946
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
jne 0x40598b
mov eax, edi
dec edi
test eax, eax
jne 0x405951
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405985
Function at 0x40598f
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405f8e
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4059b3
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405aec
mov ebx, dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
mov dword [0x422618], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422618
je 0x4059f7
push 1
push 0
push esi
call fcn.00405917
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405af2
cmp eax, edi
jg 0x405af2
mov esi, 0x422090
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405af2
cmp eax, edi
jg 0x405af2
push esi
push ebp
push str._s_s_r_n
push 0x421c90
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423e90]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405c76
push 4
push 0xc0000000
push esi
call fcn.00405917
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405aec
push 0
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405ae5
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x405ae5
cmp edi, dword [esp + 0x18]
jne 0x405ae5
push str._Rename__r_n
push esi
call fcn.00405886
test eax, eax
jne 0x405af9
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405c42
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421c90
push eax
call fcn.004058d2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc dword [0x423f10]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409348
push eax
call fcn.00405886
test eax, eax
je 0x405ab0
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405b20
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405b15
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405ab2
Function at 0x40c393
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 0x40c430
push ebx
push esi
call fcn.0040c35c
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.0040c2f0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c3dd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c42f
push edi
push eax
call fcn.0040cfb0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c3fd
call fcn.0040ae51
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c42e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c2f0
add esp, 0x20
test eax, eax
jne 0x40c41c
push edi
call fcn.0040ae51
jmp 0x40c424
push ebx
call fcn.0040ae51
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 0x40d72d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46a130
push 0x46a128
push str.FlsAlloc
push 0x1f
call fcn.0040d5ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d761
push dword [ebp + 8]
mov ecx, esi
call dword [0x42114c]
call esi
jmp 0x40d767
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d7ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46a140
push 0x46a138
push str.FlsGetValue
push 0x21
call fcn.0040d5ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d7e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42114c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d7ea
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46a148
push 0x46a140
push str.FlsSetValue
push 0x22
call fcn.0040d5ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d824
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42114c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x414dda
Capabilities:
Encode data using xor

Disassembly:
xor dword [eax], esi
mov ebx, ebx
sub ebx, 0x5481c79e
or ecx, ecx
add eax, 4
add ecx, 0x1dc622bc
inc ecx
cmp eax, edi
jne fcn.00414dda
and edx, edx
ret
Function at 0x10001df8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, 0x100bc7cc
mov esi, edx
push ebx
mov edi, ecx
call fcn.10006fa1
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push ebx
call fcn.10006f28
xor ebx, ebx
mov dword [ebp - 0x10], 1
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 8], ebx
mov byte [ebp - 1], bl
jb 0x10001e32
mov esi, dword [esi]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001eda
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0x10
jb 0x10001e59
mov eax, dword [esi]
jmp 0x10001e5b
mov eax, esi
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 1]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, 0xea
jne 0x10001ed5
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.10075c0e
cmp dword [esi + 0x14], 0x10
mov edi, eax
pop ecx
jb 0x10001e94
mov esi, dword [esi]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 8]
push edi
mov byte [edi + eax], 0
call fcn.10006fa1
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push edi
call fcn.10006f28
push edi
call fcn.1008a91f
pop ecx
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x10001ed5
mov al, 1
jmp 0x10001edc
push dword [ebp - 0xc]
call ebx
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100023cf
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Get file attributes
Read file on windows

Disassembly:
push 0x14c
mov eax, 0x100ac2a6
call fcn.10091010
mov dword [ebp - 0x158], edx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x134]
push eax
mov dword [ebp - 0x150], eax
xor edi, edi
xor esi, esi
xor bl, bl
call fcn.10006fbe
xor eax, eax
mov dword [ebp - 4], eax
push 0x103
push eax
mov byte [ebp - 0x11c], al
lea eax, [ebp - 0x11b]
push eax
call fcn.10090560
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x11c]
push eax
push esi
push 0x100bc444
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
inc eax
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x1000249f
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000249f
lea eax, [ebp - 0x11c]
push eax
call fcn.10006fa1
pop ecx
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x134]
call fcn.10006f28
and dword [ebp - 0x154], 0
lea eax, [ebp - 0x134]
cmp dword [ebp - 0x120], 0x10
push 0x100bc448
cmovae eax, dword [ebp - 0x134]
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.1008ada2
add esp, 0xc
test eax, eax
jne 0x10002557
push dword [ebp - 0x154]
call fcn.1008ade7
pop ecx
push eax
call fcn.1008ae0b
pop ecx
mov esi, eax
mov dword [ebp - 0x150], 0x1400
lea eax, [ebp - 0x150]
push eax
push eax
push 0x100bc44c
push 0x100bc294
call fcn.10041280
mov ecx, eax
call fcn.100412d7
mov eax, dword [ebp - 0x150]
shl eax, 0xa
cmp esi, eax
jbe 0x10002528
xor bl, bl
jmp 0x100025d9
test esi, esi
je 0x10002549
push esi
call fcn.10075c0e
pop ecx
push dword [ebp - 0x154]
mov edi, eax
push esi
push 1
push edi
call fcn.1008b0e9
add esp, 0x10
mov esi, eax
push dword [ebp - 0x154]
call fcn.1008b201
pop ecx
jmp 0x10002599
push dword [ebp - 0x150]
lea eax, [ebp - 0x14c]
push 0
push 0x100bc45c
push eax
call fcn.1004de18
add esp, 0x10
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.10045657
pop ecx
mov ecx, eax
call fcn.10044e24
push 0
push 1
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0
call fcn.100072c0
test edi, edi
je 0x100025c5
test esi, esi
je 0x100025c5
call fcn.10045657
push esi
push edi
push dword [ebp - 0x158]
mov ecx, eax
push 0x100bc4c0
call fcn.10044d61
test al, al
movzx ebx, bl
push 1
pop eax
cmovne ebx, eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call fcn.1008a91f
pop ecx
xor eax, eax
lea ecx, [ebp - 0x134]
push 0
inc eax
push eax
call fcn.100072c0
mov al, bl
call fcn.10090fbf
ret
Function at 0x10002a83
Capabilities:
Get common file path

Disassembly:
push 0x17c
mov eax, 0x100ac390
call fcn.10091010
push 0xf
xor ebx, ebx
pop edi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
push 0x103
lea eax, [ebp - 0x11b]
mov dword [ebp - 4], ebx
push ebx
push eax
mov byte [ebp - 0x11c], bl
call fcn.10090560
add esp, 0xc
lea eax, [ebp - 0x11c]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
js 0x10002ca8
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x17c]
call fcn.10006fbe
mov esi, 0x100bc58c
mov byte [ebp - 4], 1
push esi
call fcn.10006fa1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x17c]
call fcn.10006a1b
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x180], ebx
push 0x100bc7cc
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 2
call fcn.10006fbe
lea eax, [ebp - 0x164]
mov byte [ebp - 4], 3
push 1
push eax
lea edx, [ebp - 0x17c]
lea ecx, [ebp - 0x188]
call fcn.1004bc31
pop ecx
pop ecx
mov ebx, eax
mov byte [ebp - 4], 2
push 0
neg ebx
lea ecx, [ebp - 0x164]
push 1
sbb bl, bl
call fcn.100072c0
inc bl
je 0x10002b8d
push 0x100bc5a0
push ecx
call fcn.10045657
pop ecx
push eax
call fcn.100448e6
pop ecx
pop ecx
xor bl, bl
jmp 0x10002c8e
xor ebx, ebx
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x188]
cmp esi, dword [ebp - 0x184]
je 0x10002c39
lea edx, [ebp - 0x14c]
mov ecx, esi
call fcn.1004be5a
cmp dword [ebp - 0x138], 0x10
lea eax, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x14c]
push eax
call fcn.1008b28c
pop ecx
test eax, eax
jle 0x10002c1f
push 0x100bc120
lea edx, [ebp - 0x14c]
lea ecx, [ebp - 0x164]
call fcn.10004d50
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 5
call fcn.10006abd
push ebx
push 1
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 4
call fcn.100072c0
add esi, 0x18
cmp esi, dword [ebp - 0x184]
jne 0x10002bb7
cmp dword [ebp - 0x120], 0x10
mov esi, dword [ebp - 0x134]
jae 0x10002c3f
lea esi, [ebp - 0x134]
call fcn.10045657
push dword [ebp - 0x124]
mov ecx, eax
push esi
push 0x100bc7cc
push 0x100bc5c4
call fcn.10044d61
movzx eax, al
mov dword [0x100e01e4], eax
call fcn.10045657
push dword [0x100e01e4]
push 0x100bc5cc
push eax
call fcn.100448e6
add esp, 0xc
lea ecx, [ebp - 0x14c]
mov bl, 1
push 0
push 1
call fcn.100072c0
lea ecx, [ebp - 0x188]
call fcn.10006bf5
push 0
push 1
lea ecx, [ebp - 0x17c]
call fcn.100072c0
push 0
push 1
lea ecx, [ebp - 0x134]
call fcn.100072c0
mov al, bl
call fcn.10090fbf
ret
Function at 0x10002e4d
Capabilities:
Check for time delay via gettickcount
Print debug messages
Terminate process

Disassembly:
push 0xe4
mov eax, 0x100ac429
call fcn.10091010
mov esi, ecx
push 0xffffffffffffffff
push ecx
call fcn.10045657
pop ecx
mov ecx, eax
call fcn.10045545
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x100e081c]
lea ecx, [ebp - 0x40]
mov dword [0x100e081c], eax
mov dword [0x100db5d4], esi
call fcn.1004dc06
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
push ecx
mov dword [ebp - 4], ebx
call fcn.10045657
pop ecx
mov ecx, eax
call fcn.10044e24
push 0xffffffffffffffff
push ecx
call fcn.10045657
pop ecx
mov ecx, eax
call fcn.10045545
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.1004d953
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x10002eca
mov eax, dword [eax]
push eax
push esi
push 0x100bc618
push ecx
call fcn.10045657
pop ecx
push eax
call fcn.100448e6
add esp, 0x10
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.100072c0
push 0x100bc638
push ecx
call fcn.10045657
pop ecx
push eax
call fcn.100448e6
pop ecx
pop ecx
push 1
push 3
lea ecx, [ebp - 0xf0]
call fcn.10003257
push 0x100bc680
push ecx
push 0x100bc258
push ecx
push 0x100bc260
push ecx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ecx
push 0x100bc264
push ecx
push 0x27e
push ecx
push 0x100bc268
push ecx
push 0x100bc26c
push ecx
push 0x100bc27c
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ecx
lea eax, [ebp - 0xe0]
push 0x100bc284
push eax
call fcn.10004db9
add esp, 0xc
mov ecx, eax
call fcn.10003157
pop ecx
push eax
call fcn.10004db9
add esp, 0xc
push eax
call fcn.10004db9
add esp, 0xc
push eax
call fcn.10004db9
add esp, 0xc
mov ecx, eax
call fcn.10003057
pop ecx
push eax
call fcn.10004db9
add esp, 0xc
mov ecx, eax
call fcn.10003157
pop ecx
push eax
call fcn.10004db9
add esp, 0xc
push eax
call fcn.10004db9
add esp, 0xc
push eax
call fcn.10004db9
push eax
call fcn.10004f87
add esp, 0xc
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xf0]
push eax
call fcn.100032f9
cmp dword [eax + 0x14], 0x10
jb 0x10002fde
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.100072c0
lea ecx, [ebp - 0xf0]
call fcn.10001dde
push esi
call fcn.1008b746
int3