joyce8/EMBER2024-capa huggingface dataset:
Function at 0x15035580
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x104
mov eax, dword [0x15049cf8]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x108]
lea eax, [esp + 0x10c]
push eax
push ecx
lea edx, [esp + 8]
push 0x100
push edx
call dword [sym.imp.MSVCR80.dll__vsnprintf]
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.1503831e
add esp, 0x104
ret

Function at 0x150356b0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor ebx, ebx
cmp dword [esp + 0x28], ebx
push edi
mov edi, edx
mov ebp, ecx
jne 0x150356cb
mov dword [esp + 0x2c], 0x150415ff
mov ecx, 0x15058e14
call fcn.15021ef0
mov esi, dword [0x15058e10]
cmp esi, ebx
jne 0x15035784
shl esi, 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x15057e18], eax
push 0x10
mov dword [esi + 0x15057e1c], ebx
push str.main
lea eax, [esi + 0x15057e20]
mov dword [esi + 0x15057e14], 1
push eax
mov dword [esi + 0x15057e10], ebx
call sym.Storm.dll_Ordinal_501
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov esi, 1
add dword [0x15058e10], esi
push 8
mov dword [esp + 0x1c], 8
call sym.Storm.dll_Ordinal_303
test eax, eax
je 0x15035784
mov eax, dword [0x15058e10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
shl eax, 5
mov dword [eax + 0x15057e18], ecx
mov dword [eax + 0x15057e1c], edx
mov dword [eax + 0x15057e14], esi
push 0x10
mov dword [eax + 0x15057e10], ebx
push str.CdThreadProc
lea eax, [eax + 0x15057e20]
push eax
call sym.Storm.dll_Ordinal_501
add dword [0x15058e10], esi
mov ecx, dword [0x15058e18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 8
push 0xd4
push 0x15043fa0
push 0x10
call sym.Storm.dll_Ordinal_401
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov esi, eax
mov dword [esi], edi
mov edi, dword [esp + 0x28]
push edi
mov eax, ebx
or eax, 4
push eax
push esi
push 0x15035610
push ebp
push 0
mov dword [esi + 4], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [edi]
mov ebp, eax
mov dword [esi + 8], ecx
mov ecx, 0x15058e14
mov dword [esi + 0xc], ebp
call fcn.15021ef0
mov edx, dword [esi + 8]
mov eax, dword [0x15058e10]
shl eax, 5
mov dword [eax + 0x15057e18], edx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x15057e1c], ecx
mov ecx, dword [esp + 0x2c]
mov edx, ebx
mov esi, 1
shr edx, 2
and edx, esi
test ecx, ecx
mov dword [eax + 0x15057e14], esi
mov dword [eax + 0x15057e10], edx
je 0x1503582a
push 0x10
push ecx
lea eax, [eax + 0x15057e20]
push eax
call sym.Storm.dll_Ordinal_501
mov ecx, dword [0x15058e18]
add dword [0x15058e10], esi
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, 4
jne 0x15035849
push ebp
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x15037c40
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test al, 1
mov ebp, edx
mov dword [esp + 0xc], ebp
je 0x15037c5e
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 8
shr eax, 2
not eax
test al, 1
jne 0x15037c54
mov eax, dword [esi]
cmp dword [eax + 0x128], 0
mov ecx, dword [eax + 0x18]
push ebx
push edi
mov edi, dword [ecx + 8]
mov dword [esp + 0x10], edi
jne 0x15037cea
mov edx, dword [eax + 0x11c]
add edx, dword [esi + 8]
push 0
push edx
push edi
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x15037df7
mov ebx, dword [esp + 0x1c]
push edi
push ebx
push 1
push ebp
call dword [sym.imp.MSVCR80.dll_fread]
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x15037cca
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCR80.dll_ferror]
add esp, 4
test eax, eax
jne 0x15037df7
mov eax, dword [esp + 0x20]
add dword [esi + 8], edi
test eax, eax
je 0x15037e2a
mov dword [eax], edi
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 8
ret 8
mov ebx, dword [esi + 8]
sub ebx, dword [esi + 0x10]
mov dword [esi + 0x20], ebp
mov ebp, dword [esp + 0x1c]
mov dword [esi + 0x24], ebp
je 0x15037d03
cmp ebx, ebp
jae 0x15037d03
mov dword [esi + 0x24], ebx
mov ecx, dword [eax + 0x11c]
add ecx, dword [esi + 0xc]
push 0
push ecx
push edi
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x15037df7
cmp dword [esi + 0x24], eax
je 0x15037e18
lea ebx, [ebx]
cmp dword [esi + 0x18], 0
jne 0x15037d7c
test byte [esi + 4], 2
je 0x15037d7c
mov edx, dword [esi]
lea eax, [esi + 0x4c]
mov dword [esi + 0x14], eax
mov edi, dword [edx + 0x120]
sub edi, dword [esi + 0xc]
cmp edi, 0x1000
jbe 0x15037d5c
mov edi, 0x1000
jmp 0x15037d60
test edi, edi
je 0x15037dd6
mov ecx, dword [esp + 0x10]
push ecx
push edi
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, edi
mov dword [esi + 0x18], eax
jne 0x15037df7
add dword [esi + 0xc], eax
mov edi, dword [esi + 0x24]
lea ecx, [esi + 0x14]
mov edx, 2
call fcn.1503ba50
test eax, eax
je 0x15037d95
cmp eax, 1
jne 0x15037df7
sub edi, dword [esi + 0x24]
add dword [esi + 0x10], edi
test ebx, ebx
je 0x15037db5
sub ebx, edi
mov edx, dword [esp + 0x14]
mov dword [esi + 0x20], edx
je 0x15037db0
cmp ebx, ebp
mov ecx, ebx
jb 0x15037db2
mov ecx, ebp
mov dword [esi + 0x24], ecx
cmp eax, 1
je 0x15037e08
cmp dword [esi + 0x24], 0
je 0x15037dc6
or dword [esi + 4], 2
jmp 0x15037dca
and dword [esi + 4], 0xfffffffd
cmp dword [esi + 0x24], 0
jne 0x15037d30
jmp 0x15037e18
sub ebp, dword [esi + 0x24]
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov eax, ebp
je 0x15037de5
mov dword [ecx], eax
pop edi
xor ecx, ecx
cmp ecx, eax
pop ebx
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 8
ret 8
mov ecx, esi
call fcn.15037aa0
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret 8
and dword [esi + 4], 0xfffffffd
lea ecx, [esi + 0x14]
call fcn.1503b880
and dword [esi + 4], 0xfffffffb
sub ebp, dword [esi + 0x24]
mov ecx, dword [esp + 0x20]
mov eax, ebp
add dword [esi + 8], eax
test ecx, ecx
je 0x15037e2a
mov dword [ecx], eax
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 8
ret 8
Function at 0x1503831e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x15049cf8]
jne 0x15038328
repz ret
jmp fcn.15038c3f
Function at 0x1503aca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx + 0x24]
push esi
push edi
mov dword [esp + 0x14], eax
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub edx, ecx
sub edx, esi
jne 0x1503acce
test ecx, ecx
jne 0x1503acdd
test esi, esi
jne 0x1503acdd
mov edx, eax
jmp 0x1503ad5a
cmp edx, 0xffffffff
jne 0x1503acdd
mov edx, 0xfffffffe
jmp 0x1503ad5a
mov esi, dword [ebx + 0x24]
lea esi, [eax + esi - 0x106]
cmp ecx, esi
jb 0x1503ad5a
mov edi, dword [ebx + 0x30]
mov ecx, eax
mov ebp, ecx
shr ecx, 2
lea esi, [edi + eax]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x68]
mov esi, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x54]
sub edi, eax
sub esi, eax
sub ecx, eax
mov dword [ebx + 0x68], edi
mov edi, dword [ebx + 0x44]
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x64], esi
lea esi, [ecx + edi*2]
movzx ecx, word [esi - 2]
sub esi, 2
cmp ecx, eax
jb 0x1503ad31
sub ecx, eax
jmp 0x1503ad33
xor ecx, ecx
dec edi
mov word [esi], cx
jne 0x1503ad22
mov ecx, dword [ebx + 0x38]
mov edi, eax
lea esi, [ecx + eax*2]
movzx ecx, word [esi - 2]
sub esi, 2
cmp ecx, eax
jb 0x1503ad50
sub ecx, eax
jmp 0x1503ad52
xor ecx, ecx
dec edi
mov word [esi], cx
jne 0x1503ad41
add edx, eax
mov ebp, dword [ebx]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x1503ae1c
mov esi, dword [ebx + 0x64]
mov edi, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
add edi, esi
add edi, ecx
mov ecx, dword [ebp + 4]
mov esi, ecx
cmp esi, edx
mov dword [esp + 0x10], esi
jbe 0x1503ad87
mov dword [esp + 0x10], edx
mov esi, edx
test esi, esi
jne 0x1503ad8f
xor ecx, ecx
jmp 0x1503add8
mov edx, dword [ebp + 0x1c]
sub ecx, esi
mov dword [ebp + 4], ecx
mov ecx, dword [edx + 0x18]
test ecx, ecx
jne 0x1503adb1
mov edx, dword [ebp]
mov ecx, dword [ebp + 0x30]
push esi
call fcn.1503d870
mov dword [ebp + 0x30], eax
mov eax, dword [esp + 0x14]
mov ecx, esi
mov esi, dword [ebp]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [ebp]
mov edx, dword [ebp + 8]
add esi, ecx
add edx, ecx
mov dword [ebp], esi
mov dword [ebp + 8], edx
mov edx, dword [ebx + 0x6c]
add edx, ecx
mov edi, edx
cmp edi, 3
mov dword [ebx + 0x6c], edx
jb 0x1503ae07
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
lea esi, [ecx + edx]
movzx edx, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], edx
shl edx, cl
movzx ecx, byte [esi + 1]
xor edx, ecx
and edx, dword [ebx + 0x4c]
mov dword [ebx + 0x40], edx
cmp edi, 0x106
jae 0x1503ae1c
mov edx, dword [ebx]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x1503acb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x401fd0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 0xffffffff
je 0x402000
test al, 0x10
jne 0x402018
test al, 1
je 0x401ff9
and al, 0xfe
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00484770
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402015
pop edi
pop esi
pop ebx
ret
push esi
call edi
mov ecx, dword [esp + 0x14]
mov edx, ecx
or edx, 0x10
cmp eax, edx
je 0x402029
push ecx
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x406690
Capabilities:
Get session user name

Disassembly:
sub esp, 0xcc
xor eax, eax
push ebx
mov ebx, dword [esp + 0xd8]
push ebp
mov ebp, dword [esp + 0xd8]
lea ecx, [ebx + ebx]
push esi
mov edx, ecx
push edi
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.0047fdb0
test eax, eax
je 0x406756
push 0x41
push 0
push 1
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov esi, eax
test esi, esi
jne 0x4066ec
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push 0x4067f0
push esi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
lea ecx, [esp + 0x14]
push ecx
call fcn.00453b6c
add esp, 4
cmp eax, ebx
jb 0x406738
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret
lea edx, [esp + 0x14]
push edx
push ebp
call fcn.00453b47
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, eax
test esi, esi
je 0x4067c6
lea edx, [esp + 0x14]
push edx
call fcn.00453b6c
add esp, 4
cmp eax, ebx
jb 0x4067a8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.00453b47
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x4067d8
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
Function at 0x407870
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x660
push ebx
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x4079f5
push esi
call fcn.00453b6c
add esp, 4
test eax, eax
je 0x4079f5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4079f5
test bl, 1
je 0x4078bd
and ebx, 0xfffffffe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x4079e4
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bp
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x46c]
push eax
call fcn.00453b47
lea ecx, [esp + 0x470]
push 0x63470c
push ecx
call fcn.00453b1d
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x10], ebp
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x468]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4079d2
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x3c]
push 0x634758
push ecx
call ebp
test eax, eax
je 0x4079b7
lea edx, [esp + 0x3c]
push 0x634754
push edx
call ebp
test eax, eax
je 0x4079b7
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x262]
mov word [esp + 0x260], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x260]
push esi
push eax
call fcn.00453b47
lea ecx, [esp + 0x268]
push 0x63461c
push ecx
call fcn.00453b1d
lea edx, [esp + 0x4c]
lea eax, [esp + 0x270]
push edx
push eax
call fcn.00453b1d
lea ecx, [esp + 0x278]
push ecx
call fcn.00407870
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407939
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x660
ret
Function at 0x407a10
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x664
push ebx
push esi
mov esi, dword [esp + 0x670]
xor ebx, ebx
cmp esi, ebx
je 0x407bb6
push esi
call fcn.00453b6c
add esp, 4
test eax, eax
je 0x407bb6
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x18]
push ebx
push eax
push esi
mov dword [esp + 0x24], ebx
call fcn.004050f0
add esp, 0x1c
test eax, eax
je 0x407bb6
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x407bb6
test al, 1
je 0x407a7c
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x407ba6
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bx
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push ecx
stosw word es:[edi], ax
call fcn.00453b47
lea edx, [esp + 0x470]
push 0x63470c
push edx
call fcn.00453b1d
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x22c]
mov dword [esp + 0x228], ebx
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x218]
lea ecx, [esp + 0x468]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407b95
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x634758
push edx
call ebp
test eax, eax
je 0x407b76
lea eax, [esp + 0x248]
push 0x634754
push eax
call ebp
test eax, eax
je 0x407b76
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push esi
push ecx
stosw word es:[edi], ax
call fcn.00453b47
lea edx, [esp + 0x1c]
push 0x63461c
push edx
call fcn.00453b1d
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00453b1d
lea edx, [esp + 0x2c]
push edx
call fcn.00407a10
add esp, 0x1c
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407b01
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebx
add esp, 0x664
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x664
ret
Function at 0x407c20
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x404
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebp
mov ebp, dword [esp + 0x414]
push esi
push edi
push ebp
call ebx
cmp eax, 0xffffffff
jne 0x407c61
mov eax, dword [esp + 0x420]
mov ecx, dword [esp + 0x418]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
test al, 1
je 0x407c77
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x407cf5
xor esi, esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebp
lea edx, [esp + 0x1c]
push str._s.bak_08X
push edx
call fcn.00454759
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call ebx
cmp eax, 0xffffffff
je 0x407ce9
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
push ebp
lea ecx, [esp + 0x1c]
push str._s.bak_08X
push ecx
call fcn.00454759
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call ebx
inc esi
cmp esi, 0xa
jge 0x407d17
cmp eax, 0xffffffff
jne 0x407cb9
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x420]
mov edx, dword [esp + 0x418]
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
Function at 0x407f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d4662
push eax
mov dword fs:[0], esp
sub esp, 0x268
push esi
mov esi, dword [esp + 0x27c]
push edi
xor edi, edi
cmp esi, edi
je 0x408168
push esi
call fcn.00453b6c
add esp, 4
test eax, eax
je 0x408168
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408168
test al, 0x10
je 0x408168
push ebx
push esi
lea ecx, [esp + 0x10]
call fcn.005bbaf7
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], edi
call fcn.005b8866
mov dword [esp + 0x24], edi
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x63470c
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.005bbd28
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.005bba83
cmp edi, 0xffffffff
mov ebx, 1
je 0x40813a
mov esi, dword [esp + 0x288]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x54]
push 0x634758
push eax
call ebp
test eax, eax
je 0x40811e
lea ecx, [esp + 0x54]
push 0x634754
push ecx
call ebp
test eax, eax
je 0x40811e
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
call fcn.005bbaf7
mov al, byte [esp + 0x28]
mov byte [esp + 0x280], bl
test al, 0x10
push 0x63461c
je 0x4080b1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.005bbd28
lea edx, [esp + 0x14]
mov byte [esp + 0x280], 2
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.005bbcc2
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x288], 3
call fcn.00407f40
add esp, 8
lea ecx, [esp + 0x24]
mov byte [esp + 0x280], 2
call fcn.005bba83
mov byte [esp + 0x280], bl
lea ecx, [esp + 0x18]
jmp 0x408108
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.005bbd28
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x28c], 4
call fcn.005bbcc2
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x288], 5
call fcn.005ba17a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], 4
call fcn.005bba83
mov byte [esp + 0x280], bl
lea ecx, [esp + 0x20]
call fcn.005bba83
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 0
call fcn.005bba83
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40800e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x27c], 0xffffffff
call fcn.005bba83
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
add esp, 0x274
ret
mov ecx, dword [esp + 0x270]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x274
ret
Function at 0x408190
Capabilities:
Get graphical window text

Disassembly:
call fcn.0047fe00
test eax, eax
je 0x4081af
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x408230
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x408230
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.005bc14c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x408230
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x408230
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.004045a0
add esp, 0x10
test eax, eax
je 0x408230
push esi
call fcn.00453b6c
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x408560
Capabilities:
Check mutex on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x208
test edx, edx
jne 0x408577
xor eax, eax
add esp, 0x208
ret
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push edx
call fcn.00404cb0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
pop edi
jne 0x4085cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 5
sete dl
mov eax, edx
add esp, 0x208
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x208
ret
Function at 0x408f60
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
je 0x408fd9
mov esi, dword [esp + 0x10]
test esi, esi
je 0x408fd9
mov eax, dword [0x65ed48]
push ebp
mov ebp, dword [esi]
push edi
test eax, eax
jne 0x408faa
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408fa1
push str.GetComputerNameExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x65ed48], eax
jmp 0x408fa6
mov eax, dword [0x65ed48]
test eax, eax
je 0x408fc6
mov ecx, dword [esp + 0x1c]
push esi
push ebx
push ecx
call eax
mov edi, eax
test edi, edi
je 0x408fc6
push ebx
call fcn.00453b6c
add esp, 4
test eax, eax
jne 0x408fd2
push esi
push ebx
mov dword [esi], ebp
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edi, eax
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
ret
pop esi
xor eax, eax
pop ebx
ret

Function at 0x409600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d4718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
xor edi, edi
call fcn.005ba41a
lea eax, [esp + 8]
mov ecx, esi
push eax
mov dword [esp + 0x28], edi
call fcn.0040a000
test eax, eax
je 0x409674
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00490ac0
lea ecx, [esp + 8]
mov esi, 1
mov dword [esp + 0x24], 0xffffffff
call fcn.005ba44d
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.005ba44d
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4