joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 dword [ebp - 0x14], 5
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
mov edi, dword [ebp + 0xc]
push edi
mov ebx, dword [ebp + 8]
push ebx
call fcn.0048fd10
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x49015a
push edi
push ebx
call fcn.004901b0
add esp, 8
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x49014d
push edi
push ebx
call fcn.0048fe50
add esp, 8
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x490140
lea eax, [ebp - 0x1c]
push eax
push 0xc0000000
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x490140
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 0x14], esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
push edi
push ebx
call fcn.0048ff70
add esp, 0xc
push 0
push dword [ebp - 0x18]
call fcn.004a42c5
add esp, 8
mov dword [ebp - 4], 0xffffffff
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

Function at 0x490560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x230], eax
mov dword [eax], 0xffffffff
lea eax, [ebp - 0x228]
push eax
push 0x20019
push 0
push str.SOFTWAREPoliciesGoogleChromeExtensionInstallForcelist
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x228], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x490662
push esi
lea esi, [eax + 1]
nop dword [eax]
push esi
xorps xmm0, xmm0
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x24]
movq qword [ebp - 0x13], xmm0
push 0x51db78
push eax
movups xmmword [ebp - 0x23], xmm0
mov dword [ebp - 0xb], 0
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
call fcn.004482a0
push 0x200
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.004b8570
add esp, 0x18
mov dword [ebp - 0x22c], 0x1ff
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x490659
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.004b9010
add esp, 8
test eax, eax
jne 0x490657
inc esi
cmp esi, 0x63
jl 0x4905c0
jmp 0x490661
mov bl, 1
mov eax, dword [ebp - 0x230]
mov dword [eax], esi
pop esi
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x490673
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.004a4566
mov esp, ebp
pop ebp
ret
Function at 0x490a40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push str.SOFTWAREPoliciesGoogleChromeExtensionInstallForcelist
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x34], esi
call fcn.004906c0
add esp, 8
test al, al
jne 0x490a81
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push eax
push edi
xor bl, bl
call fcn.00490560
add esp, 8
cmp dword [ebp - 0x2c], 0
jle 0x490b85
lea eax, [ebp - 0x28]
push eax
push 0x2001f
push 0
push str.SOFTWAREPoliciesGoogleChromeExtensionInstallForcelist
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x490b85
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x490ad0
sub ecx, edx
mov edx, esi
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x490ae0
sub edx, esi
lea eax, [edx + ecx]
lea esi, [eax*2 + 0xe]
push esi
call fcn.004a4577
push esi
mov esi, eax
mov dword [ebp - 0x30], eax
push 0
push esi
call fcn.004b8570
push dword [ebp - 0x34]
push edi
push str._s__s
push esi
call fcn.004482a0
push dword [ebp - 0x2c]
xorps xmm0, xmm0
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x24]
movq qword [ebp - 0x13], xmm0
push 0x51db78
push eax
movups xmmword [ebp - 0x23], xmm0
mov dword [ebp - 0xb], 0
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
call fcn.004482a0
mov ecx, esi
add esp, 0x2c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x490b50
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push 1
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
movzx ebx, bl
mov ecx, 1
push esi
cmove ebx, ecx
call fcn.004a4580
add esp, 4
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x490b93
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004a4566
mov esp, ebp
pop ebp
ret
Function at 0x490be0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push ebx
push ecx
push eax
xor bl, bl
mov dword [ebp - 0x28], 0
call fcn.00490560
add esp, 8
test al, al
je 0x490c72
push dword [ebp - 0x2c]
xorps xmm0, xmm0
mov byte [ebp - 0x24], bl
lea eax, [ebp - 0x24]
movq qword [ebp - 0x13], xmm0
push 0x51db78
push eax
movups xmmword [ebp - 0x23], xmm0
mov dword [ebp - 0xb], 0
mov word [ebp - 7], 0
mov byte [ebp - 5], bl
call fcn.004482a0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push 0x2001f
push 0
push str.SOFTWAREPoliciesGoogleChromeExtensionInstallForcelist
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x490c72
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
sete bl
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x490c80
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004a4566
mov esp, ebp
pop ebp
ret
Function at 0x491d10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
movzx ecx, word [eax + 0xe]
lea ebx, [eax + 0x10]
movzx eax, word [eax + 0xc]
add eax, ecx
mov dword [ebp + 0x10], eax
je 0x491db8
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0x38f40
mov eax, dword [ebx + 4]
cmp eax, 0x80000000
jb 0x491d71
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x491d57
cmp word [ebx], 0x18
je 0x491dad
inc ecx
and eax, 0x7fffffff
push ecx
push esi
add eax, edx
push eax
push edx
push edi
call fcn.00491d10
mov edx, dword [ebp + 0xc]
add esp, 0x14
jmp 0x491dad
and eax, 0x7fffffff
mov ecx, dword [eax + edx]
add ecx, edi
mov edi, dword [eax + edx + 4]
shr edi, 2
test edi, edi
je 0x491daa
mov eax, dword [esi]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
xor edx, edx
mov eax, dword [esi]
div dword [ebp - 4]
imul eax, edx, 0x2455
add eax, 0xc091
mov dword [esi], eax
sub edi, 1
jne 0x491d86
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
add ebx, 8
sub dword [ebp + 0x10], 1
jne 0x491d40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491dc0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax + 0x3c]
xor esi, esi
add ebx, eax
mov dword [ebp - 0x10c], eax
movzx eax, word [ebx + 0x14]
lea edi, [ebx + 0x18]
add edi, eax
xor eax, eax
cmp ax, word [ebx + 6]
jae 0x491e1e
nop word [eax + eax]
push str..rsrc
push edi
call fcn.004c56c4
add esp, 8
test eax, eax
je 0x491e1e
movzx eax, word [ebx + 6]
inc esi
add edi, 0x28
cmp esi, eax
jl 0x491e00
movzx eax, word [ebx + 6]
cmp esi, eax
jge 0x491f1b
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004b8570
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x108]
push str.QA1Q0ZWQIE__d
push eax
call fcn.004482a0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
mov dword [ebp - 0x118], esi
test esi, esi
je 0x491f1b
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x491f14
mov ebx, dword [edi + 0xc]
add ebx, dword [ebp - 0x10c]
mov eax, dword [ebx]
mov dword [ebp - 0x114], eax
test eax, eax
je 0x491f0d
mov ecx, eax
shr ecx, 0x10
xor cl, 0x76
cmp al, cl
jne 0x491f0d
mov ecx, eax
shr eax, 8
shr ecx, 0x18
xor cl, 0x5a
cmp al, cl
jne 0x491f0d
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x110]
push eax
push 4
push dword [edi + 0x10]
push ebx
call esi
push 0
lea eax, [ebp - 0x114]
mov dword [ebx], 0
push eax
push ebx
push ebx
push dword [ebp - 0x10c]
call fcn.00491d10
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x110]
push dword [edi + 0x10]
push ebx
call esi
mov esi, dword [ebp - 0x118]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 0x492110
Capabilities:
Create directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x104
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004b8570
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004b8570
add esp, 0x18
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.logs
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.CrashDumpLogs
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4921bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4921bf
cmp eax, 0xb7
jne 0x4921ce
push 2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004b8570
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.004b8570
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0x104
lea eax, [ebp - 0x310]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c9b60
add esp, 0x24
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [ebp - 0x428]
movzx eax, word [ebp - 0x418]
push ebx
push eax
movzx eax, word [ebp - 0x41a]
push eax
movzx eax, word [ebp - 0x41c]
push eax
movzx eax, word [ebp - 0x41e]
push eax
movzx eax, word [ebp - 0x422]
push eax
movzx eax, word [ebp - 0x424]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
push str._s_s__04d_02d_02d__02d_02d_02d__ld__ld.dmp
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00445f20
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.004922c0
mov ecx, dword [ebp - 4]
add esp, 0x3c
xor ecx, ebp
pop edi
pop ebx
call fcn.004a4566
mov esp, ebp
pop ebp
ret
Function at 0x4933a0
Capabilities:
Enumerate files on windows
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51505b
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea ecx, [ebp - 0x378]
call fcn.00480950
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0x104
push 0
push eax
call fcn.004b8570
add esp, 0xc
mov dword [ebp - 0x360], 0x104
lea eax, [ebp - 0x360]
mov dword [ebp - 0x35c], 0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, dword [ebp + 8]
lea ebx, [ebp - 0x114]
sub ebx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x493430
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x493444
mov eax, dword [0x51bc60]
mov dword [edi], eax
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x364], esi
cmp esi, 0xffffffff
je 0x493528
nop word [eax + eax]
cmp dword [ebp - 0x358], 0x10
je 0x4934f5
mov eax, dword [ebp + 8]
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [ebx + eax - 1], cl
test cl, cl
jne 0x493490
lea edx, [ebp - 0x32c]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4934a5
lea edi, [ebp - 0x114]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4934b5
mov ecx, edx
lea eax, [ebp - 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x35c], eax
mov ecx, edx
push 1
lea eax, [ebp - 0x35c]
and ecx, 3
push eax
lea eax, [ebp - 0x218]
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0048c270
mov esi, dword [ebp - 0x364]
add esp, 0xc
push pe_nt_image_headers32
lea eax, [ebp - 0x358]
push 0
push eax
call fcn.004b8570
add esp, 0xc
lea eax, [ebp - 0x358]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x493480
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x378]
call fcn.00480a10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret
Function at 0x4939f0
Capabilities:
Get common file path
Get hostname
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515160
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov byte [ebp - 0x320], 0
push 0x104
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [ebp - 0x118], 0
mov dword [ebp - 0x428], 0x104
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp byte [ebp - 0x118], 0
jne 0x493a88
mov eax, dword [str.Unknown]
mov dword [ebp - 0x118], eax
mov eax, dword [0x569634]
mov dword [ebp - 0x114], eax
mov byte [ebp - 0x21c], 0
mov dword [ebp - 0x428], 0x104
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp byte [ebp - 0x21c], 0
jne 0x493acc
mov eax, dword [str.Default]
mov dword [ebp - 0x21c], eax
mov eax, dword [0x525950]
mov dword [ebp - 0x218], eax
mov ecx, esi
call fcn.00489950
lea eax, [ebp - 0x320]
push eax
push str._systemroot_
mov ecx, esi
call fcn.00489970
push 0x104
push 0
lea eax, [ebp - 0x424]
push eax
call fcn.004b8570
add esp, 0xc
push 0x104
lea eax, [ebp - 0x424]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x424]
push eax
mov ecx, esi
call fcn.00488c70
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret
Function at 0x496ad0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515420
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 dword [ebp - 0x14], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x496bff
cmp dword [ebp + 0xc], 0
je 0x496bff
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
push str.secur32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x496b5c
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x496b5c
lea ecx, [ebp + 0xc]
push ecx
push ebx
push 2
call eax
movzx edi, al
mov dword [ebp - 0x14], edi
test al, al
jne 0x496b6c
lea eax, [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x496b99
mov dword [ebp - 4], 2
test esi, esi
je 0x496bab
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
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 8
Function at 0x49d670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x592494], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10c], eax
je 0x49d6b2
push 0x104
push 0x592180
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x592180
call fcn.00488700
add esp, 4
cmp byte [0x592180], 0
jne 0x49d7c1
push 0x104
push 0x592180
push dword [0x591ad8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x592180
call fcn.004b8c50
add esp, 8
test eax, eax
je 0x49d6eb
mov byte [eax], 0
push 0x592180
call fcn.00488700
add esp, 4
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x592180]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x109], al
test al, al
jne 0x49d700
push esi
mov edx, str.msocxushell.dll
push edi
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x49d720
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49d730
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.0048b440
add esp, 4
pop edi
pop esi
test eax, eax
jne 0x49d762
mov byte [0x592180], al
jmp 0x49d76b
cmp byte [0x592180], 0
jne 0x49d7c1
push 0
push 1
push 0x104
push 0x592180
call fcn.0049d330
add esp, 0x10
test eax, eax
je 0x49d79b
push 0x5c
push 0x592180
call fcn.004b8c50
add esp, 8
test eax, eax
je 0x49d79b
mov byte [eax], 0
cmp byte [0x592180], 0
jne 0x49d7c1
push 0x104
push 0x592180
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x592180
call fcn.00488700
add esp, 4
push dword [ebp + 0xc]
push 0x592180
push dword [ebp - 0x10c]
call fcn.004c59d0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret
Function at 0x4a0310
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5161db
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x120], 0
mov dword [ebp - 4], 0
test edi, edi
jne 0x4a036c
xor eax, eax
jmp 0x4a0503
push 0x26c
push 0
push edi
call fcn.004b8570
push 0x104
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.004b8570
add esp, 0x18
mov dword [ebp - 0x124], 0x104
mov eax, dword [0x58f3dc]
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 1
call fcn.00486d60
mov esi, eax
lea ecx, [ebp - 0x11c]
test esi, esi
je 0x4a03ca
push esi
call fcn.00488c70
push esi
call fcn.004a4580
add esp, 4
jmp 0x4a03d4
push 0x568771
call fcn.00488c70
lea ecx, [ebp - 0x11c]
call fcn.00489b60
lea ecx, [ebp - 0x11c]
call fcn.00489bc0
push 0xfc
push dword [ebp - 0x11c]
push edi
call fcn.00488a00
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00488c70
lea ecx, [ebp - 0x11c]
call fcn.00489b60
lea ecx, [ebp - 0x11c]
call fcn.00489bc0
push 0x104
push dword [ebp - 0x11c]
lea eax, [edi + 0x104]
push eax
call fcn.00488a00
add esp, 0xc
push ebx
lea ecx, [ebp - 0x11c]
call fcn.00488c70
lea ecx, [ebp - 0x11c]
call fcn.00489b60
lea ecx, [ebp - 0x11c]
call fcn.00489bc0
push 0x32
push dword [ebp - 0x11c]
lea eax, [edi + 0x208]
push eax
call fcn.00488a00
add esp, 0xc
push dword [ebp - 0x128]
lea ecx, [ebp - 0x11c]
call fcn.00488c70
lea ecx, [ebp - 0x11c]
call fcn.00489b60
lea ecx, [ebp - 0x11c]
call fcn.00489bc0
push 0x32
push dword [ebp - 0x11c]
lea eax, [edi + 0x23a]
push eax
call fcn.00488a00
add esp, 0xc
mov esi, 1
mov dword [ebp - 0x120], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call fcn.00488bc0
mov dword [ebp - 4], 0xffffffff
jmp 0x4a0501
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 - 0x14]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret

Function at 0x4a0ea0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5162f0
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 dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret