joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403900
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x244
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0x4245a4
push eax
push 0x425304
push ecx
call fcn.00406ba7
lea ebx, [esp + eax + 0x20]
mov edi, 0x425300
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x114]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
mov eax, dword [esp + 0x258]
xor edx, edx
cmp ebp, 0xffffffff
setne dl
push 0x5c
push eax
mov esi, edx
call fcn.00406c00
add esp, 8
cmp esi, 1
jne 0x403a28
test eax, eax
je 0x403a28
lea edi, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov al, byte [esp + 0x114]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test al, 0x10
rep movsb byte es:[edi], byte [esi]
je 0x4039dd
cmp byte [esp + 0x140], 0x2e
jne 0x4039ce
mov esi, 1
jmp 0x4039ef
lea eax, [esp + 0x10]
push eax
call fcn.00403900
add esp, 4
jmp 0x4039e8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
cmp esi, 1
jne 0x403a03
lea edx, [esp + 0x114]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x40398e
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 1
jne 0x403a28
mov eax, dword [esp + 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret
Function at 0x404980
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x429d64]
push esi
push edi
mov esi, 1
xor edi, edi
cmp eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x104
jne 0x4049b9
push 0
push 0x14
call fcn.004048b0
mov eax, dword [0x429d64]
add esp, 8
cmp eax, esi
je 0x4049a4
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x234]
push eax
push 0x4245a4
push ecx
lea edx, [esp + 0x124]
push 0x424ab8
push edx
mov dword [0x429d64], esi
call fcn.00406ba7
add esp, 0x14
lea eax, [esp + 8]
lea ecx, [esp + 0x118]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404a74
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x228]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404a36
mov edi, esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x404a74
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x404a74
mov edx, dword [esp + 0x230]
mov edi, dword [esp + 0x22c]
lea eax, [esp + 0x14]
push edx
push eax
push edi
call fcn.004047b0
add esp, 0xc
jmp 0x404aa4
mov eax, dword [esp + 0x228]
test eax, eax
je 0x404a9a
mov ecx, dword [esp + 0x230]
mov edi, dword [esp + 0x22c]
push ecx
push eax
push edi
call fcn.004047b0
add esp, 0xc
jmp 0x404aa4
mov edi, dword [esp + 0x22c]
mov byte [edi], 0
or ecx, 0xffffffff
xor eax, eax
mov dword [0x429d64], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, ecx
pop esi
add esp, 0x214
Function at 0x404ad0
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
mov eax, dword [0x429d64]
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov edi, 1
xor ebp, ebp
cmp eax, edi
jne 0x404aff
push 0
push 0x14
call fcn.004048b0
mov eax, dword [0x429d64]
add esp, 8
cmp eax, edi
je 0x404aea
mov ebx, dword [esp + 0x228]
mov dword [0x429d64], edi
test ebx, ebx
jne 0x404b73
mov edi, dword [esp + 0x230]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404c5f
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x404c4f
mov esi, dword [esp + 0x22c]
test esi, esi
jne 0x404be3
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x230]
push eax
push 0x4245a4
push ecx
lea edx, [esp + 0x24]
push 0x424ab8
push edx
call fcn.00406ba7
add esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0xf003f
push esi
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404c5f
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, edi
jmp 0x404c5f
mov ecx, dword [esp + 0x224]
mov edx, dword [esp + 0x230]
push ecx
push 0x4245a4
push edx
lea eax, [esp + 0x24]
push 0x424ab8
push eax
call fcn.00406ba7
add esp, 0x14
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404c5f
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push esi
push 1
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, 1
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword [0x429d64], 0
pop ebx
add esp, 0x210
ret
Function at 0x404fc0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 0
push esi
push edi
push eax
mov ebx, 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x404ff5
push edi
push esi
call fcn.00404750
add esp, 8
test eax, eax
jne 0x404ff5
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x405240
Capabilities:
Create directory

Disassembly:
sub esp, 0x40
xor eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 7
mov esi, str.Unable_to_read_write_access
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 8
lea edi, [esp + 0x2d]
rep stosd dword es:[edi], eax
xor ebx, ebx
stosw word es:[edi], ax
push ebx
push str.C:32bw
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push str.C:32bw
call fcn.004146d2
add esp, 8
test eax, eax
jne 0x4052c5
mov edi, str.C:32bw
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x54]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov dword [0x429d5c], 0x3e9
pop ebx
add esp, 0x40
ret 8
mov edi, str.C:32bw
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [0x429d5c], eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40531a
cmp dword [esp + 0x58], 1
jne 0x40531a
push 0x40
lea ecx, [esp + 0x14]
push 0x424590
push ecx
mov ecx, ebp
call fcn.00417275
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x40
ret 8
Function at 0x406b68
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 0x406b93
test byte [esp + 8], 0x80
je 0x406b82
and al, 0xfe
jmp 0x406b84
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x406ba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040969c
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x40d40d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x426890
cmp edx, dword [eax]
je 0x40d42f
add eax, 8
inc ecx
cmp eax, 0x426920
jl 0x40d420
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x426890]
jne 0x40d55d
mov eax, dword [0x42c05c]
cmp eax, 1
je 0x40d537
test eax, eax
jne 0x40d460
cmp dword [0x425d24], 1
je 0x40d537
cmp edx, 0xfc
je 0x40d55d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d497
lea eax, [ebp - 0x1a4]
push 0x42070c
push eax
call fcn.0040b5a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408e90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d4da
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408e90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x420708
push edi
call fcn.0040f0a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4206ec
push eax
call fcn.0040b5a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b5b0
lea eax, [ebp - 0xa0]
push 0x4206e8
push eax
call fcn.0040b5b0
push dword [esi + 0x426894]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b5b0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4206c0
push eax
call fcn.0040fab6
add esp, 0x2c
pop edi
jmp 0x40d55d
lea eax, [ebp + 8]
lea esi, [esi + 0x426894]
push 0
push eax
push dword [esi]
call fcn.00408e90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x414030
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00407da0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4140fb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4140fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4140ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4140b9
or bh, 8
and edi, 0x8000000
je 0x4140d4
mov eax, dword [0x42d7fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4140fb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4144d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4144fb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41451f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41453a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4146d2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4146f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040969c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x414715
test byte [esp + 8], 2
je 0x414715
call fcn.0040970f
mov dword [eax], 0xd
call fcn.00409718
mov dword [eax], 5
jmp 0x4146ee
xor eax, eax
ret
Function at 0x417c3e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x417c80
call fcn.0041b4b6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x417c80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x417c77
xor eax, eax
jmp 0x417c88
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00417c8e
pop edi
pop esi
pop ebx
ret 4

Function at 0x41c319
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41c347
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41c365
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041c27f
jmp 0x41c365
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41c365
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041c27f
test edi, edi
mov eax, edi
jne 0x41c34f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x16024e0
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7c8e673a
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x409350
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x423004]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x409395
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040a80c
add esp, 0x20c
ret
cmp word [esi], 0
mov ecx, dword [esp + 0x214]
je 0x4093ac
add esi, 2
dec ecx
cmp word [esi], 0
jne 0x4093a2
cmp word [esp + 4], 0
je 0x4093d7
lea edx, [esp + 4]
sub edx, esi
nop word [eax + eax]
cmp ecx, 1
jb 0x4093f4
mov ax, word [edx + esi]
dec ecx
mov word [esi], ax
add esi, 2
cmp word [edx + esi], 0
jne 0x4093c0
mov ecx, dword [esp + 0x20c]
xor eax, eax
mov word [esi], ax
mov al, 1
pop esi
xor ecx, esp
call fcn.0040a80c
add esp, 0x20c
ret
call fcn.0040c571
int3
Function at 0x409820
Capabilities:
Terminate process

Disassembly:
push ecx
call fcn.0040ca3b
add esp, 4
push 2
call fcn.0040c55b
int3

Function at 0x409860
Capabilities:
Terminate process

Disassembly:
mov ecx, str.Error__couldnt_runtime_expand_target_path.
jmp fcn.00409820

Function at 0x409870
Capabilities:
Terminate process

Disassembly:
mov ecx, str.Error__couldnt_decode_attached_data.
jmp fcn.00409820

Function at 0x409880
Capabilities:
Terminate process

Disassembly:
mov ecx, str.Error__couldnt_find_attached_data_header.
jmp fcn.00409820

Function at 0x409890
Capabilities:
Terminate process

Disassembly:
mov ecx, str.Error__couldnt_read_attached_data.
jmp fcn.00409820

Function at 0x4098a0
Capabilities:
Terminate process

Disassembly:
mov ecx, str.Error__couldnt_allocate_memory.
jmp fcn.00409820

Function at 0x4098b0
Capabilities:
Terminate process

Disassembly:
mov ecx, str.Error__couldnt_launch_child
call fcn.004097d0
push 2
call fcn.0040c55b
int3
jmp 0x409840

Function at 0x4098c0
Capabilities:
Terminate process

Disassembly:
push 0x429c20
push str.Error__failed_to_open__ls_for_writing._n
push 2
call fcn.0040c8d8
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push 2
call fcn.0040c55b
int3

Function at 0x409a50
Capabilities:
Create directory

Disassembly:
mov eax, 0x200c
call fcn.0041aaf0
mov eax, dword [0x423004]
xor eax, esp
mov dword [esp + 0x2004], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4243e0]
mov ebp, ecx
test edi, edi
jne 0x409ab7
push 0x1000
mov edx, str._HOME_
lea ecx, [esp + 0x14]
call fcn.00409400
add esp, 4
test al, al
je 0x409b9a
lea eax, [esp + 0x10]
push eax
call fcn.0040f739
mov edi, dword [0x4243e0]
add esp, 4
mov dword [edi*4 + 0x426400], eax
inc edi
mov dword [0x4243e0], edi
xor esi, esi
test edi, edi
jle 0x409b04
nop dword [eax]
mov eax, dword [esi*4 + 0x426400]
mov ecx, ebp
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x409af6
test dx, dx
je 0x409af2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x409af6
add ecx, 4
add eax, 4
test dx, dx
jne 0x409ad0
xor eax, eax
jmp 0x409afb
sbb eax, eax
or eax, 1
test eax, eax
je 0x409b2b
inc esi
cmp esi, edi
jl 0x409ac0
mov ecx, ebp
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409b10
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x409b2f
cmp word [ebp + 2], 0x3a
jne 0x409b2f
mov al, 1
jmp 0x409b81
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x409b52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409b52
mov bl, 1
jmp 0x409b56
test bl, bl
je 0x409b7f
cmp dword [0x4243e0], 0x400
jge 0x409b7f
push ebp
call fcn.0040f739
mov ecx, dword [0x4243e0]
add esp, 4
mov dword [ecx*4 + 0x426400], eax
inc ecx
mov dword [0x4243e0], ecx
mov al, bl
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a80c
add esp, 0x200c
ret
mov ecx, str._HOME_
call fcn.004098f0
int3
Function at 0x409cb0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
mov eax, dword [0x4243e4]
sub esp, 0x20
test eax, eax
je 0x409ce6
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409cda
push 0
push dword [0x4243e4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x4243e4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4243ed], 0
je 0x409dbb
push ebx
push ebp
push esi
mov eax, 0x414
mov dword [esp + 0xc], 0
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x424400
mov dword [esp + 0x20], 0x420f3c
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x420f3c
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x424400
call ebp
cmp eax, 0xffffffff
je 0x409db7
test al, 0x10
je 0x409db7
push 0x64
call ebx
mov eax, 0x414
mov dword [esp + 0x10], 0
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x424400
mov dword [esp + 0x20], 0x420f3c
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x420f3c
call edi
inc esi
cmp esi, 0x14
jl 0x409d54
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret