joyce8/EMBER2024-capa huggingface dataset:
Function at 0x567836
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0xc]
lea eax, [ebp - 0xc]
push eax
push esi
mov eax, edi
call fcn.0056758e
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
call fcn.0054b506
mov byte [ebp - 1], al
mov eax, edi
call fcn.00544db1
call fcn.00544e7c
mov edi, eax
mov eax, esi
mov eax, dword [eax + 8]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], edi
call fcn.0054bb24
mov esi, dword [ebp + 0x10]
xor edi, edi
inc edi
mov ecx, ebx
cmp dword [ebp + 0x14], esi
jne 0x5678a5
push dword [ebp + 0x14]
push dword [ebp - 8]
push 0x49
pop eax
call fcn.0054a6fe
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
jmp 0x5678df
push dword [ebp - 8]
push 0x4a
pop eax
call fcn.0054a6ed
push esi
mov esi, dword [ebp + 0xc]
push dword [esi + 0x18]
mov dword [ebp - 0x10], eax
push 0x41
pop eax
mov ecx, ebx
call fcn.0054a6fe
push dword [ebp + 0x14]
mov eax, edi
push 0
mov ecx, ebx
call fcn.0054a6fe
mov eax, dword [ebp - 0x10]
add esp, 0x14
mov ecx, ebx
call fcn.00543eaf
cmp dword [ebp - 0x14], edi
jne 0x56790c
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 8]
push 0x15
pop eax
call fcn.0054a6fe
push dword [ebp - 8]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [esi + 0x18]
push 0x34
pop eax
call fcn.0054a669
jmp 0x5679e4
push edi
lea eax, [ebp - 1]
push eax
push 0
push edi
push dword [ebp - 8]
push ebx
push 0x1d
pop eax
call fcn.0054eede
add esp, 0x18
cmp dword [ebp - 0xc], 0
je 0x5679d1
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x14]
je 0x5679d1
push edi
push dword [ebp - 8]
push 0
push dword [esi + 0x18]
push ebx
push 0x32
pop eax
call fcn.0054ef0b
push dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0x4a
pop eax
mov ecx, ebx
call fcn.0054a6ed
push edi
push dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
push 0
push dword [esi + 0x18]
push ebx
push 0x32
pop eax
call fcn.0054ef0b
push dword [ebp - 0xc]
mov esi, eax
push 0xffffffffffffffff
push 7
pop eax
mov ecx, ebx
call fcn.0054a6fe
mov eax, esi
mov ecx, ebx
call fcn.00543eaf
push edi
push dword [ebp - 0xc]
mov ecx, ebx
push 0x14
pop eax
call fcn.0054a6fe
mov eax, dword [ebp + 0xc]
mov ecx, ebx
call fcn.00543eaf
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp - 0xc]
push 0x1a
pop eax
call fcn.0054a6fe
add esp, 0x44
push dword [ebp + 0x10]
mov eax, edi
push 0
mov ecx, ebx
call fcn.0054a6fe
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, ebx
call fcn.00543eaf
jmp 0x5679e7
push edi
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [esi + 0x18]
push ebx
push 0x31
pop eax
call fcn.0054ef0b
add esp, 0x14
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.00544e97
mov ecx, edi
call fcn.00544db5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x56a4de
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [eax]
mov eax, dword [ebp + 8]
mov dl, byte [edi]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
cmp dl, 0x4c
jne 0x56a511
push dword [ebp + 0x10]
push dword [edi + 0xc]
push eax
call fcn.005691bf
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x56a5cd
cmp dl, 0x49
jne 0x56a52e
mov eax, dword [ebp + 0x10]
push eax
push 0
mov dword [ebp - 8], eax
push 0xa
pop eax
call fcn.0054a6fe
pop ecx
pop ecx
jmp 0x56a5cd
mov ecx, dword [ebp + 0x10]
push ebx
push 0
push edi
mov dword [ebp - 8], ecx
call fcn.0056758e
mov ebx, dword [edi + 0x18]
mov ecx, dword [ebp - 4]
xor edi, edi
push edi
push ebx
mov dword [ebp - 0xc], eax
push 0x41
pop eax
call fcn.0054a6fe
add esp, 0x10
cmp dword [esi + 0x40], edi
jne 0x56a565
mov eax, dword [ebp - 4]
call fcn.0054a711
mov dword [esi + 0x28], eax
inc dword [esi + 0x40]
mov eax, dword [esi + 0x40]
mov edx, eax
mov eax, dword [ebp + 8]
push dword [eax]
mov eax, dword [esi + 0x44]
shl edx, 3
call fcn.0054811f
pop ecx
mov dword [esi + 0x44], eax
cmp eax, edi
je 0x56a5c9
cmp dword [ebp - 0xc], 1
mov ecx, dword [esi + 0x40]
push dword [ebp + 0x10]
lea edi, [eax + ecx*8 - 8]
mov ecx, dword [ebp - 4]
mov dword [edi], ebx
jne 0x56a5a7
push ebx
push 0x3d
pop eax
call fcn.0054a6fe
pop ecx
pop ecx
jmp 0x56a5b5
push 0
push ebx
push 0x1c
pop eax
call fcn.0054a669
add esp, 0xc
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
push 0x49
pop eax
call fcn.0054a6ed
pop ecx
jmp 0x56a5cc
mov dword [esi + 0x40], edi
pop ebx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.005465a1
mov eax, dword [ebp - 8]
pop ecx
pop edi
leave
ret
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0x413e64
lea eax, [ebp - 4]
mov esi, ecx
push 0x416f70
push eax
call fcn.004016cf
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x40102d
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0x413eb4
push esi
push 0
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4010a0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
test eax, eax
jle 0x4010a0
push 0x413eb4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x401069
xor esi, esi
jmp 0x4010a3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4010a3
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4010a3
push dword [ebp - 4]
push dword [ebp - 8]
push 1
push eax
call fcn.0040186d
push dword [ebp - 4]
mov ebx, eax
call fcn.004019a2
add esp, 0x14
jmp 0x4010a3
mov esi, dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401b4b
add esp, 4
test esi, esi
je 0x4010b9
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4010d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
mov dword [ebp - 0x28], 0
call fcn.00401bf3
push eax
call fcn.00401be3
xorps xmm0, xmm0
mov eax, 0x101
movdqu xmmword [ebp - 0x24], xmm0
add esp, 8
mov word [ebp - 0x24], ax
mov esi, 2
mov edi, edi
call fcn.00401bc2
and eax, 0x800000ff
jns 0x401123
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp + esi - 0x24], al
inc esi
cmp esi, 0x10
jl 0x401110
lea eax, [ebp - 0x28]
push eax
push 0x2011f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
js 0x401168
push 0x10
lea eax, [ebp - 0x24]
push eax
push 3
push 0
push 0x413e98
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x401176
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004015fc
mov esp, ebp
pop ebp
ret
Function at 0x401190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x104
push 0x416f70
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x4011c4
or esi, 0xffffffff
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
test esi, esi
js 0x401233
push str.guarder.sys
push 0x104
push 0x416f70
call fcn.00401f1b
xor ecx, ecx
add esp, 8
test esi, esi
setne cl
add ecx, 0x78
call fcn.00401000
push 0x5c
push 0x416f70
mov esi, eax
call fcn.00401ccc
add esp, 0xc
mov dword [0x417074], eax
test eax, eax
jne 0x401213
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
inc eax
push 0x5c
push eax
mov dword [0x417074], eax
call fcn.00401ccc
add esp, 8
mov dword [0x417074], eax
test eax, eax
je 0x40120b
inc eax
mov dword [0x417074], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401520
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x88], 0
je 0x401567
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push edi
push str.start_installer.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcA]
call fcn.004012f0
mov edi, eax
lea eax, [ebp - 0x84]
push edi
push str.execute_result__08X
push eax
call fcn.004015e0
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x88], 0
je 0x4015cd
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.004015fc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409938
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004072f0
mov dword [ebp - 0x14], eax
cmp dword [0x416f3c], esi
jne 0x409a2b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4099b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x409b0b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x409b0b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409b0b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x416f3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x416f40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x416f44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x416f4c], eax
test eax, eax
je 0x409a28
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x416f48], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x409a50
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x409a43
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x409a65
push 4
pop eax
jmp 0x409b0d
cmp dword [ebp - 0x14], esi
je 0x409a65
push dword [0x416f3c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x409a4a
mov eax, dword [0x416f48]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x409ac3
cmp dword [0x416f4c], edi
je 0x409ac3
push eax
call ebx
push dword [0x416f4c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x409ac3
test eax, eax
je 0x409ac3
call ecx
test eax, eax
je 0x409ab8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x409ab8
test byte [ebp - 8], 1
jne 0x409ac3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x409af3
mov eax, dword [0x416f40]
cmp eax, edi
je 0x409af0
push eax
call ebx
test eax, eax
je 0x409af0
call eax
mov esi, eax
test esi, esi
je 0x409af0
mov eax, dword [0x416f44]
cmp eax, edi
je 0x409af0
push eax
call ebx
test eax, eax
je 0x409af0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x416f3c]
call ebx
test eax, eax
je 0x409b0b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x409b0d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004015fc
mov esp, ebp
pop ebp
ret
Function at 0x1027a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1027a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1027a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1027a06a
add dl, dl
jne 0x1027a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1027a0dc
xor eax, eax
add dl, dl
jne 0x1027a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1027a17d
add dl, dl
jne 0x1027a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1027a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1027a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1027a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1027a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1027a075
mov eax, 1
add dl, dl
jne 0x1027a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1027a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1027a0e1
sub eax, ebx
mov ebx, 1
jne 0x1027a128
mov ecx, 1
add dl, dl
jne 0x1027a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1027a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1027a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1027a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1027a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1027a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1027a136
cmp eax, 0x7d00
jae 0x1027a16d
cmp eax, 0x500
jb 0x1027a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1027a075
cmp eax, 0x7f
ja 0x1027a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1027a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1027a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1027a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40231e
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0xf0000000
push 0x18
push 0x4223a9
push 0x4223a9
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40239d
push 0
push 0x18
push 0x4223a9
push 0x4223a9
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40239d
mov eax, 0x42231b
jmp 0x4023f7
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0040240f
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4023c2
push ebx
call fcn.00407250
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
mov eax, dword [ebp - 8]
test eax, eax
je 0x4023f2
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00407256
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4023f7
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402408
push ebx
call fcn.00407250
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4059f3
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x405a3a
cmp ebx, 0x20
je 0x405a3a
cmp ebx, 0xffffffe0
je 0x405a3a
jne 0x405a43
add eax, 1
cmp esi, eax
je 0x405a50
jne 0x405a1f
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x405a54
jne 0x405a1b
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x405a68
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x405b29
test ecx, ecx
je 0x405b29
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x405b29
test ebx, ebx
je 0x405b29
mov ebx, eax
add ebx, edx
je 0x405b29
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x405b29
cmp dword [edx + eax + 0x14], 0
je 0x405b29
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x405b29
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x405b19
test dl, dl
je 0x405b15
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x405b19
add edi, 2
add esi, 2
test dl, dl
jne 0x405af9
xor eax, eax
jmp 0x405b1e
sbb eax, eax
or eax, 1
test eax, eax
je 0x405b35
inc ebp
cmp ebp, dword [esp + 4]
jb 0x405ae6
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x406a96
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x406ac4
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x406abb
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x406ab3
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x406ae5
mov esp, ebp
pop ebp
ret

Function at 0x406ae9
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x406b55
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x406b82
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x406b71
xor ecx, eax
xor edx, ebx
dec edi
jne 0x406b62
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x406ba8
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x406b49
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x406bd4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407d30
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
call fcn.00409930
mov edi, dword [esp + 0x28]
mov ebp, eax
push edi
xor esi, esi
call dword [0x443054]
add esp, 8
test ebp, ebp
je 0x407dfa
test eax, eax
je 0x407dfa
inc eax
push ebx
push eax
call fcn.004153fe
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040a480
mov esi, eax
add esp, 0xc
test esi, esi
je 0x407d9c
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407dd6
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x407de9
mov eax, dword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push ebx
call fcn.00415427
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x408d80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebp
push esi
push edi
push eax
call fcn.00409930
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov ebp, eax
mov dword [esp + 0x18], esi
call dword [0x443054]
add esp, 8
test ebp, ebp
je 0x408e67
test eax, eax
je 0x408e67
inc eax
push ebx
push eax
call fcn.004153fe
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040a480
mov esi, eax
add esp, 0xc
test esi, esi
je 0x408dfb
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x408e4f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push esi
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408e3c
cmp eax, 0xea
jne 0x408e44
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00415427
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x114
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x114
ret