joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471520
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00471090
mov esi, esp
push 0
push 0
push 0
push str.http:__guanjia.qq.com_user_
push 0x4d7918
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp esi, esp
call fcn.004c39d6
push 0x1f9
mov ecx, dword [ebp - 4]
call fcn.0046c190
pop esi
add esp, 4
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret

Function at 0x4717c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00471090
mov esi, esp
push 0
push 0
push 0
push str.http:__guanjia.qq.com_about_certification.htmlcert1
push 0x4d796c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp esi, esp
call fcn.004c39d6
push 0x1fb
mov ecx, dword [ebp - 4]
call fcn.0046c190
pop esi
add esp, 4
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret

Function at 0x473370
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jne 0x4733ae
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c8], 0
je 0x4733ac
mov esi, esp
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x3c8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, esp
call fcn.004c39d6
jmp 0x4733e1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c4], 0
je 0x4733e1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x3c8], 0
je 0x4733e1
mov esi, esp
push 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x3c8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, esp
call fcn.004c39d6
push 0
mov ecx, dword [ebp - 4]
call fcn.004732a0
pop esi
add esp, 4
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret 8
Function at 0x476d70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
push esi
push edi
lea edi, [ebp - 0x878]
mov ecx, 0x21e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4f3280]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x214], 0
push 0x208
push 0
lea eax, [ebp - 0x212]
push eax
call fcn.004a1d00
add esp, 0xc
mov esi, esp
push 0x104
lea ecx, [ebp - 0x214]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp esi, esp
call fcn.004c39d6
mov word [ebp - 0x428], 0
push 0x208
push 0
lea edx, [ebp - 0x426]
push edx
call fcn.004a1d00
add esp, 0xc
mov word [ebp - 0x63c], 0
push 0x208
push 0
lea eax, [ebp - 0x63a]
push eax
call fcn.004a1d00
add esp, 0xc
mov word [ebp - 0x850], 0
push 0x208
push 0
lea ecx, [ebp - 0x84e]
push ecx
call fcn.004a1d00
add esp, 0xc
lea edx, [ebp - 0x850]
push edx
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x63c]
push ecx
lea edx, [ebp - 0x214]
push edx
call fcn.00476770
add esp, 0x10
mov word [ebp - 0x85c], 1
mov word [ebp - 0x868], 0
mov dword [ebp - 0x874], 0
movzx eax, word [ebp - 0x428]
test eax, eax
je 0x476ebf
lea ecx, [ebp - 0x874]
push ecx
lea edx, [ebp - 0x868]
push edx
lea eax, [ebp - 0x85c]
push eax
lea ecx, [ebp - 0x428]
push ecx
call fcn.00476c50
add esp, 0x10
test eax, eax
jne 0x476ebf
mov word [ebp - 0x85c], 1
mov word [ebp - 0x868], 0
mov dword [ebp - 0x874], 0
push 0xffffffffffffffff
push 0
push 0x804
push 1
push 1
mov edx, dword [ebp - 0x874]
push edx
mov ax, word [ebp - 0x868]
push eax
mov cx, word [ebp - 0x85c]
push ecx
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp esi, esp
call fcn.004c39d6
push eax
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x63c]
push eax
push 0x4d684c
call fcn.00475c70
add esp, 0x30
push 0x4d685c
push 0x2710
call fcn.00476680
add esp, 8
call fcn.00476590
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x476f58]
call fcn.004c39f9
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1723
add esp, 0x878
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret

Function at 0x4770a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x4770be
cmp dword [ebp + 0x10], 0
jne 0x4770ce
lea ecx, [ebp - 0xc]
mov dword [ebp + 0x10], ecx
mov esi, esp
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x477101
call fcn.0040a130
jmp 0x477103
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x477128]
call fcn.004c39f9
pop eax
pop edx
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x477150
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x477182
jmp 0x4771bd
mov esi, esp
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4771b6
jmp 0x4771bd
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret 0x10

Function at 0x477ee0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push esi
push edi
push ecx
lea edi, [ebp - 0x130]
mov ecx, 0x4c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4f3280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x128], 0
push 0x118
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.004a1d00
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
mov esi, esp
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x477f97
push 0x11c
push 0
lea edx, [ebp - 0x128]
push edx
call fcn.004a1d00
add esp, 0xc
mov dword [ebp - 0x128], 0x114
mov esi, esp
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x477fb0
cmp dword [ebp - 0x124], 6
sbb eax, eax
add eax, 1
jmp 0x477fb2
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x477fe0]
call fcn.004c39f9
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1723
add esp, 0x130
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret
Function at 0x478100
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 1
mov esi, esp
push str.Globalpcfix_svc_shutdown_event
push 0
push 1
call fcn.00478200
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4781e8
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp esi, esp
call fcn.004c39d6
mov esi, esp
push str.Globalpcfixsvc_instance_mutex
push 1
call fcn.00478200
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4781d5
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004c39d6
cmp eax, 0xb7
jne 0x4781c2
mov esi, esp
push 0x2710
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.004c39d6
cmp eax, 0x102
jne 0x4781c2
mov dword [ebp - 4], 0
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004c39d6
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004c39d6
mov eax, dword [ebp - 4]
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret

Function at 0x478320
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 1
mov esi, esp
push str.Global_rtp_svc_shutdown_event
push 0
push 1
call fcn.00478200
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x478408
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp esi, esp
call fcn.004c39d6
mov esi, esp
push str.Global_rtpsvc_instance_mutex
push 1
call fcn.00478200
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4783f5
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004c39d6
cmp eax, 0xb7
jne 0x4783e2
mov esi, esp
push 0x2710
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.004c39d6
cmp eax, 0x102
jne 0x4783e2
mov dword [ebp - 4], 0
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004c39d6
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004c39d6
mov eax, dword [ebp - 4]
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret
Function at 0x478420
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x478452
jmp 0x47847f
mov esi, esp
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x478478
jmp 0x47847f
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret 4

Function at 0x4785f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], 0xcccccccc
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
call fcn.0048eca0
test eax, eax
je 0x478648
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, esp
call fcn.004c39d6
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x478648
mov esi, esp
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.004c39d6
jmp 0x47860f
mov edi, dword [ebp + 8]
call fcn.0048eca0
pop edi
pop esi
add esp, 4
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret

Function at 0x478cd0
Capabilities:
Unload minifilter driver

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0xcccccccc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
call fcn.00478a60
add esp, 4
test eax, eax
jne 0x478d02
xor eax, eax
jmp 0x478d23
call fcn.00478b70
push str.TFsFlt
call sub.FLTLIB.DLL_FilterUnload
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x478d1e
xor eax, eax
jmp 0x478d23
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x478d44]
call fcn.004c39f9
pop eax
pop edx
add esp, 0x10
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret
Function at 0x478d60
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push esi
push edi
lea edi, [ebp - 0x42c]
mov ecx, 0x10b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4f3280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push str.SYSTEMCurrentControlSetServices_
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.004a4d7c
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x478db6
jmp 0x478e27
mov dword [ebp - 8], 0
jmp 0x478dc8
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jae 0x478e27
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x428]
push eax
call fcn.004a4d7c
add esp, 0xc
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0x1c
mov edx, dword [ecx + 0x4f4880]
push edx
push 0x104
lea eax, [ebp - 0x428]
push eax
call fcn.004a6a5a
add esp, 0xc
mov esi, esp
lea ecx, [ebp - 0x428]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp esi, esp
call fcn.004c39d6
jmp 0x478dbf
push edx
mov ecx, ebp
push eax
lea edx, [0x478e58]
call fcn.004c39f9
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1723
add esp, 0x42c
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret

Function at 0x478e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
push edi
lea edi, [ebp - 0x428]
mov ecx, 0x10a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4f3280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov esi, esp
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp esi, esp
call fcn.004c39d6
push str.System32Drivers_
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call fcn.004a6a5a
add esp, 0xc
call fcn.0048c520
test eax, eax
je 0x478f05
mov dword [0x4f488c], 0x4d4640
mov dword [ebp - 8], 0
jmp 0x478f17
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 1
jae 0x478f6f
mov eax, dword [ebp - 8]
imul eax, eax, 0x1c
mov ecx, dword [eax + 0x4f488c]
push ecx
lea edx, [ebp - 0x214]
push edx
push 0x4d465c
push 0x104
lea eax, [ebp - 0x424]
push eax
call fcn.004a54fd
add esp, 0x14
push str._DelLocal__SetupDll__DeleteFiles...
mov esi, 0x4f8948
call fcn.0048a930
add esp, 4
push 0
lea ecx, [ebp - 0x424]
push ecx
call fcn.0048cb90
add esp, 8
jmp 0x478f0e
push edx
mov ecx, ebp
push eax
lea edx, [0x478fa0]
call fcn.004c39f9
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1723
add esp, 0x428
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret
Function at 0x479ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x479ed4
jmp 0x479f0f
mov esi, esp
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x479f08
jmp 0x479f0f
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x479f34]
call fcn.004c39f9
pop eax
pop edx
pop esi
add esp, 0x18
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret 0xc

Function at 0x479f50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x479f82
jmp 0x479fbb
mov esi, esp
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 3
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x479fb4
jmp 0x479fbb
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47aca0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push edi
lea edi, [ebp - 0x21c]
mov ecx, 0x87
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4f3280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov word [ebp - 0x214], 0
push 0x206
push 0
lea eax, [ebp - 0x212]
push eax
call fcn.004a1d00
add esp, 0xc
mov dword [ebp - 0x21c], 0
mov esi, esp
push 0x103
lea ecx, [ebp - 0x214]
push ecx
push 0x4d34b8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, esp
call fcn.004c39d6
lea edx, [ebp - 0x214]
push edx
call fcn.0047adb0
add esp, 4
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x47ad39
jmp 0x47ad58
push 0x103
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a6a1d
add esp, 0xc
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x47ad8c]
call fcn.004c39f9
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1723
add esp, 0x21c
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret
Function at 0x47adb0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
push esi
push edi
lea edi, [ebp - 0x648]
mov ecx, 0x192
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4f3280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov word [ebp - 0x214], 0
push 0x206
push 0
lea eax, [ebp - 0x212]
push eax
call fcn.004a1d00
add esp, 0xc
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x21c], ecx
lea edx, [ebp - 0x214]
mov dword [ebp - 0x220], edx
mov word [ebp - 0x42c], 0
push 0x206
push 0
lea eax, [ebp - 0x42a]
push eax
call fcn.004a1d00
add esp, 0xc
mov dword [ebp - 0x434], 0
mov word [ebp - 0x640], 0
push 0x206
push 0
lea ecx, [ebp - 0x63e]
push ecx
call fcn.004a1d00
add esp, 0xc
lea edx, [ebp - 0x214]
mov dword [ebp - 0x648], edx
mov esi, esp
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp esi, esp
call fcn.004c39d6
test eax, eax
je 0x47ae8c
jmp 0x47b01e
mov esi, esp
lea ecx, [ebp - 0x42c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp esi, esp
call fcn.004c39d6
test eax, eax
jne 0x47aeb5
jmp 0x47b01e
push 0x104
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.004a6a1d
add esp, 0xc
push 0x4d3520
lea ecx, [ebp - 0x214]
push ecx
call fcn.00430030
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x47af08
mov dword [ebp - 0x434], 1
lea edx, [ebp - 0x214]
mov dword [ebp - 0x21c], edx
jmp 0x47af17
mov eax, dword [ebp - 0x21c]
add eax, 4
mov dword [ebp - 0x21c], eax
push 0x4d3528
mov ecx, dword [ebp - 0x21c]
add ecx, 2
push ecx
call fcn.00430030
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x47afe4
mov edx, dword [ebp - 0x21c]
mov word [edx], 0
cmp dword [ebp - 0x434], 0
je 0x47af7e
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x42c]
push ecx
push 0x4d352c
push 0x104
lea edx, [ebp - 0x640]
push edx
call fcn.004a54fd
add esp, 0x14
jmp 0x47af9e
mov eax, dword [ebp - 0x220]
push eax
push 0x4d3538
push 0x104
lea ecx, [ebp - 0x640]
push ecx
call fcn.004a54fd
add esp, 0x10
mov esi, esp
push 0
lea edx, [ebp - 0x640]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp esi, esp
call fcn.004c39d6
test eax, eax
jne 0x47afd4
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004c39d6
cmp eax, 0xb7
je 0x47afd4
jmp 0x47b01e
mov eax, dword [ebp - 0x21c]
mov word [eax], 0x5c
jmp 0x47af17
mov esi, esp
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp esi, esp
call fcn.004c39d6
test eax, eax
jne 0x47b017
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004c39d6
cmp eax, 0xb7
je 0x47b017
jmp 0x47b01e
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x47b050]
call fcn.004c39f9
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1723
add esp, 0x648
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret
Function at 0x47b760
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esi]
add eax, eax
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov dword [esp + 8], eax
lea eax, [esp + 0x10]
push eax
push 0
mov dword [esi], 0
mov edx, dword [ecx]
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
shr ecx, 1
test eax, eax
mov dword [esi], ecx
jne 0x47b7b1
mov eax, dword [esp + 8]
cmp eax, 1
je 0x47b7af
cmp eax, 2
je 0x47b7af
mov eax, 0xd
pop ecx
ret 4
xor eax, eax
pop ecx
ret 4

Function at 0x47c030
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x4f3280]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
je 0x47c178
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.RtlGetVersion
push str.ntdll.dll
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x118
mov edi, eax
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.004a1d00
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x30], 0x11c
je 0x47c097
lea ecx, [esp + 0x30]
push ecx
call edi
test eax, eax
je 0x47c0bb
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [esp + 0x30]
push edx
call edi
cmp eax, ebx
jne 0x47c0bb
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 0x114
call edi
cmp eax, ebx
je 0x47c0f0
movzx edx, word [esp + 0x34]
mov ecx, dword [esi + 0x14]
mov word [ecx + 0x38], dx
mov eax, dword [esi + 0x14]
mov cx, word [esp + 0x38]
mov word [eax + 0x3a], cx
mov edx, dword [esi + 0x14]
mov ax, word [esp + 0x144]
mov word [edx + 0x3e], ax
movzx edx, word [esp + 0x3c]
mov ecx, dword [esi + 0x14]
mov word [ecx + 0x3c], dx
jmp 0x47c10c
mov eax, dword [esi + 0x14]
mov word [eax + 0x38], bx
mov ecx, dword [esi + 0x14]
mov word [ecx + 0x3a], bx
mov edx, dword [esi + 0x14]
mov word [edx + 0x3e], bx
mov eax, dword [esi + 0x14]
mov word [eax + 0x3c], bx
xor eax, eax
push str.GetNativeSystemInfo
push 0x4e1c00
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
pop edi
pop ebp
je 0x47c154
lea ecx, [esp + 4]
push ecx
call eax
jmp 0x47c15f
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x14]
mov cx, word [esp + 4]
mov word [eax + 0x40], cx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edx, dword [esi + 0x14]
mov word [edx + 0x42], ax
mov ecx, dword [esp + 0x144]
pop ebx
xor ecx, esp
call fcn.004a1723
add esp, 0x144
ret