joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4696cf
Capabilities:
Encode data using xor
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0xb0
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x6c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x64]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x7c]
xor esi, esi
push 0x40
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x18]
push esi
push eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x40], esi
call fcn.004f42d0
push 0x54
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.004f42d0
mov ebx, dword [ebp + 0x68]
add esp, 0x18
cmp ebx, 0x40
jbe 0x469727
push 0x40
pop ebx
push ebx
lea eax, [ebp + 0x18]
push edi
push eax
call fcn.004f4490
push ebx
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.004f4490
add esp, 0x18
xor eax, eax
xor dword [ebp + eax + 0x18], 0x36363636
xor dword [ebp + eax - 0x3c], 0x5c5c5c5c
add eax, 4
cmp eax, 0x40
jb 0x469742
mov dword [ebp - 0x4c], eax
cmp dword [ebp + 0x74], esi
jne 0x469769
xor eax, eax
jmp 0x46980d
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
lea eax, [ebp - 0x40]
push eax
push esi
push esi
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call ebx
test eax, eax
je 0x4697e9
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x40
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x40]
call edi
test eax, eax
je 0x4697e9
push esi
push dword [ebp + 0x70]
push dword [ebp - 0x54]
push dword [ebp - 0x40]
call edi
test eax, eax
je 0x4697e9
push esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 4]
push eax
push 2
push dword [ebp - 0x40]
mov dword [ebp - 0x4c], 0x14
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4697e9
push dword [ebp - 0x48]
push esi
push esi
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call ebx
test eax, eax
je 0x4697e9
push esi
push 0x54
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x48]
push dword [eax]
call edi
test eax, eax
jne 0x4697f5
mov eax, dword [ebp - 0x44]
mov dword [eax + 4], 0xb
jmp 0x4697fc
mov dword [ebp - 0x50], 1
cmp dword [ebp - 0x40], esi
je 0x46980a
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x58]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f41b5
add ebp, 0x5c
leave
ret 0x1c
Function at 0x47047e
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4704d4
call edi
cmp eax, 0x3f0
je 0x4704bd
xor eax, eax
jmp 0x470536
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4704b9
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x4704f3
call edi
cmp eax, 0x7a
jne 0x470505
push dword [ebp - 0x18]
call fcn.004b6e34
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
cmp edi, ebx
jne 0x470510
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x470533
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push edi
push 2
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
test eax, eax
jne 0x470544
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004b6e29
pop ecx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004f41b5
leave
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x470591
push dword [ebp - 0x14]
call fcn.004b6e29
pop ecx
mov eax, ebx
jmp 0x470535
mov esi, dword [ebp - 0x14]
xor edi, edi
add esi, 4
mov eax, dword [ebp - 0x14]
cmp edi, dword [eax]
jae 0x4705b6
push dword [esi]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
inc edi
add esi, 8
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x470599
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ebx, dword [ebp - 0x20]
jmp 0x470584
Function at 0x47069b
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
push edi
lea eax, [ebp - 0x10]
push eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
push edi
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x4706d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4706d8
xor eax, eax
jmp 0x47072c
push ebx
push dword [ebp - 8]
call fcn.004b6e34
mov ebx, eax
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.004b6e34
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp ebx, edi
je 0x47071b
cmp eax, edi
je 0x470712
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push edi
call esi
test eax, eax
jne 0x47071b
push ebx
call fcn.004b6e29
xor ebx, ebx
pop ecx
cmp dword [ebp - 0xc], edi
je 0x470729
push dword [ebp - 0xc]
call fcn.004b6e29
pop ecx
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x474e0b
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
push esi
push edi
push 0x8001
mov edi, ecx
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x10], eax
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push SysReAllocStringLen
push str.A:_startkey.key
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x474e77
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push SysReAllocStringLen
push str.B:_startkey.key
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x474e77
push dword [esp + 0x10]
call ebx
mov dword [edi + 0x1c], 0x14
jmp 0x474ec1
push 0
lea eax, [esp + 0x18]
push eax
push 0x10
lea eax, [edi + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x474ead
cmp dword [esp + 0x14], 0x10
jne 0x474ead
xor ebp, ebp
inc ebp
push esi
mov dword [edi + 8], ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call ebx
mov eax, ebp
jmp 0x474ec3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call ebx
mov dword [edi + 0x1c], 0x15
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x477561
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x220], ebp
je 0x4775bf
cmp dword [esi + 0x224], ebp
je 0x4775bf
cmp dword [esi + 0x22c], ebp
je 0x4775bf
cmp dword [esi + 0x238], ebp
je 0x4775bf
cmp dword [esi + 0x234], ebp
je 0x4775bf
cmp dword [esi + 0x228], ebp
je 0x4775bf
cmp dword [esi + 0x230], ebp
je 0x4775bf
cmp dword [esi + 0x23c], ebp
je 0x4775bf
cmp dword [esi + 0x240], ebp
je 0x4775bf
cmp dword [esi + 0x244], ebp
je 0x4775bf
xor eax, eax
inc eax
jmp 0x4776cc
push ebx
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
cmp ebx, ebp
jne 0x4775dd
mov dword [esi + 0x18], 1
jmp 0x4776c9
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenServiceA
push ebx
call edi
push str.CreateServiceA
push ebx
mov dword [esi + 0x220], eax
call edi
push str.StartServiceA
push ebx
mov dword [esi + 0x224], eax
call edi
push str.DeleteService
push ebx
mov dword [esi + 0x22c], eax
call edi
push str.OpenSCManagerA
push ebx
mov dword [esi + 0x234], eax
call edi
push str.CloseServiceHandle
push ebx
mov dword [esi + 0x228], eax
call edi
push str.QueryServiceStatusEx
push ebx
mov dword [esi + 0x230], eax
call edi
push str.LockServiceDatabase
push ebx
mov dword [esi + 0x238], eax
call edi
push str.UnlockServiceDatabase
push ebx
mov dword [esi + 0x23c], eax
call edi
push str.ChangeServiceConfigA
push ebx
mov dword [esi + 0x240], eax
call edi
mov dword [esi + 0x244], eax
pop edi
cmp dword [esi + 0x220], ebp
je 0x4776c2
cmp dword [esi + 0x224], ebp
je 0x4776c2
cmp dword [esi + 0x22c], ebp
je 0x4776c2
cmp dword [esi + 0x238], ebp
je 0x4776c2
cmp dword [esi + 0x234], ebp
je 0x4776c2
cmp dword [esi + 0x228], ebp
je 0x4776c2
cmp dword [esi + 0x230], ebp
je 0x4776c2
cmp dword [esi + 0x23c], ebp
je 0x4776c2
cmp dword [esi + 0x240], ebp
je 0x4776c2
cmp eax, ebp
je 0x4776c2
xor eax, eax
inc eax
jmp 0x4776cb
mov dword [esi + 0x18], 2
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x477b8b
Capabilities:
Read .ini file

Disassembly:
push 0x43c
mov eax, 0x5366d6
call fcn.004f422d
mov eax, ecx
add eax, 0x1c
push eax
lea ecx, [ebp - 0x448]
call fcn.0040643b
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], edi
call fcn.004898dc
mov esi, str.flag
push esi
push edi
lea ecx, [ebp - 0x448]
call fcn.00489e94
lea eax, [ebp - 0x448]
push eax
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x448]
mov esi, eax
call fcn.004064c1
mov eax, esi
call fcn.004f42b0
ret
Function at 0x4785b0
Capabilities:
Set registry value

Disassembly:
cmp dword [0x58f064], 2
jne 0x4785c3
mov ecx, 0x599328
jmp fcn.004579ed
add ecx, 4
jmp fcn.00497ed5

Function at 0x4785cb
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x53410d
call fcn.004f41f7
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ecx + 0x418], esi
call fcn.004576ad
mov edi, eax
cmp edi, esi
je 0x4577e0
push edi
call fcn.004f3730
pop ecx
cmp eax, 8
jne 0x4577e0
push 4
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp + 8], esi
call fcn.004057f1
add esp, 0xc
push edi
call fcn.004b6e29
mov eax, dword [ebp + 8]
pop ecx
jmp 0x4577fc
mov eax, dword [ebp + 0xc]
jmp 0x4577fc
call fcn.004f429c
ret 8
cmp dword [0x58f064], 2
jne 0x4785de
mov ecx, 0x599328
jmp 0x457790
add ecx, 4
jmp fcn.00497a01

Function at 0x4785e6
Capabilities:
Set registry value

Disassembly:
cmp dword [0x58f064], 2
jne 0x4785f9
mov ecx, 0x599328
jmp fcn.00457a25
add ecx, 4
jmp fcn.0049805d

Function at 0x478601
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x534143
call fcn.004f41f7
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ecx + 0x418], esi
call fcn.004576ad
mov edi, eax
cmp edi, esi
je 0x4578c8
push edi
call fcn.004f3730
pop ecx
cmp eax, 8
jne 0x4578c8
push 4
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp + 8], esi
call fcn.004057f1
add esp, 0xc
push edi
call fcn.004b6e29
mov eax, dword [ebp + 8]
pop ecx
jmp 0x4578e4
mov eax, dword [ebp + 0xc]
jmp 0x4578e4
call fcn.004f429c
ret 8
cmp dword [0x58f064], 2
jne 0x478614
mov ecx, 0x599328
jmp 0x457878
add ecx, 4
jmp fcn.00497b08

Function at 0x47861c
Capabilities:
Set registry value

Disassembly:
push 0x3c
mov eax, 0x5341de
call fcn.004f4263
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x31
lea eax, [ebp - 0x47]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x48], bl
call fcn.004f42d0
add esp, 0xc
cmp esi, ebx
jne 0x457b4f
mov dword [edi + 0x418], 1
xor eax, eax
call fcn.004f42bf
ret 8
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0xc]
push 4
push eax
call fcn.004057a3
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push esi
mov ecx, edi
call fcn.004579ed
jmp 0x457b47
cmp dword [0x58f064], 2
jne 0x47862f
mov ecx, 0x599328
jmp 0x457b0f
add ecx, 4
jmp fcn.00497d72
Function at 0x4786b3
Capabilities:
Set registry value

Disassembly:
push 4
mov eax, 0x53425e
call fcn.004f41f7
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x457eb7
cmp dword [ebp + 0x10], ebx
jl 0x457eb7
cmp dword [ebp + 0xc], ebx
je 0x457e96
cmp dword [ebp + 0x10], ebx
je 0x457e96
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00405fae
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jne 0x457e7e
mov dword [edi + 0x418], 2
jmp 0x457ec1
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004579ed
push esi
mov edi, eax
call fcn.004b6e29
pop ecx
mov eax, edi
jmp 0x457ec3
push dword [ebp + 8]
mov ecx, edi
call fcn.00457bf9
jmp 0x457ec3
mov dword [edi + 0x418], 1
xor eax, eax
call fcn.004f429c
ret 0xc
push ebp
mov ebp, esp
cmp dword [0x58f064], 2
jne 0x4786ca
mov ecx, 0x599328
pop ebp
jmp 0x457e38
add ecx, 4
pop ebp
jmp fcn.004980dd

Function at 0x4786ee
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [0x58f064], 2
jne 0x478701
mov ecx, 0x599328
jmp fcn.00457c28
add ecx, 4
jmp fcn.00497752

Function at 0x4787f4
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [0x58f064], 2
jne 0x478807
mov ecx, 0x599328
jmp fcn.00457804
jmp fcn.004785cb

Function at 0x47880c
Capabilities:
Set registry value

Disassembly:
push 0x3c
mov eax, 0x5341b9
call fcn.004f4263
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x31
lea eax, [ebp - 0x47]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x48], bl
call fcn.004f42d0
add esp, 0xc
cmp esi, ebx
jne 0x457ada
mov dword [edi + 0x418], 1
xor eax, eax
call fcn.004f42bf
ret 8
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0xc]
push 4
push eax
call fcn.004057a3
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push esi
mov ecx, edi
call fcn.004579ed
jmp 0x457ad2
cmp dword [0x58f064], 2
jne 0x47881f
mov ecx, 0x599328
jmp 0x457a9a
jmp fcn.004785e6
Function at 0x47e77e
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
sub esp, 0x438
lea ebp, [esp - 4]
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp + 0x438], eax
push 4
mov eax, 0x536ff5
call fcn.004f41c4
mov esi, ecx
lea ecx, [ebp]
call fcn.004063ed
xor edi, edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x314]
push eax
mov ecx, 0x597b40
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.0043542b
test eax, eax
je 0x47e8bb
push dword [ebp - 0x10]
call fcn.004f3730
inc eax
pop ecx
inc eax
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x47e838
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x47e82f
push dword [ebp - 0x10]
call fcn.004f3730
inc eax
push eax
push dword [ebp - 0x10]
push edi
call fcn.004f4490
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test esi, esi
jne 0x47e821
xor eax, eax
jmp 0x47e824
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x47e871
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor edi, edi
cmp esi, edi
jne 0x47e840
xor esi, esi
jmp 0x47e843
mov esi, dword [esi + 0x20]
push 0xd4
mov ecx, 0x598978
call fcn.0045a895
push eax
push 0x16
push esi
call fcn.004065bc
add esp, 0xc
cmp dword [ebp - 0x10], edi
je 0x47e8bb
push dword [ebp - 0x10]
call fcn.004b6e29
pop ecx
mov dword [ebp - 0x10], edi
jmp 0x47e8bb
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x10], 0
je 0x47e899
push dword [ebp - 0x10]
call fcn.004b6e29
and dword [ebp - 0x10], 0
pop ecx
test esi, esi
je 0x47e8a0
mov esi, dword [esi + 0x20]
push 0xd5
mov ecx, 0x598978
call fcn.0045a895
push eax
push 0x13
push esi
call fcn.004065bc
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004064c1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x438]
xor ecx, ebp
call fcn.004f41b5
add ebp, 0x43c
leave
ret

Function at 0x489a22
Capabilities:
Create directory

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x489a43
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x489a43
xor eax, eax
jmp 0x489a46
xor eax, eax
inc eax
ret 4

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

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00489ca7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
mov ecx, esi
call fcn.00489cfe
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00489ca7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x489e81
test al, 0x10
je 0x489e81
xor edi, edi
inc edi
jmp 0x489e83
xor edi, edi
mov ecx, esi
call fcn.00489cfe
mov eax, edi
pop edi
pop esi
ret
jmp 0x489e63
Function at 0x48a4f4
Capabilities:
Get file size

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
call fcn.00489e8f
test eax, eax
jne 0x48a539
mov ecx, esi
call fcn.00489e3d
test eax, eax
je 0x48a539
push edi
mov eax, 0x80
push eax
push 3
push edi
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x48a539
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x48a53e
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
sub esp, 0x50c
lea ebp, [esp - 4]
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp + 0x50c], eax
push 8
mov eax, 0x537eb0
call fcn.004f41c4
mov edi, ecx
push edi
push 0x28
mov byte [edi], 0
call fcn.00489c06
test eax, eax
je 0x48a599
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x50c]
xor ecx, ebp
call fcn.004f41b5
add ebp, 0x510
leave
ret
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, 0x400
push esi
push edi
push str._USERPROFILE_
call ebx
cmp byte [edi], 0
je 0x48a5c3
push str._USERPROFILE_
push edi
call fcn.004fa190
pop ecx
pop ecx
test eax, eax
jne 0x48a573
lea ecx, [ebp]
call fcn.0049722d
and dword [ebp - 4], 0
push reloc.ast.dll_Ordinal_2
lea ecx, [ebp]
call fcn.00497255
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
lea ecx, [ebp]
call fcn.0049765c
test eax, eax
je 0x48a67c
push 0
push str.ProfilesDirectory
lea ecx, [ebp]
call fcn.00497845
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48a67c
push esi
push edi
push eax
call ebx
push dword [ebp - 0x14]
call fcn.004b6e29
push esi
push 0x554848
push edi
call fcn.004f55b0
push 0xff
lea eax, [ebp + 0x40d]
push 0
push eax
mov byte [ebp + 0x40c], 0
call fcn.004f42d0
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x40c]
push eax
mov dword [ebp - 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push esi
lea eax, [ebp + 0x40c]
push eax
push edi
call fcn.004f55b0
xor esi, esi
add esp, 0xc
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00498356
mov eax, esi
jmp 0x48a576
xor esi, esi
jmp 0x48a669

Function at 0x48a958
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
push edi
mov edi, ecx
push edi
call fcn.00489e0d
pop ecx
test eax, eax
je 0x48a99b
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
test eax, eax
je 0x48a979
xor eax, eax
inc eax
jmp 0x48a99d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x48a99b
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x48a99b
push edi
call esi
test eax, eax
jne 0x48a974
xor eax, eax
pop edi
pop esi
ret
Function at 0x48a9c2
Capabilities:
Delete directory
Set file attributes

Disassembly:
push esi
push edi
mov edi, ecx
push edi
call fcn.00489e0d
pop ecx
test eax, eax
je 0x48aa05
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
call esi
test eax, eax
je 0x48a9e3
xor eax, eax
inc eax
jmp 0x48aa07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x48aa05
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x48aa05
push edi
call esi
test eax, eax
jne 0x48a9de
xor eax, eax
pop edi
pop esi
ret

Function at 0x48acc9
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x48acde
pop esi
ret
mov ecx, esi
call fcn.0048ac86
test eax, eax
je 0x48acfe
cmp eax, 1
je 0x48acfe
cmp eax, 2
je 0x48acfe
mov ecx, esi
call fcn.00489e3d
test eax, eax
jne 0x48ad0a
push 0x555a54
mov ecx, esi
call fcn.00489793
xor eax, eax
inc eax
pop esi
ret

Function at 0x48ad0f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x404], 0
call fcn.004f42d0
add esp, 0xc
mov ecx, esi
call fcn.0048acc9
push esi
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push 0
push 0x5441cc
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f41b5
leave
ret
Function at 0x48ae8b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x9b0
lea ebp, [esp - 4]
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp + 0x9b0], eax
push 8
mov eax, 0x538025
call fcn.004f41c4
mov edi, dword [ebp + 0x9bc]
mov esi, ecx
lea ecx, [ebp]
call fcn.004063ed
xor ebx, ebx
push 0xffffffffffffffff
lea ecx, [esi + 0x400]
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call fcn.004c7a39
mov dword [esi + 0x414], ebx
cmp byte [edi], bl
jne 0x48aee8
mov edi, 0x544418
push ebx
call fcn.00406295
pop ecx
test eax, eax
je 0x48af91
lea ecx, [ebp + 0x438]
call fcn.004063ed
lea ecx, [ebp + 0x438]
mov byte [ebp - 4], 1
call fcn.00489fed
lea eax, [ebp + 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp + 0x438]
push esi
push eax
call fcn.004fc54b
add esp, 0xc
test eax, eax
jne 0x48af83
lea eax, [ebp + 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea eax, [eax + esi + 1]
push ebx
lea ecx, [ebp + 0x438]
mov dword [ebp - 0x14], eax
call fcn.004898dc
push str.SysNative
push ebx
lea ecx, [ebp + 0x438]
call fcn.00489e94
push dword [ebp - 0x14]
lea ecx, [ebp + 0x438]
push ebx
call fcn.00489e94
lea eax, [ebp + 0x438]
push eax
push esi
call fcn.004fab40
pop ecx
pop ecx
lea ecx, [ebp + 0x438]
mov byte [ebp - 4], bl
call fcn.004064c1
push edi
push esi
lea ecx, [ebp]
call fcn.00489e94
lea eax, [ebp + 0x870]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x48b015
cmp dword [ebp - 0x10], ebx
je 0x48b00e
lea eax, [ebp + 0x89c]
push eax
call fcn.004898ae
pop ecx
test eax, eax
jne 0x48affb
lea eax, [ebp + 0x89c]
push eax
push esi
lea ecx, [ebp]
call fcn.00489e94
lea ecx, [ebp]
call fcn.00489e8f
test eax, eax
je 0x48affb
lea ecx, [esi + 0x400]
mov eax, dword [ecx + 8]
lea edx, [ebp + 0x89c]
push edx
push eax
call fcn.004c7eb3
lea eax, [ebp + 0x870]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x10], eax
jmp 0x48afb3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, esi
call fcn.0048a3ee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
mov esi, eax
call fcn.004064c1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9b0]
xor ecx, ebp
call fcn.004f41b5
add ebp, 0x9b4
leave
ret 4