joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8ac0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x634b28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push dword [ebp + 0x10]
movzx eax, word [ebp + 0xc]
xor bl, bl
mov esi, dword [ebp + 8]
push eax
push esi
mov byte [ebp - 0x11], bl
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45a82f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45a82f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x45a82f
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp ebx, eax
jbe 0x45a7e6
cmp ebx, 0x7fffffff
ja 0x45a843
push ebx
mov ecx, esi
call fcn.004580e0
add ebx, edi
cmp edi, ebx
je 0x45a82d
mov cl, byte [edi]
mov eax, dword [esi + 4]
mov byte [ebp + 0xf], cl
cmp eax, dword [esi + 8]
je 0x45a801
mov byte [eax], cl
inc dword [esi + 4]
inc edi
jmp 0x45a7e8
lea ecx, [ebp + 0xf]
push ecx
push eax
mov ecx, esi
call fcn.0044ab70
inc edi
jmp 0x45a7e8
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00409080
int3
Function at 0x45c3a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp edx, eax
je 0x45c513
cmp dword [edx + 0x1c], 0x10
mov eax, dword [ecx + 4]
push esi
mov dword [ebp - 0x18], eax
mov esi, edx
mov eax, dword [ecx + 0xc]
push edi
mov dword [ebp - 0x14], eax
lea edi, [edx + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x10]
jb 0x45c3db
mov edi, dword [edi]
xor edx, edx
push ebx
mov ebx, 0x811c9dc5
test eax, eax
je 0x45c404
mov ecx, eax
lea esp, [esp]
movzx eax, byte [edx + edi]
inc edx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp edx, ecx
jb 0x45c3f0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x14]
and eax, ebx
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
lea ecx, [ecx]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.0045b410
push 0x38
push edi
call fcn.0057b69e
mov eax, dword [ebp - 4]
add esp, 8
dec dword [eax + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x45c46d
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x45c420
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jne 0x45c508
mov ecx, dword [ebp - 0xc]
pop ebx
pop edi
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
jne 0x45c47f
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
jmp 0x45c482
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x45c508
lea esp, [esp]
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
mov ebx, dword [edx + 0x10]
jb 0x45c49e
mov edx, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
test ebx, ebx
je 0x45c4c1
lea esp, [esp]
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x45c4b0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x14]
and eax, edi
lea eax, [ecx + eax*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.0045b410
push 0x38
push edi
call fcn.0057b69e
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp + 0xc]
dec dword [ecx + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x45c519
cmp esi, eax
jne 0x45c4d8
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
pop ebx
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
mov dword [ecx], edi
mov dword [ecx + 4], edi
cmp esi, eax
jne 0x45c490
mov ecx, dword [ebp - 8]
pop ebx
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x45e500
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b916d
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.0057bfb0
mov eax, dword [0x634b28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x104c], esi
mov dword [ebp - 0x1048], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x1044]
mov dword [ebp - 4], 0
push ecx
push 0x1000
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1048], 1
push ecx
push eax
mov dword [ebp - 0x1044], 0
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x45e6cf
xor edi, edi
test dword [ebp - 0x1044], 0xfffffffc
jbe 0x45e6cf
lea esp, [esp]
push dword [ebp + edi*4 - 0x1010]
lea eax, [ebp - 0x1040]
push eax
call fcn.0045e700
add esp, 8
push eax
lea ecx, [ebp - 0x1028]
mov dword [ebp - 4], 1
call fcn.00457bb0
mov ecx, dword [esi + 4]
mov byte [ebp - 4], 2
cmp ecx, dword [esi + 8]
je 0x45e62e
mov eax, dword [ebp - 0x1028]
mov edx, 7
mov dword [ecx], eax
mov eax, dword [ebp - 0x1024]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x1020]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x101c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x1018]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x1014]
mov dword [ecx + 0x14], eax
xor eax, eax
add dword [esi + 4], 0x18
mov word [ebp - 0x1028], ax
jmp 0x45e643
lea eax, [ebp - 0x1028]
push eax
push ecx
mov ecx, esi
call fcn.0045dac0
mov edx, dword [ebp - 0x1014]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x45e67d
mov ecx, dword [ebp - 0x1028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e673
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e6ec
push edx
push ecx
call fcn.0057b69e
add esp, 8
mov edx, dword [ebp - 0x102c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x45e6bd
mov ecx, dword [ebp - 0x1040]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e6b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e6ec
push edx
push ecx
call fcn.0057b69e
add esp, 8
mov eax, dword [ebp - 0x1044]
inc edi
shr eax, 2
cmp edi, eax
jb 0x45e5b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret
call fcn.00582360
int3
Function at 0x45ec50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.0057bfb0
mov eax, dword [0x634b28]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push 0x1000
push eax
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1008], eax
lea eax, [ebp - 0x1004]
push eax
mov dword [ebp - 0x1054], 0
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1058], 0x44
call fcn.0057e5f0
push esi
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.00587e1d
add esp, 0x18
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1058]
push eax
push 0
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x45ee02
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x45edd4
mov esi, dword [ebp - 0x1014]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x1074]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test ebx, ebx
je 0x45edd9
push ebx
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x45edd9
mov edi, 1
push dword [ebp - 0x1014]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1010]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret

Function at 0x45ee20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45ee4b
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebp
ret
Function at 0x45faa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9400
mov eax, dword fs:[0]
push eax
mov eax, 0x3044
call fcn.0057bfb0
mov eax, dword [0x634b28]
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
mov ebx, dword [ebp + 8]
push 0x5d2be8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x45fca9
lea eax, [ebp - 0x3020]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x800
lea eax, [ebp - 0x2010]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x3038]
push eax
call fcn.00460260
add esp, 4
mov esi, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x45fb38
mov esi, dword [esi]
call fcn.0045fa00
cmp dword [eax + 0x2c], 8
lea ecx, [eax + 0x18]
jb 0x45fb48
mov ecx, dword [ecx]
movzx eax, word [ebp - 0x3014]
push eax
movzx eax, word [ebp - 0x3016]
push eax
movzx eax, word [ebp - 0x3018]
push eax
movzx eax, word [ebp - 0x301a]
push eax
movzx eax, word [ebp - 0x301e]
push eax
movzx eax, word [ebp - 0x3020]
push eax
push esi
push ecx
lea eax, [ebp - 0x2010]
push eax
push 0x5d2c00
lea eax, [ebp - 0x3010]
push 0x800
push eax
call fcn.0045b020
add esp, 0x30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3038]
call fcn.004047c6
lea eax, [ebp - 0x1010]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x3010]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x303c], eax
cmp eax, 0xffffffff
je 0x45fca9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x5d2c40
push edi
mov dword [ebp - 0x3050], eax
mov dword [ebp - 0x304c], ebx
mov dword [ebp - 0x3048], 0
mov dword [ebp - 0x3044], 0
mov dword [ebp - 0x3040], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x45fca9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x3044]
push ecx
push 0
lea ecx, [ebp - 0x3050]
push ecx
push 0
push dword [ebp - 0x303c]
push eax
push esi
call ebx
test eax, eax
je 0x45fca9
push dword [ebp - 0x303c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x63d078]
test eax, eax
je 0x45fca5
lea ecx, [ebp - 0x1010]
push ecx
call eax
add esp, 4
mov al, 1
jmp 0x45fcab
xor al, al
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.0057b6ac
mov esp, ebp
pop ebp
ret
Function at 0x460190
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x5d2bac
call edi
test eax, eax
je 0x4601b9
push 0x5d2bc4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x4601da
push 0x5d2b30
call edi
test eax, eax
je 0x460258
push 0x5d2bc4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x460258
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 7
push esi
call edi
test eax, eax
je 0x460258
cmp byte [ebp + 8], 0
jne 0x46022a
mov eax, dword [esi]
mov dword [0x63d07c], eax
movzx eax, word [esi + 4]
mov word [0x63d080], ax
movzx eax, byte [esi + 6]
mov byte [0x63d082], al
mov eax, dword [0x5d2be0]
mov dword [esi], eax
movzx eax, word [0x5d2be4]
mov word [esi + 4], ax
movzx eax, byte [0x5d2be6]
jmp 0x460249
cmp byte [0x63d07c], 0
je 0x46024c
mov eax, dword [0x63d07c]
mov dword [esi], eax
mov ax, word [0x63d080]
mov word [esi + 4], ax
mov al, byte [0x63d082]
mov byte [esi + 6], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 7
push esi
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x460260
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b94e7
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x634b28]
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 - 0x218], ebx
mov dword [ebp - 0x214], 0
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx edi, ax
shr edi, 8
call dword [sym.imp.KERNEL32.dll_GetVersion]
push edi
movzx eax, al
push eax
push 0x5d2b88
lea eax, [ebp - 0x210]
push 0xff
push eax
call fcn.0045b020
lea eax, [ebp - 0x210]
add esp, 0x14
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460300
sub eax, edx
mov ecx, ebx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040657e
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x23c], 9
mov ecx, ebx
push 4
jne 0x460340
push 0x5d2b94
jmp 0x460345
push 0x5d2ba0
call fcn.0040657e
mov eax, ebx
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.0057b6ac
mov esp, ebp
pop ebp
ret
Function at 0x461fa0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x634b28]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x210], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
mov dword [ebp - 0x214], eax
push esi
lea esi, [ebp - 0x20c]
test ecx, ecx
je 0x462015
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4621a4
mov eax, dword [ebp - 0x214]
push edi
push 0
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
jne 0x46218c
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
inc ecx
inc eax
mov dword [ebp - 0x21c], ecx
cmp ecx, eax
mov dword [ebp - 0x220], eax
cmovb ecx, eax
mov dword [ebp - 0x218], ecx
cmp ecx, 0x104
jbe 0x46209a
lea eax, [ecx + ecx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x462094
lea edi, [eax + 8]
jmp 0x462172
mov ecx, dword [ebp - 0x218]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ecx
push eax
push esi
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x462101
push esi
push dword [ebp - 0x214]
call fcn.00461fa0
mov edi, eax
test edi, edi
jne 0x462172
mov eax, dword [ebp - 0x218]
push edi
push edi
push edi
push edi
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push esi
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4620c2
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x462117
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x462172
mov eax, dword [ebp - 0x218]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x462172
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
jne 0x462172
mov eax, dword [ebp - 0x218]
push edi
push edi
push edi
push edi
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x462140
lea eax, [ebp - 0x20c]
cmp esi, eax
je 0x46218c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x224], 0
je 0x4621a1
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret 8
Function at 0x4621c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x1c]
mov ebx, 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4622c8
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4622bf
mov eax, dword [ebp - 0x10]
inc eax
push esi
mov dword [ebp - 0x14], eax
xor esi, esi
add eax, eax
push edi
push eax
call fcn.005823cc
mov edi, eax
mov dword [ebp - 0x20], esi
add esp, 4
mov dword [ebp - 0x1c], esi
test edi, edi
je 0x4622bd
cmp dword [ebp - 0xc], esi
jbe 0x4622b4
test ebx, ebx
je 0x4622b4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4622ae
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x1c]
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4622ae
push dword [ebp + 0x18]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [ebp + 0x14]
push dword [ebp - 8]
dec eax
neg eax
sbb eax, eax
and ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x462246
push edi
call fcn.005823b1
add esp, 4
pop edi
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4622d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x46238b
mov eax, dword [ebp - 4]
xor ecx, ecx
inc eax
mov edx, 2
xor esi, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005460f3
add esp, 4
mov edi, eax
cmp dword [ebp - 8], esi
jbe 0x462382
mov eax, dword [ebp - 4]
push 0
inc eax
mov dword [ebp - 0xc], 0
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x46237c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x46237c
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push edi
push dword [ebp + 0x14]
push ebx
call dword [ebp + 0xc]
sub eax, 1
je 0x462397
inc esi
cmp esi, dword [ebp - 8]
jb 0x462335
push edi
call fcn.005460ee
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.005460ee
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462670
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b96dd
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x634b28]
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
mov edx, dword [ebp + 8]
mov ecx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
lea esi, [ecx + 2]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4626c4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040491a
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], 0
lea ecx, [edx - 1]
cmp edx, ecx
jbe 0x46285c
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
cmp edi, 8
cmovae eax, ebx
cmp word [eax + ecx*2], 0x5c
jne 0x462797
cmp edx, ecx
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0
cmovb ecx, edx
mov dword [ebp - 0x2c], 7
cmp edi, 8
push ecx
cmovae eax, ebx
lea ecx, [ebp - 0x40]
push eax
call fcn.0040491a
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x462773
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462769
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x462861
push edx
push ecx
call fcn.0057b69e
add esp, 8
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
push 0
push 0x5d356c
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4627f1
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4627f1
push eax
push 0
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4627f1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x48]
cmp edi, 8
lea eax, [ebp - 0x28]
cmovae eax, ebx
push eax
call fcn.004623b0
mov edx, dword [ebp - 0x14]
add esp, 8
mov esi, eax
cmp edx, 8
jb 0x46283e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462834
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x462861
push edx
push ecx
call fcn.0057b69e
add esp, 8
mov eax, esi
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.0057b6ac
mov esp, ebp
pop ebp
ret
call fcn.004048b9
call fcn.00582360
int3