joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420140
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4beb20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x42025f
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x420196
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x420182
xor eax, eax
jmp 0x420196
lea eax, [esi + esi]
call fcn.004694c0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00418590
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42025f
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xc0000000
cmp eax, 0x80000000
jne 0x4201d5
mov edx, dword [ebp + 8]
push edx
call fcn.0041e7b0
add esp, 4
mov edi, eax
jmp 0x4201d8
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call esi
test eax, eax
jne 0x42025f
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x42025f
mov ebx, dword [edi + 0x3c]
push 0xf8
add ebx, edi
push ebx
call esi
test eax, eax
jne 0x42025f
cmp dword [ebx], 0x4550
jne 0x42025f
mov esi, dword [ebx + 0x80]
add esi, edi
cmp esi, ebx
je 0x42025f
mov eax, dword [esi + 0xc]
test eax, eax
je 0x42023d
lea ecx, [ecx]
mov ecx, dword [ebp + 0xc]
add eax, edi
push ecx
push eax
call fcn.0046bc29
add esp, 8
test eax, eax
je 0x42023d
mov eax, dword [esi + 0x20]
add esi, 0x14
test eax, eax
jne 0x420220
cmp dword [esi + 0xc], 0
je 0x42025f
mov esi, dword [esi + 0x10]
add esi, edi
cmp dword [esi], 0
je 0x42025f
lea ecx, [ecx]
mov ebx, dword [ebp - 0xc]
cmp dword [esi], ebx
je 0x420277
add esi, 4
cmp dword [esi], 0
jne 0x420250
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004694b0
mov esp, ebp
pop ebp
ret 0x10
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x4202ab
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 8]
push edx
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
push ecx
mov dword [esi], eax
mov edx, dword [ebp - 8]
push edx
push 4
push esi
call edi
mov eax, ebx
jmp 0x420261
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
mov eax, ebx
jmp 0x420261
Function at 0x4206c0
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x4beb20]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
push str.Begin_CDocumentMgr::monitorHook_pid__d_
mov dword [esp + 0x14], edi
call fcn.00420010
mov eax, dword [edi + 0x11ec]
add esp, 8
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x420811
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
push 0
push 0x401
call ebx
mov edi, eax
test edi, edi
je 0x4207f0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x4207e9
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esp + 0x1c]
push 0
push 0x989680
push ecx
push eax
call fcn.0046b090
test edx, edx
ja 0x42077a
cmp eax, 0xa
jbe 0x4207e9
xor edx, edx
push 0x3e
push edx
lea eax, [esp + 0x3a]
push eax
mov word [esp + 0x3c], dx
call fcn.00468830
push esi
lea ecx, [esp + 0x40]
push str.ODMHOOK__u
push ecx
call fcn.0046bc7b
add esp, 0x18
lea edx, [esp + 0x30]
push edx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
jne 0x4207e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x34]
push eax
push str.OpenEvent_Mutex__NULL__::TerminateProcess___s__error__d_
call fcn.00420010
add esp, 0xc
push 0
push esi
push 0
push 1
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4207e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x11ec]
push 0x1f4
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x420711
push str.End_CDocumentMgr::monitorHook
call fcn.00420010
mov ecx, dword [esp + 0x78]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004694b0
mov esp, ebp
pop ebp
ret 4
Function at 0x420b90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4beb20]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push edi
mov edi, dword [esp + 0x218]
lea eax, [esp + 0x80]
push eax
push 0x101
xor ebx, ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x420bd0
push str.Failed_to_load_winsock_stack_n
jmp 0x420c9f
mov eax, dword [esp + 0x80]
cmp al, 1
jne 0x420c9a
shr eax, 8
cmp al, 1
jne 0x420c9a
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0xc], str.time.windows.com
call fcn.0042f2d0
lea ecx, [esp + 0x34]
call fcn.0042eba0
lea ecx, [esp + 0x3c]
call fcn.0042eba0
lea ecx, [esp + 0x44]
call fcn.0042eba0
lea ecx, [esp + 0x4c]
call fcn.0042eba0
xor esi, esi
mov edx, dword [esp + esi*4 + 0xc]
push 0x7b
lea ecx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x70]
call fcn.0042f300
test eax, eax
jne 0x420c4c
inc esi
cmp esi, 1
jb 0x420c22
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
pop esi
jmp 0x420ca9
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x48]
call fcn.0042f120
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x6c]
call fcn.0042ef70
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.00419b00
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov ebx, 1
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
pop esi
jmp 0x420ca9
push str.Winsock_stack_does_not_support_version_which_this_program_requires_n
call fcn.0046bd52
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x210]
pop edi
pop ebx
xor ecx, esp
call fcn.004694b0
add esp, 0x20c
ret 4

Function at 0x420cd0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
push 8
mov esi, ecx
call fcn.00445cef
add esp, 4
push 0
push 0
mov edi, eax
mov eax, dword [esp + 0x14]
push 1
push 0
mov dword [edi], esi
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 4
push edi
push 0x420b50
push 0
push 0
mov dword [esi + 0x11ec], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 0x11e8], eax
pop esi
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_ResumeThread]

Function at 0x421a20
Capabilities:
Create process on windows

Disassembly:
jmp fcn.00420f80
mov ecx, dword [0x4c3390]
test ecx, ecx
jne 0x421a2d
xor eax, eax
ret
jmp 0x421790
Function at 0x423af0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48cceb
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x4beb20]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x4beb20]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x200
xor edi, edi
lea ecx, [esp + 0x3a]
xor eax, eax
push edi
push ecx
mov word [esp + 0x40], ax
call fcn.00468830
push 0x200
lea eax, [esp + 0x24e]
xor edx, edx
push edi
push eax
mov word [esp + 0x254], dx
call fcn.00468830
push 0x100
lea ecx, [esp + 0x258]
push ecx
push 0x100
lea edx, [esp + 0x58]
push edx
push edi
push edi
push edi
push edi
push esi
call fcn.0046a972
add esp, 0x3c
lea eax, [esp + 0x23c]
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.AcroRd32.exe
lea edx, [esp + 0x38]
push edx
call ebx
test eax, eax
jne 0x423bd8
push 4
lea eax, [esp + 0x14]
push eax
push 4
push str.bProtectedMode
push str.SoftwareAdobeAcrobat_Reader10.0Privileged
push closesocket
mov dword [esp + 0x28], edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [esp + 0x1c], str.acrord32.exe
mov dword [esp + 0x20], str.acrobat.exe
mov dword [esp + 0x24], str.ACDSeePro1.exe
mov dword [esp + 0x28], str.ACDSeePro2.exe
mov dword [esp + 0x2c], str.ACDSeePro3.exe
mov dword [esp + 0x30], str.Photoshop.exe
jmp 0x423c10
mov esi, dword [esp + edi*4 + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push esi
call ebx
test eax, eax
jne 0x423c61
lea ecx, [esp + 0x14]
call fcn.0042ca10
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
mov dword [esp + 0x460], 0
call fcn.0041afb0
lea ecx, [esp + 0x18]
call fcn.0042ca80
or ecx, 0xffffffff
mov dword [esp + 0x458], ecx
cmp eax, ecx
lea ecx, [esp + 0x14]
jne 0x423c92
call fcn.0042ca30
inc edi
cmp edi, 6
jb 0x423c10
mov eax, 1
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.004694b0
mov esp, ebp
pop ebp
ret 4
call fcn.0042ca30
xor eax, eax
jmp 0x423c6c
Function at 0x4254b0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x48ce30
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4beb20]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x1c], 0
call fcn.0041a0c0
add eax, 0x10
add esp, 4
mov dword [esp + 0xc], eax
push 1
push 0x4a38a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0041a840
lea ecx, [edi + 0x578]
test ecx, ecx
jne 0x425517
xor eax, eax
jmp 0x42552f
mov eax, ecx
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x425520
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0041a840
lea edx, [edi + 0x67a]
test edx, edx
jne 0x425548
xor eax, eax
jmp 0x42555f
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425550
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.0041a840
mov esi, dword [esp + 0xc]
push 0
push esi
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42559e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4255c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4255e0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x48ce60
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x4beb20]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], 0
call fcn.0041f440
test eax, eax
jne 0x425656
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42563f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
push 2
lea ecx, [esi + 0xabd]
push ecx
lea edi, [esi + 4]
push edi
call eax
add esp, 0xc
mov ecx, esi
mov ebp, eax
call fcn.0041f4f0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
test ebp, ebp
jne 0x425693
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x425633
push eax
call fcn.0041a0c0
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
push 0x4a38a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0041af70
lea ecx, [esi + 0x578]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041af70
add esi, 0x67a
push esi
lea ecx, [esp + 0x14]
call fcn.0041af70
mov esi, dword [esp + 0x10]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x425707
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42572f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
Function at 0x4289f0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push eax
mov dword [esi], vtable.CEt99Ex.0
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x428a9f
cmp eax, 0xffffffff
je 0x428a9f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.et_FindToken
push eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
push str.et_OpenToken
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.et_CloseToken
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 0xc]
push str.et_Verify
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0xc]
push str.et_Read
push eax
call edi
mov dword [esi + 0x24], eax
pop edi
cmp dword [esi + 0x14], ebx
je 0x428a9f
cmp dword [esi + 0x18], ebx
je 0x428a9f
cmp dword [esi + 0x1c], ebx
je 0x428a9f
cmp dword [esi + 0x20], ebx
je 0x428a9f
cmp eax, ebx
mov eax, esi
je 0x428aa1
mov dword [esi + 0x10], 1
pop esi
pop ebx
ret 4
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x428c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x428cae
xor eax, eax
pop ecx
ret 0x18
mov ecx, dword [esp + 0x18]
push esi
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret 0x18
Function at 0x428d70
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edi
lea eax, [esp + 4]
push eax
push 0x20019
xor edi, edi
push edi
push ecx
push edx
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x428d9e
xor eax, eax
pop edi
pop ecx
ret 0x10
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
shr eax, 0xa
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x200
mov edi, edi
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push ebx
push edi
push ecx
call ebp
mov esi, eax
inc edi
cmp esi, 0x103
je 0x428df9
cmp edi, dword [esp + 0x18]
ja 0x428df9
add ebx, 0x400
mov dword [esp + 0x1c], 0x200
test esi, esi
je 0x428dc0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x428e1a
cmp esi, 0x103
je 0x428e1a
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
pop ecx
ret 0x10
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
pop ecx
ret 0x10
Function at 0x42ae50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42ae7c
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x42aec0
Capabilities:
Check if file exists
Get file attributes
Persist via run registry key
Query environment variable

Disassembly:
sub esp, 0xa0c
mov eax, dword [0x4beb20]
xor eax, esp
mov dword [esp + 0xa08], eax
push esi
mov esi, dword [esp + 0xa14]
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x616]
push ecx
mov dword [esp + 0x10], 0x400
mov word [esp + 0x618], ax
call fcn.00468830
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x61c]
push eax
push 1
push str.CDGRegedit
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042ae50
add esp, 0x24
test eax, eax
jne 0x42af41
pop esi
mov ecx, dword [esp + 0xa08]
xor ecx, esp
call fcn.004694b0
add esp, 0xa0c
ret
push edi
xor ecx, ecx
push 0x400
push ecx
lea edx, [esp + 0x216]
push edx
mov word [esp + 0x218], cx
call fcn.00468830
add esp, 0xc
push 0x200
lea eax, [esp + 0x210]
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.EstTemp_
lea ecx, [esp + 0x210]
push ecx
call edi
lea edx, [esp + 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42afbc
test al, 0x10
je 0x42afbc
push 0x200
lea eax, [esp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x42b011
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0x16]
push edx
mov word [esp + 0x18], cx
call fcn.00468830
push 0
push 0
push 0
push 0
push 0x100
lea eax, [esp + 0x2c]
push eax
push 0x100
lea ecx, [esp + 0x638]
push esi
push ecx
mov dword [esi], 0
call fcn.0046a972
add esp, 0x30
lea edx, [esp + 0xc]
push edx
push esi
call edi
push str.TEMP_
push esi
call edi
mov ecx, dword [esp + 0xa10]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004694b0
add esp, 0xa0c
ret
Function at 0x42b030
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x380
mov eax, dword [0x4beb20]
xor eax, esp
mov dword [esp + 0x37c], eax
push esi
mov esi, dword [esp + 0x388]
push 0x3c
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x2c], 0
call fcn.00468830
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0x196]
push edx
mov word [esp + 0x198], cx
call fcn.00468830
lea eax, [esp + 0x198]
push eax
call fcn.0042aec0
push 0
push 0
push 0x100
lea ecx, [esp + 0x1a8]
push ecx
push 0
push 0
push 0
push 0
push esi
call fcn.0046a972
add esp, 0x40
lea edx, [esp + 0x180]
push str.ugs_router
push edx
call fcn.0046c092
add esp, 8
test eax, eax
jne 0x42b0df
xor eax, eax
pop esi
mov ecx, dword [esp + 0x37c]
xor ecx, esp
call fcn.004694b0
add esp, 0x380
ret
lea eax, [esp + 0x180]
push str.proe
push eax
call fcn.0046c092
add esp, 8
test eax, eax
je 0x42b0c7
lea ecx, [esp + 0x180]
push str.VSLauncher
push ecx
call fcn.0046c092
add esp, 8
test eax, eax
je 0x42b0c7
lea edx, [esp + 0x180]
push str.AcLauncher
push edx
call fcn.0046c092
add esp, 8
test eax, eax
je 0x42b0c7
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42b0c7
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0xc]
push eax
push 0x40
lea ecx, [esp + 0x150]
push ecx
push esi
call edi
test eax, eax
je 0x42b1dd
mov edx, 0x5a4d
cmp dx, word [esp + 0x144]
jne 0x42b1dd
push 0
lea eax, [esp + 0xc]
push eax
push 0x40
lea ecx, [esp + 0x30]
push ecx
push esi
call edi
test eax, eax
je 0x42b1dd
mov edx, dword [esp + 0x180]
push 0
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42b1dd
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
call edi
test eax, eax
je 0x42b1dd
cmp dword [esp + 0xc], 0x4550
jne 0x42b1dd
push 0
lea edx, [esp + 0xc]
push edx
push 0x14
lea eax, [esp + 0x1c]
push eax
push esi
call edi
test eax, eax
jne 0x42b1fd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x37c]
xor ecx, esp
call fcn.004694b0
add esp, 0x380
ret
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xe0
lea edx, [esp + 0x70]
push edx
push esi
call edi
push esi
test eax, eax
je 0x42b1de
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x384]
xor eax, eax
cmp word [esp + 0xa8], 2
pop edi
sete al
pop esi
xor ecx, esp
call fcn.004694b0
add esp, 0x380
ret
Function at 0x42b7b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x404
mov eax, dword [0x4beb20]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
push ebp
mov ebp, dword [esp + 0x410]
push esi
push edi
mov edi, dword [esp + 0x41c]
xor eax, eax
push 0x3fe
mov esi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.00468830
mov edx, dword [esi + 0x7c]
add esp, 0xc
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
jmp 0x42b810
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b810
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0xe], 0x5c
je 0x42b839
push 0x4a38a0
lea ecx, [esp + 0x14]
push ecx
call ebx
push str.PCID.DAT
lea edx, [esp + 0x14]
push edx
call ebx
mov ecx, dword [esi + 0x80]
lea eax, [esp + 0x10]
push eax
push 0
push str.Auto
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea edx, [esp + 0x10]
push edx
push 0x200
push edi
push 0
mov dword [ebp], eax
mov eax, dword [esi + 0x80]
push str.Pcid
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
test eax, eax
setg cl
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004694b0
add esp, 0x404
ret 8