joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b4b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x100
push 0
push eax
call fcn.004b8570
add esp, 0xc
mov byte [esi], 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x80
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a4566
mov esp, ebp
pop ebp
ret
Function at 0x48bc30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0x568771
call fcn.00488c70
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48bd03
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004b8570
add esp, 0xc
mov dword [ebp - 0x110], 0x104
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], 1
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push str.ProductID
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48bcf7
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.00488c70
push 0x568771
push 0x51ba1c
mov ecx, esi
call fcn.00489970
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a4566
mov esp, ebp
pop ebp
ret
Function at 0x48c120
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2054
call fcn.004a4910
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_GetForegroundWindow]
test esi, esi
jne 0x48c14a
call edi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x48c15f
call edi
mov esi, eax
mov byte [ebp - 0x54], 0
jmp 0x48c16c
push 0x50
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
mov eax, ecx
shr eax, 0x10
test eax, eax
jne 0x48c19d
push 0x2000
lea eax, [ebp - 0x2054]
push eax
movzx eax, cx
push eax
push dword [0x591ad8]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x2054]
mov dword [ebp + 0x10], eax
push 0x4000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x48c202
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
call fcn.0040e040
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004c55c3
mov eax, dword [ebp + 0xc]
add esp, 0x1c
or eax, 0x10000
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.004a4566
mov esp, ebp
pop ebp
ret

Function at 0x48c670
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x48c6e9
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 1
push 1
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret
Function at 0x48c700
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x110], ebx
test edi, edi
je 0x48c845
cmp byte [edi], 0
je 0x48c845
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x108]
push eax
push 0xf003f
push 0
push edi
push ebx
call esi
cmp dword [ebp + 0x10], 0
je 0x48c767
test eax, eax
je 0x48c76f
lea eax, [ebp - 0x108]
push eax
push 0xf013f
push 0
push edi
push ebx
call esi
test eax, eax
jne 0x48c815
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x100
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push dword [ebp - 0x108]
call ebx
test eax, eax
jne 0x48c7fc
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call fcn.0048c700
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x48c826
lea eax, [ebp - 0x118]
mov dword [ebp - 0x10c], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x108]
call ebx
test eax, eax
je 0x48c7b0
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x32
pop edi
xor ecx, ebp
pop ebx
call fcn.004a4566
mov esp, ebp
pop ebp
ret
Function at 0x48c860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5146a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58fa2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
xor esi, esi
test ecx, ecx
je 0x48c9c7
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x48c9c7
mov eax, dword [0x58f3dc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x10]
push ecx
push str.SystemCurrentControlSetServices_sParameters
push eax
call fcn.00489150
mov ecx, dword [ebp + 8]
add esp, 0xc
mov edi, dword [ebp + 0x20]
test ecx, ecx
je 0x48c90c
cmp byte [ecx], 0
je 0x48c90c
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp - 0x10]
push reloc.WS2_32.dll_bind
push ecx
call fcn.0048cd50
add esp, 0x1c
test eax, eax
jne 0x48c99a
mov ecx, edi
test ecx, ecx
je 0x48c902
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov esi, 1
jmp 0x48c9a4
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0x20019
push 0
push dword [ebp - 0x10]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48c988
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x48c956
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp + 0x14]
push eax
push 0
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48c988
jmp 0x48c976
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x48c988
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp + 0x14]
push eax
push 0
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48c986
mov esi, 1
test edi, edi
je 0x48c988
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
jmp 0x48c988
xor esi, esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x48c996
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x48c9a4
test edi, edi
je 0x48c9a4
mov dword [edi], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00488bc0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c9e0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5146d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x58fa2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
xor esi, esi
test ecx, ecx
je 0x48caf1
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x48caf1
mov eax, dword [0x58f3dc]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], esi
lea eax, [ebp + 0xc]
push ecx
push str.SystemCurrentControlSetServices_sParameters
push eax
call fcn.00489150
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x48ca6e
cmp byte [eax], 0
je 0x48ca6e
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0xc]
push reloc.WS2_32.dll_bind
push eax
call fcn.0048cde0
add esp, 0x20
test eax, eax
jne 0x48cacf
lea esi, [eax + 1]
jmp 0x48cacf
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x48cac1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov ecx, 1
cmove esi, ecx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x48cacf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00488bc0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48cb10
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x1c]
test ecx, ecx
je 0x48cc46
test eax, eax
je 0x48cc46
test esi, esi
je 0x48cc46
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x218], 0x103
push 0
push eax
call fcn.004b8570
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004b8570
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0048afc0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call fcn.004c8d34
add esp, 0x10
mov dword [edi], 0
neg eax
sbb eax, eax
and eax, dword [ebp - 0x214]
push edi
push dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
jne 0x48cc4b
cmp dword [ebp + 0x18], eax
je 0x48cc24
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret
push ebx
push 0xf003f
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret
mov eax, 0x32
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4566
mov esp, ebp
pop ebp
ret

Function at 0x48cd50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x48cdcf
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x48cdcf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x48cdcf
cmp dword [ebp + 0x14], 0
je 0x48cdcf
push esi
lea esi, [ebp - 4]
mov dword [ebp - 4], 0
push esi
push 0
lea esi, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push esi
push edx
push eax
push ecx
call fcn.0048cb10
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x48cdba
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x48cdc8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x32
mov esp, ebp
pop ebp
ret
Function at 0x48cde0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x48ce5a
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x48ce5a
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x48ce5a
push esi
lea esi, [ebp - 4]
mov dword [ebp - 4], 0
push esi
push dword [ebp + 0x24]
lea esi, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push esi
push edx
push eax
push ecx
call fcn.0048cb10
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x48ce45
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x48ce53
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x32
mov esp, ebp
pop ebp
ret
Function at 0x48ce70
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get common file path
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
push esi
push edi
mov dword [ebp - 0x454], eax
sub edx, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x48cea0
lea eax, [ebp - 0x20c]
push eax
call fcn.00488700
add esp, 4
mov esi, ebx
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x48cec0
lea edi, [ebp - 0x20c]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48ced0
mov ecx, ebx
lea eax, [ebp - 0x450]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
lea eax, [ebp - 0x20c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x458], esi
cmp esi, 0xffffffff
je 0x48cfc9
mov eax, dword [ebp - 0x454]
lea ebx, [ebp - 0x108]
sub ebx, eax
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [ebx + eax - 1], cl
test cl, cl
jne 0x48cf20
lea eax, [ebp - 0x108]
push eax
call fcn.00488700
lea edx, [ebp - 0x424]
add esp, 4
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x48cf44
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48cf54
mov ecx, edx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push pe_nt_image_headers32
lea eax, [ebp - 0x450]
push 0
push eax
call fcn.004b8570
mov esi, dword [ebp - 0x458]
lea eax, [ebp - 0x450]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
mov eax, dword [ebp - 0x454]
je 0x48cf20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x48d02c
lea eax, [ebp - 0x310]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call edi
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
lea eax, [ebp - 0x310]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4566
mov esp, ebp
pop ebp
ret
Function at 0x48d040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 0x114], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x48d189
lea eax, [ebp - 0x10c]
push eax
push 2
push edi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x48d105
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
js 0x48d0f3
lea eax, [ebp - 0x108]
push eax
call fcn.00488700
mov edx, ebx
add esp, 4
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x48d0b6
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48d0c6
mov ecx, edx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0048d1a0
mov edi, dword [ebp - 0x114]
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x110]
push dword [ebp - 0x10c]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
lea eax, [ebp - 0x10c]
push eax
push 0x17
push edi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x48d189
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
js 0x48d177
lea eax, [ebp - 0x108]
push eax
call fcn.00488700
add esp, 4
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x48d140
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48d150
mov ecx, ebx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0048d1a0
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x110]
push dword [ebp - 0x10c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4566
mov esp, ebp
pop ebp
ret
Function at 0x48da70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
sub ecx, 1
jne 0x48da80
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
sub edi, 1
jne 0x48dac2
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret

Function at 0x48db40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x48db50
pop esi
ret
Function at 0x48e930
Capabilities:
Access firewall policy via inetfwpolicy2
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5148d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x58fa2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x48e988
cmp eax, 0x80010106
jne 0x48e9ca
jmp 0x48e996
cmp eax, 0x80010106
je 0x48e996
mov dword [edi + 8], 1
lea eax, [edi + 0x10]
push eax
push 0x525bfc
push 1
push 0
push 0x525bec
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
call esi
mov dword [ebp - 0x14], eax
lea eax, [edi + 0x2c]
push eax
push 0x525c1c
push 1
push 0
push 0x525c0c
call esi
mov dword [ebp - 0x14], eax
test eax, eax
js 0x48ea2a
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x48ea2a
mov dword [edi + 0xc], 1
lea esi, [edi + 0x14]
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x1c]
mov dword [ebp - 0x14], eax
test eax, eax
js 0x48ea2a
mov ecx, dword [esi]
test ecx, ecx
je 0x48ea2a
lea esi, [edi + 0x18]
mov eax, dword [ecx]
push esi
push 0
push ecx
call dword [eax + 0x20]
mov dword [ebp - 0x14], eax
test eax, eax
js 0x48ea2a
mov edx, dword [edi + 0x2c]
test edx, edx
je 0x48ea1a
mov ecx, dword [edx]
lea eax, [edi + 0x30]
push eax
push edx
call dword [ecx + 0x48]
mov dword [ebp - 0x14], eax
test eax, eax
js 0x48ea2a
cmp dword [esi], 0
je 0x48ea2a
mov dword [edi + 4], 1
cmp dword [edi + 4], 0
jne 0x48ea93
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x48ea3d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x14], 0
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x48ea51
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x10], 0
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x48ea65
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x2c], 0
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x48ea79
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x30], 0
cmp dword [edi + 8], 0
je 0x48ea8c
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [edi + 8], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret