joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430034
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x58bd90]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x430079
push 0x513a38
push 4
push eax
call fcn.00454f38
push eax
call fcn.00401280
add esp, 0x10
jmp 0x43008f
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43010f
push edi
call fcn.00457aa4
mov edi, dword [eax]
call fcn.00457aa4
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004552b6
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00457aa4
cmp dword [eax], 0
je 0x4300e3
call fcn.00457aa4
push dword [eax]
call fcn.0041684c
pop ecx
jmp 0x4300ea
call fcn.00457aa4
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x43010f
cmp dword [ebp - 0x234], esi
jae 0x43010f
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x430111
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045463b
leave
ret
Function at 0x4306de
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x58bd90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00402740
pop ecx
cmp eax, esi
je 0x4307c8
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4307c8
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.004576e0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x4307c8
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x4307c8
cmp esi, 0x14
jge 0x4307c8
push 0x10
push 0
push edi
call fcn.00459b72
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4307b7
call fcn.00457aa4
cmp dword [eax], 0x22
je 0x4307b7
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.004571c9
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x43078d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x595510], 0
jne 0x430853
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x43087c
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00430034
pop ecx
pop ecx
test eax, eax
jne 0x43087e
inc edi
cmp edi, esi
jl 0x430859
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045463b
leave
ret 8
Function at 0x433759
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4337a1
call fcn.004167c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4337a1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4337e4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4337cd
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4337cd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x4337e1
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x440190
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x4e17c3
call fcn.004575c8
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401830
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4401f2
call fcn.0041604b
cmp eax, 1
jne 0x4401f2
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00402ff0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00402150
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401510
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401510
mov eax, esi
call fcn.004576a0
ret 0x10

Function at 0x44021b
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x4e17c3
call fcn.004575c8
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401830
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x44027d
call fcn.0041604b
cmp eax, 1
jne 0x44027d
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00402ff0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00402150
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401510
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401510
mov eax, esi
call fcn.004576a0
ret 0x14

Function at 0x45463b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58bd90]
jne 0x454645
repz ret
jmp fcn.0045b390
Function at 0x463a4a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58bd90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045ae63
and dword [ebp - 0x14], 0
cmp dword [0x596690], 0
mov dword [ebp - 0x18], eax
jne 0x463afd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x463ba5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x519ad0
push ebx
call edi
test eax, eax
je 0x463ba5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x519ac0
push ebx
mov dword [0x596690], eax
call edi
push eax
call esi
push 0x519aac
push ebx
mov dword [0x596694], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x596698], eax
call edi
push eax
call esi
mov dword [0x5966a0], eax
test eax, eax
je 0x463afd
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x59669c], eax
mov eax, dword [0x59669c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x463b56
cmp dword [0x5966a0], ecx
je 0x463b56
push eax
call esi
push dword [0x5966a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x463b56
test ebx, ebx
je 0x463b56
call edi
test eax, eax
je 0x463b4d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x463b4d
test byte [ebp - 8], 1
jne 0x463b56
or dword [ebp + 0x10], 0x200000
jmp 0x463b89
mov eax, dword [0x596694]
cmp eax, dword [ebp - 0x18]
je 0x463b89
push eax
call esi
test eax, eax
je 0x463b89
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x463b89
mov eax, dword [0x596698]
cmp eax, dword [ebp - 0x18]
je 0x463b89
push eax
call esi
test eax, eax
je 0x463b89
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x596690]
call esi
test eax, eax
je 0x463ba5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x463ba7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045463b
leave
ret
Function at 0x46aa3d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x596724], 0
push esi
push edi
jne 0x46a9b3
call fcn.0046a91f
test eax, eax
je 0x46a9f8
mov eax, dword [0x596724]
cmp eax, 1
jne 0x46a9d4
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x46a9f8
jmp 0x46aa3a
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x46aa3a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x46a9fc
xor eax, eax
jmp 0x46aa3a
mov eax, dword [esi]
push dword [0x596724]
call edi
mov edi, eax
test edi, edi
je 0x46aa1e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x46aa3a
lea edi, [esi + 0xff0]
push esi
push dword [0x596724]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x46aa24
mov eax, esi
pop edi
pop esi
ret
jmp 0x46a99f
Function at 0x473650
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x58bd90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp byte [0x599de4], 0
jne 0x4736b3
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [esi + 1]
test eax, eax
je 0x4736a6
mov eax, dword [ebp - 0x114]
cmp eax, 5
ja 0x4736a2
jne 0x4736a6
cmp dword [ebp - 0x110], ecx
jb 0x4736a6
mov al, cl
jmp 0x4736a8
xor al, al
mov byte [0x599de5], al
mov byte [0x599de4], cl
cmp byte [0x599de5], 0
je 0x4736c1
mov esi, pe_nt_image_headers32
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push ecx
push 0x46fde0
push 0xa
push edx
call dword [sym.imp.WINMM.dll_timeSetEvent]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045463b
mov esp, ebp
pop ebp
ret
Function at 0x4736f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
cmp ebx, 0xffffffff
je 0x473717
cmp ebx, esi
je 0x473717
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
push esi
push esi
lea ecx, [ebp - 0x14]
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
jb 0x473852
push edi
nop
mov edi, ebx
cmp ebx, 0xa
jbe 0x47373c
mov edi, 0xa
push 0x40
push edi
push 0
lea edx, [ebp - 0x14]
push edx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov esi, eax
cmp esi, 1
je 0x473764
cmp esi, 0x102
jne 0x4737e1
cmp edi, ebx
je 0x4737e1
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp ebx, 0xffffffff
je 0x473797
test ebx, ebx
je 0x473797
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebp - 8]
cmp ecx, ebx
jbe 0x473792
xor ebx, ebx
jmp 0x473794
sub ebx, ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x4737c6
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 0xc], eax
cmp eax, 2
jae 0x4737bf
push 2
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 4], 1
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
cmp esi, 1
jae 0x473730
cmp dword [ebp - 4], 0
pop edi
je 0x473850
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 8
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 8
je 0x473850
mov eax, dword [0x599de0]
test eax, eax
jne 0x473825
push str.AMUnblock
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x599de0], eax
test eax, eax
je 0x47383e
push 1
push eax
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
mov eax, dword [0x599de0]
jne 0x473825
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473de0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e456a
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x58bd90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edi, [esi + 0x18]
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0
je 0x473e40
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x4738a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
mov dword [ebp - 4], 0xffffffff
push edi
test eax, eax
je 0x473e28
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x475cc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e31cc
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x58bd90]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x58bd90]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edi
test esi, esi
jne 0x475d16
mov eax, 0x80004003
jmp 0x475e16
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp eax, dword [ebx + 0xc]
je 0x475d2f
mov eax, 0x80040203
jmp 0x475e16
test edi, edi
je 0x475d4d
mov dword [edi], 0
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x14], 0
je 0x475e04
jmp 0x475d64
cmp dword [ebp + 0xc], 1
jbe 0x475d39
mov eax, 0x80070057
jmp 0x475e16
mov esi, dword [esp + 0x18]
push 0x48
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004576e0
mov eax, 1
add esp, 0xc
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x78], 0
mov eax, dword [ebx + 4]
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
lea edi, [esp + 0x1c]
push edi
push eax
mov eax, dword [edx + 0x34]
call eax
test eax, eax
jne 0x475def
push 0x48
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [esi], eax
mov esi, edi
test eax, eax
je 0x475df3
add dword [esp + 0x18], 4
mov edi, eax
xor eax, eax
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov eax, 1
add dword [esp + 0x14], eax
sub dword [ebp + 0xc], eax
mov dword [esp + 0x78], 0xffffffff
jne 0x475d60
jmp 0x475e00
lea esi, [esp + 0x1c]
mov dword [esp + 0x78], 0xffffffff
call fcn.0047a370
mov edi, dword [esp + 0x10]
test edi, edi
je 0x475e0e
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
xor eax, eax
cmp dword [ebp + 0xc], eax
setne al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0045463b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4762e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e45bb
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x58bd90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp esi, ebx
jne 0x47632a
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
lea eax, [edi - 0xc]
test eax, eax
je 0x47633c
lea eax, [edi + 4]
mov dword [ebp + 0x10], eax
jmp 0x476341
mov dword [ebp + 0x10], ebx
mov eax, ebx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [esi], eax
mov dword [esi + 4], eax
lea ecx, [ebp - 0x34]
mov dword [esi + 8], eax
push ecx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x476449
lea edx, [ebx - 1]
test dword [ebp - 0x18], edx
jne 0x476449
cmp dword [edi + 0x44], 1
jne 0x4763af
mov eax, dword [ebp + 0x10]
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x8004020f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x20]
cmp eax, dword [edi + 0x30]
jge 0x4763e1
mov ecx, dword [ebp + 0x10]
push ecx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80040210
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 4]
add eax, dword [ecx + 0xc]
mov dword [ebp + 8], eax
cdq
idiv ebx
test edx, edx
je 0x4763f6
sub ebx, edx
add dword [ebp + 8], ebx
mov eax, dword [ebp + 8]
sub eax, dword [ecx + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x34], eax
mov dword [esi + 4], eax
mov eax, dword [ecx]
mov dword [edi + 0x2c], eax
mov dword [esi], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x38], eax
mov dword [esi + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edi + 0x3c], ecx
mov dword [esi + 0xc], ecx
mov dword [edi + 0x40], 1
push edx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x8004020e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x478980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e569f
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x58bd90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esi + 0xc]
mov dword [esi], vtable.CMemAllocator.0
mov dword [eax], vtable.CMemAllocator.1.0
push eax
mov dword [ebp - 4], 0
call fcn.00476480
call fcn.004760b0
mov dword [ebp - 4], 2
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4789dc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4789eb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esi + 0x10]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00404600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4c7f
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x58bd90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x596858
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, edi
cmp edi, eax
jne 0x479bee
mov ecx, esi
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov edx, 1
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x30], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x34], ecx
lea ecx, [esi + 0x58]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], edx
mov dword [ebp - 4], 2
push ecx
mov dword [esi], vtable.CSource.1.0
mov dword [esi + 0xc], vtable.CSource.2.0
mov dword [esi + 0x10], vtable.CSource.0
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x481df0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x58bd90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x21c], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x481e2f
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045463b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x214]
push eax
push 0x2000000
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x481ef5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x224]
push ecx
mov ecx, dword [ebp - 0x214]
push eax
push eax
push eax
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
push ecx
mov dword [ebp - 0x218], 0x104
call esi
test eax, eax
jne 0x481eda
jmp 0x481e90
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push edx
push eax
call fcn.00481df0
add esp, 8
lea ecx, [ebp - 0x224]
push ecx
mov ecx, dword [ebp - 0x214]
push 0
push 0
push 0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
push ecx
mov dword [ebp - 0x218], 0x104
call esi
test eax, eax
je 0x481e90
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x21c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0045463b
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4e13
mov eax, dword fs:[0]
push eax
mov eax, dword [0x58bd90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], vtable.DSUtil::PinTemplate.0
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov edx, vtable.CArray_struct__GUID__struct__GUID_const__.0
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x1c], ecx
mov dword [ebp - 4], ecx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4