joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d390
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a784b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4e06b8]
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
xor ebx, ebx
push ebx
push 2
mov edi, ecx
mov dword [ebp - 0x244], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x248], esi
mov dword [ebp - method.CGuardHandle.virtual_0], vtable.CGuardHandle.0
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00404180
call fcn.00469370
push eax
lea ecx, [ebp - 0x240]
call fcn.00403c90
lea eax, [ebp - 0x23c]
push eax
mov ebx, 0x22c
push esi
mov dword [ebp - 0x23c], ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x47d43a
lea ecx, [ebp - 0x240]
call fcn.00404200
test esi, esi
je 0x47d436
cmp esi, 0xffffffff
je 0x47d436
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x47d4b6
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea ecx, [ebp - 0x23c]
push ecx
push esi
mov dword [ebp - 0x23c], ebx
call edi
test eax, eax
je 0x47d495
lea ecx, [ebp - 0x240]
call fcn.0040a2e0
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.00482dc6
add esp, 8
test eax, eax
je 0x47d489
lea eax, [ebp - 0x23c]
push eax
push esi
mov dword [ebp - 0x23c], ebx
call edi
test eax, eax
jne 0x47d454
jmp 0x47d495
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x244], ecx
lea ecx, [ebp - 0x240]
call fcn.00404200
test esi, esi
je 0x47d4b0
cmp esi, 0xffffffff
je 0x47d4b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
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.00482469
mov esp, ebp
pop ebp
ret
Function at 0x47d6b0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac941
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0040a2e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47d889
push 0x4cc6f8
lea eax, [ebp - 0x26c]
push edi
push eax
call fcn.004784e0
add esp, 0xc
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x26c]
mov dword [ebp - 4], 0
call fcn.0040a2e0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x47d87e
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x238]
push 0x4cc704
push edx
call fcn.00482dc6
add esp, 8
test eax, eax
je 0x47d7f5
lea eax, [ebp - 0x238]
push 0x4cc708
push eax
call fcn.00482dc6
add esp, 8
test eax, eax
je 0x47d7f5
push 0x4ca150
lea ecx, [ebp - 0x274]
push edi
push ecx
call fcn.004784e0
add esp, 0xc
lea edx, [ebp - 0x238]
push edx
push eax
lea eax, [ebp - 0x268]
push eax
mov byte [ebp - 4], 1
call fcn.004784e0
add esp, 0xc
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 3
call fcn.00404200
push 0x20
lea ecx, [ebp - 0x268]
call fcn.0040a2e0
push eax
call esi
test byte [ebp - 0x264], 0x10
lea ecx, [ebp - 0x268]
je 0x47d7e1
push ecx
call fcn.0047d6b0
add esp, 4
jmp 0x47d7e6
call fcn.0047dad0
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0
call fcn.00404200
mov eax, dword [ebp - 0x270]
lea edx, [ebp - 0x264]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47d740
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
mov ecx, edi
call fcn.0040a2e0
push eax
call esi
mov ecx, edi
call fcn.0040a2e0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x47d867
mov edx, dword [edi]
push edx
push str.REBOOT_DEL_DIR__s
call fcn.0040c1e0
mov esi, eax
call fcn.00479510
add esp, 8
push 4
push 0
mov ecx, edi
call fcn.0040a2e0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x47d87e
mov eax, dword [edi]
push eax
push str.DEL_DIR__s
call fcn.0040c1e0
mov esi, eax
call fcn.00479510
add esp, 8
lea ecx, [ebp - 0x26c]
call fcn.00404200
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret
Function at 0x47d8b0
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4acf81
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4e06b8]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
push esi
mov eax, dword [0x4e06b8]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.0040a2e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47daaa
push 0x4cc6f8
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.004784e0
add esp, 0xc
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28c], 0
call fcn.0040a2e0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
je 0x47daa1
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [esp + 0xf], 0
lea esp, [esp]
lea eax, [esp + 0x50]
push 0x4cc704
push eax
call fcn.00482dc6
add esp, 8
test eax, eax
je 0x47da50
lea ecx, [esp + 0x50]
push 0x4cc708
push ecx
call fcn.00482dc6
add esp, 8
test eax, eax
je 0x47da50
push 0x4ca150
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.004784e0
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x294], 1
call fcn.004784e0
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x288], 3
call fcn.00404200
push 0x20
lea ecx, [esp + 0x14]
call fcn.0040a2e0
push eax
call ebx
test byte [esp + 0x24], 0x10
je 0x47d9f7
lea eax, [esp + 0x10]
push eax
call fcn.0047d6b0
add esp, 4
jmp 0x47da3f
mov ecx, dword [esp + 0x20]
call fcn.0040a2e0
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.00482dc6
add esp, 8
test eax, eax
jne 0x47da19
mov byte [esp + 0xf], 1
jmp 0x47da3f
mov edx, dword [esp + 0x10]
push edx
push str.DEL__s
call fcn.0040c1e0
mov esi, eax
call fcn.00479510
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0047dad0
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
mov byte [esp + 0x288], 0
call fcn.00404200
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47d960
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
mov ecx, edi
call fcn.0040a2e0
push eax
call ebx
cmp byte [esp + 0xf], 0
jne 0x47daa1
mov ecx, edi
call fcn.0040a2e0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x47daa1
push 4
push eax
mov ecx, edi
call fcn.0040a2e0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x14]
call fcn.00404200
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.00482469
mov esp, ebp
pop ebp
ret
Function at 0x47dad0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac8f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4e06b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040a2e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47db31
mov eax, dword [edi]
push eax
push 0x4ccdb0
call fcn.0040c1e0
mov esi, eax
call fcn.00479510
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0040a2e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x47db6b
mov ecx, dword [edi]
push ecx
push str.DEL__s_SUC
call fcn.0040c1e0
mov esi, eax
call fcn.00479510
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x10]
call fcn.004781e0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0040a2e0
push eax
mov ecx, edi
call fcn.0040a2e0
push eax
call fcn.0048407d
mov edx, dword [ebp - 0x10]
add esp, 8
push edx
push str.REBOOT_DEL__s_SUC
call fcn.0040c1e0
mov esi, eax
call fcn.00479510
add esp, 8
push 4
push 0
lea ecx, [ebp - 0x10]
call fcn.0040a2e0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x10]
call fcn.00404200
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47dd90
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab29b
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x130], esi
call fcn.0047e690
test al, al
je 0x47de0f
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x154]
cmp ax, 9
je 0x47dded
cmp ax, 6
jne 0x47ddfe
push str.win10_64
mov ecx, edi
call fcn.00404100
jmp 0x47df22
push str.win10_32
mov ecx, edi
call fcn.00404100
jmp 0x47df22
push 0x11c
lea ecx, [ebp - 0x12c]
push esi
push ecx
call fcn.00487e90
add esp, 0xc
push str.error
lea ecx, [ebp - 0x130]
call fcn.00404100
lea edx, [ebp - 0x12c]
mov dword [ebp - 4], esi
push edx
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47deff
mov eax, dword [ebp - 0x128]
sub eax, 5
je 0x47dedf
dec eax
jne case.default.0x47de73
mov eax, dword [ebp - 0x124]
cmp eax, 3
ja case.default.0x47de73
jmp dword [eax*4 + 0x47df4c]
cmp byte [ebp - 0x12], 1
lea ecx, [ebp - 0x130]
jne 0x47def5
push str.Vista
jmp 0x47defa
cmp byte [ebp - 0x12], 1
jne case.default.0x47de73
call fcn.0047e1f0
lea ecx, [ebp - 0x130]
test eax, eax
je 0x47deba
push str.win7_64
call fcn.004040e0
push eax
lea esi, [ebp - 0x130]
call fcn.00478ea0
jmp 0x47deff
push str.win7_32
call fcn.004040e0
push eax
lea esi, [ebp - 0x130]
call fcn.00478ea0
jmp 0x47deff
push str.Win8
lea ecx, [ebp - 0x130]
jmp 0x47defa
mov eax, dword [ebp - 0x124]
sub eax, esi
je case.default.0x47de73
dec eax
je 0x47df3e
dec eax
jne 0x47deff
lea ecx, [ebp - 0x130]
push str.other
call fcn.004040e0
lea ecx, [ebp - 0x130]
call fcn.00404180
call fcn.00469370
push eax
mov ecx, edi
call fcn.00403c90
lea ecx, [ebp - 0x130]
call fcn.00404200
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret
push 0x4cce94
lea ecx, [ebp - 0x130]
jmp 0x47defa

Function at 0x47e1f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
je 0x47e216
cmp ax, 6
je 0x47e216
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x47e220
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00487e90
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47e289
cmp dword [ebp - 0x11c], 6
jb 0x47e289
cmp dword [ebp - 0x118], 2
jb 0x47e289
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00482469
mov esp, ebp
pop ebp
ret
Function at 0x47e4c0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
mov esi, 0x100
push ecx
mov dword [ebp - 0x60c], esi
mov word [ebp - 0x204], ax
call fcn.00487e90
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x402]
push eax
mov word [ebp - 0x404], dx
call fcn.00487e90
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x602]
push edx
mov word [ebp - 0x604], cx
call fcn.00487e90
add esp, 0x24
lea eax, [ebp - 0x608]
push eax
lea ecx, [ebp - 0x204]
push ecx
mov dword [ebp - 0x608], esi
mov dword [ebp - 0x614], esi
mov dword [ebp - 0x610], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
pop esi
test eax, eax
jne 0x47e57b
push str.Fail_To_Get_UserName_n
call fcn.0048527b
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47e584
sub eax, edx
sar eax, 1
inc eax
mov dword [ebp - 0x608], eax
lea edx, [ebp - 0x618]
push edx
lea eax, [ebp - 0x610]
push eax
lea ecx, [ebp - 0x604]
push ecx
lea edx, [ebp - 0x614]
push edx
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x47e56b
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47e56b
lea eax, [ebp - 0x60c]
push eax
lea ecx, [ebp - 0x404]
push edi
push ecx
call fcn.0047e390
add esp, 0xc
test eax, eax
je 0x47e56b
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00482469
mov esp, ebp
pop ebp
ret

Function at 0x47e730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.00487e90
add esp, 0xc
push 0
push 0x25
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, esi
test eax, eax
je 0x47e78d
lea eax, [ebp - 0x20c]
push eax
jmp 0x47e792
push 0x4c60cc
call fcn.00404100
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00482469
mov esp, ebp
pop ebp
ret
Function at 0x47ede0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab1c2
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
push 0x258
mov dword [ebp - 0x270], eax
push eax
mov edi, edx
lea eax, [ebp - 0x26a]
xor edx, edx
push eax
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x274], ecx
mov word [ebp - 0x26c], dx
call fcn.00487e90
add esp, 0xc
mov ecx, edi
call fcn.0040a2e0
push eax
push 0x12c
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, dword [ebp - 0x274]
push 0x4c60cc
call fcn.0040a2e0
push eax
mov ecx, ebx
call fcn.0040a2e0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x26c]
push edx
mov ecx, esi
call fcn.00404100
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x270], 1
call fcn.0047e860
mov edi, eax
call fcn.0047e7b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret 4
Function at 0x47f180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab0fb
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.0049f7a0
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2020]
push eax
push 0x20019
mov dword [ebp - 0x201c], 0
push 0
mov dword [ebp - 0x2024], 0x20019
call fcn.0040a2e0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47f2a0
xor ecx, ecx
push 0x2000
push ecx
lea edx, [ebp - 0x2012]
push edx
mov word [ebp - 0x2014], cx
call fcn.00487e90
add esp, 0xc
lea eax, [ebp - 0x201c]
push eax
lea ecx, [ebp - 0x2014]
push ecx
lea edx, [ebp - 0x2024]
push edx
push 0
mov ecx, edi
mov dword [ebp - 0x201c], 0x1000
call fcn.0040a2e0
push eax
mov eax, dword [ebp - 0x2020]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47f2a0
mov ecx, dword [ebp - 0x2020]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2018]
call fcn.00403600
lea edx, [ebp - 0x2014]
push edx
push 0x4cd1b8
lea edx, [ebp - 0x2018]
mov dword [ebp - 4], 0
call fcn.0047e8e0
add esp, 8
lea ecx, [ebp - 0x2018]
call fcn.00404180
call fcn.00469370
push eax
mov ecx, esi
call fcn.00403c90
lea ecx, [ebp - 0x2018]
call fcn.00404200
jmp 0x47f2ac
push 0x4c60cc
mov ecx, esi
call fcn.00404100
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret
Function at 0x47f5c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab04b
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xffffff00
lea eax, [ebp - 0x81c]
add edx, 0x200
push eax
or edx, 0x20019
push edx
push 0
mov dword [ebp - 0x820], 0
call fcn.0040a2e0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x47f63e
push 0x4c60cc
mov ecx, esi
call fcn.00404100
jmp 0x47f6ed
xor eax, eax
push 0x800
push eax
lea ecx, [ebp - 0x812]
push ecx
mov word [ebp - 0x814], ax
call fcn.00487e90
add esp, 0xc
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x820], 0x400
call fcn.00403600
lea edx, [ebp - 0x820]
push edx
lea eax, [ebp - 0x814]
push eax
push 0
push 0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0040a2e0
mov ecx, dword [ebp - 0x81c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47f6bd
lea edx, [ebp - 0x814]
push edx
push 0x4cd1b8
lea edx, [ebp - 0x818]
call fcn.0047e8e0
add esp, 8
mov eax, dword [ebp - 0x81c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x818]
call fcn.00404180
call fcn.00469370
push eax
mov ecx, esi
call fcn.00403c90
lea ecx, [ebp - 0x818]
call fcn.00404200
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret

Function at 0x47f710
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebp - 0x24]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
je 0x47f738
cmp ax, 6
jne 0x47f779
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47f7aa
push str.RegDeleteKeyExW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47f7a3
mov ecx, dword [ebp + 8]
push 0
push 0x100
push ebx
push ecx
call eax
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47f7aa
push str.RegDeleteKeyW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47f7a3
mov edx, dword [ebp + 8]
push ebx
push edx
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f9f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab018
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e06b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, ecx
xor eax, eax
mov dword [ebp + 0xc], eax
mov edx, dword [esi + 0xc]
lea ecx, [ebp + 0xc]
push ecx
push edx
push eax
lea ecx, [esi + 8]
mov dword [ebp + 0xc], eax
call fcn.0040a2e0
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 0x2000
push esi
call fcn.00485705
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x10], esi
call fcn.00487e90
mov edx, dword [ebp + 0xc]
add esp, 0x10
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x47faa8
add esi, 0x1000
push esi
push edi
call fcn.00484e38
mov ecx, dword [ebp + 0xc]
add esp, 8
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push ebx
push ecx
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x47fa78
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47fab0
sub eax, edx
jne 0x47fad6
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
push 0x4c60cc
mov ecx, esi
call fcn.00404100
jmp 0x47fb14
mov esi, dword [ebp - 0x10]
shr esi, 1
push edi
dec esi
lea edi, [ebp - 0x14]
call fcn.0047fb30
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, edi
call fcn.00404180
call fcn.00469370
mov esi, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00403c90
mov ecx, edi
call fcn.00404200
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 8
Function at 0x47feb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad572
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
mov eax, dword [0x4e06b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00480030
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040a2e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47ffdd
mov ecx, esi
call fcn.00404180
call fcn.00469370
push eax
lea ecx, [ebp - 0x4c]
call fcn.00403c90
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [ebp - 0x4c]
call fcn.00480d10
push str.sres
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00404100
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, edi
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00480e70
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00404200
lea ecx, [ebp - 0x14]
call fcn.00403b60
lea ecx, [ebp - 0x14]
test eax, eax
je 0x47ffae
call fcn.00404180
call fcn.00469370
mov esi, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00403c90
lea ecx, [ebp - 0x14]
call fcn.00404200
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x47ff9f
push 1
call fcn.004077a0
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebp - 0x4c]
jmp 0x480001
call fcn.00404200
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x47ffc8
push 1
call fcn.004077a0
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00404200
lea edx, [ebp - 0x2c]
push edx
call fcn.0047f940
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.0040a2e0
mov esi, dword [ebp + 8]
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0047f9f0
lea ecx, [ebp - 0x24]
call fcn.00404200
lea ecx, [ebp - 0x18]
call fcn.00404200
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret