joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494344
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x49447c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x494466
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x4943a1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x494466
cmp dword [ebp - 0x14], 0
jne 0x4943b8
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00406448
mov bl, 1
jmp 0x494466
cmp dword [ebp - 0x14], 0x70000000
jb 0x4943c6
call fcn.004117e8
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00406584
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00406eb8
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x49436a
test eax, eax
jne 0x494466
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x494414
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x494466
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x49441c
dec esi
test esi, esi
je 0x49442b
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x49441b
cmp dword [ebp - 0x10], 7
jne 0x494436
test esi, esi
je 0x494436
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.004067bc
cmp dword [ebp - 0x10], 7
jne 0x494459
test esi, esi
je 0x494459
lea eax, [ebp - 4]
call fcn.00406eb8
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00406448
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494483
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x4944a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, edx
mov ebp, eax
push 0
push 0
push 0
push 0
push esi
push ebp
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete bl
test bl, bl
je 0x494524
test esi, esi
je 0x4944d5
cmp word [esi], 0
jne 0x494524
mov eax, dword [0x558070]
cmp dword [eax], 2
je 0x494524
xor ebx, ebx
xor esi, esi
mov dword [esp + 4], 2
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push ebp
call sub.advapi32.dll_RegEnumValueW
mov edi, eax
test edi, edi
je 0x494512
cmp edi, 0xea
jne 0x494524
test edi, edi
jne 0x494521
cmp word [esp], 0
jne 0x494521
mov bl, 1
jmp 0x494524
inc esi
jmp 0x4944e3
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x494590
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x4945a4
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x55e1a4], 0
jne 0x4945c7
push 0x4945ec
push 0x49460c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
mov dword [0x55e1a4], eax
cmp dword [0x55e1a4], 0
je 0x4945e1
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x55e1a4]
jmp 0x4945e6
mov eax, 0x7f
pop esi
pop ebx
ret

Function at 0x494628
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x49479b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x49465c
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x494666
mov ebx, 0x57
jmp 0x494785
mov eax, dword [0x558070]
cmp dword [eax], 2
jne 0x494774
push 0
push 8
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
movzx eax, byte [ebp - 5]
call fcn.00494568
test eax, eax
jne 0x494774
xor eax, eax
push ebp
push 0x49476d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, pe_nt_image_headers32
xor edx, edx
call fcn.00406584
xor eax, eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4946c1
sub ebx, 4
mov ebx, dword [ebx]
mov dword [ebp - 0x1c], ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
call fcn.00406eb8
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov esi, eax
cmp esi, 0xea
jne 0x49472c
mov edi, dword [ebp - 4]
test edi, edi
je 0x4946fc
sub edi, 4
mov edi, dword [edi]
cmp edi, 0x10000
jge 0x494756
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x49471b
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406584
jmp 0x4946b5
test esi, esi
jne 0x494756
mov eax, dword [ebp - 4]
call fcn.004064d4
mov ecx, eax
mov edx, dword [ebp - 0x14]
movzx eax, byte [ebp - 5]
call fcn.00494628
test eax, eax
je 0x4946b5
inc dword [ebp - 0x18]
jmp 0x4946b5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494774
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
movzx eax, byte [ebp - 5]
call fcn.00494590
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4947a2
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x494834
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
mov eax, dword [0x558070]
cmp dword [eax], 2
je 0x494851
mov byte [ebp - 1], 1
jmp 0x494a1f
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
push 0x556e14
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x494a1f
xor eax, eax
push ebp
push 0x494a18
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jb 0x4948b3
push 0x494a2c
push 0x494a58
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
mov ebx, eax
test ebx, ebx
je 0x4948da
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x494a01
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x494a01
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x49492b
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
je 0x49490c
call fcn.00404b68
jmp 0x494a1f
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x49492b
call fcn.00404b68
jmp 0x494a1f
xor eax, eax
push ebp
push 0x4949fa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x49496e
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x49496e
call fcn.00404b68
call fcn.00404b68
jmp 0x494a1f
mov eax, dword [ebp - 0x14]
call fcn.00403018
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x4949a0
call fcn.00404b68
call fcn.00404b68
jmp 0x494a1f
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x4949db
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4949d7
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x4949d7
mov byte [ebp - 1], 1
jmp 0x4949db
inc ebx
dec esi
jne 0x4949ad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494a01
mov eax, dword [ebp - 0x18]
call fcn.00403034
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494a1f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4954dc
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x495583
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x558070]
cmp dword [eax], 2
jne 0x49551f
push 1
mov eax, esi
call fcn.004064d4
push eax
mov eax, edi
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileExW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x49556d
mov eax, esi
call fcn.004064d4
mov edx, eax
lea eax, [ebp - 4]
call fcn.00406604
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x495552
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x49556d
mov eax, esi
call fcn.004064d4
push eax
mov eax, edi
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49558a
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x4966c0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x55e1c8
mov eax, esi
mov edx, 8
test al, 1
je 0x4966dc
shr eax, 1
xor eax, 0xedb88320
jmp 0x4966de
shr eax, 1
dec edx
jne 0x4966cf
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4966c8
pop esi
ret

Function at 0x4966f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x55e1c4], 0
jne 0x496717
call fcn.004966c0
push 1
push 0x55e1c4
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x496742
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x55e1c8]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x49671d
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x497484
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.004064d4
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jle 0x497526
mov eax, ebx
call fcn.00403018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x49751f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x497509
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x497548
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x497509
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49753d
mov eax, dword [ebp - 0x10]
call fcn.00403034
ret
mov eax, dword [0x558070]
cmp dword [eax], 1
je 0x49753d
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004972a8
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x497750
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00497704
test al, al
jne 0x497771
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4977bf
xor eax, eax
push ebp
push 0x4977af
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4977b6
lea eax, [ebp - 0xc]
call fcn.00497740
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4977c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00497704
test al, al
jne 0x4977ec
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x497852
xor eax, eax
push ebp
push 0x497842
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x24]
push eax
push edi
push esi
call sub.kernel32.dll_CreateProcessW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497849
lea eax, [ebp - 0xc]
call fcn.00497740
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x497860
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00497704
test al, al
jne 0x497884
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4978dc
xor eax, eax
push ebp
push 0x4978cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.004064d4
push eax
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CopyFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4978d3
lea eax, [ebp - 0xc]
call fcn.00497740
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4978e8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00497704
test al, al
jne 0x497909
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x497955
xor eax, eax
push ebp
push 0x497945
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49794c
lea eax, [ebp - 0xc]
call fcn.00497740
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x497ac0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00497704
test al, al
jne 0x497ae3
mov dword [ebp - 4], 0xffffffff
jmp 0x497b2f
xor eax, eax
push ebp
push 0x497b1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497b26
lea eax, [ebp - 0xc]
call fcn.00497740
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x497c64
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00497704
test al, al
jne 0x497c88
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x497cdc
xor eax, eax
push ebp
push 0x497ccc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004064d4
push eax
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497cd3
lea eax, [ebp - 0xc]
call fcn.00497740
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x497ce8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
test edi, edi
jne 0x497d0b
test esi, 4
je 0x497d0b
xor edi, edi
jmp 0x497d14
mov eax, edi
call fcn.004064d4
mov edi, eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00497704
test al, al
jne 0x497d29
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x497d78
xor eax, eax
push ebp
push 0x497d68
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileExW
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497d6f
lea eax, [ebp - 0x10]
call fcn.00497740
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x497df4
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00497704
test al, al
jne 0x497e15
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x497e61
xor eax, eax
push ebp
push 0x497e51
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_RemoveDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497e58
lea eax, [ebp - 0xc]
call fcn.00497740
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x497e6c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00497704
test al, al
jne 0x497e90
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x497edd
xor eax, eax
push ebp
push 0x497ecd
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_SetFileAttributesW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497ed4
lea eax, [ebp - 0xc]
call fcn.00497740
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x498a20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x498a28
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x498b15
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00494110
mov edx, dword [ebp - 8]
mov ecx, 0x498b30
xor eax, eax
call fcn.00498788
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x498ae3
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x498a42
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.00496dfc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.0040d020
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.004950c4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x68
call fcn.00496dcc
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x40a9c0]
call fcn.004117f4
call fcn.00404a74
jmp 0x498a42
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498b1c
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406440
ret
Function at 0x49a4b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
call fcn.00406430
xor eax, eax
push ebp
push 0x49a598
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
jne 0x49a4fb
lea edx, [ebp + 0x18]
mov eax, edi
call fcn.00492fb4
cmp dword [ebp + 0x18], 0
jne 0x49a4fb
lea eax, [ebp + 0x18]
call fcn.00493f88
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403540
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
test ebx, ebx
je 0x49a526
mov eax, ebx
call fcn.004064d4
mov dword [ebp - 0x34], eax
mov eax, edi
call fcn.004064d4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.004064d4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
call fcn.004064d4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x49a568
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x49a582
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x49a582
push esi
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ebp + 0x14]
call fcn.0049a154
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a59f
lea eax, [ebp + 0x18]
call fcn.00406438
ret

Function at 0x49a7d0
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x49a7fe
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.00406640
jmp 0x49a807
mov eax, ebx
xor edx, edx
call fcn.00406448
add esp, 0x24
pop ebx
ret

Function at 0x49a80c
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
mov dword [esp], 0x101
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x49a83d
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.00406640
jmp 0x49a846
mov eax, ebx
xor edx, edx
call fcn.00406448
add esp, 0x208
pop ebx
ret

Function at 0x49a858
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x558070]
cmp dword [eax], 2
jne 0x49a8c0
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x49a87b
xor eax, eax
jmp 0x49a8cf
lea eax, [esp + 8]
push eax
push 0x49a8d4
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x49a8c0
xor eax, eax
jmp 0x49a8cf
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret