joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f800
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
test eax, eax
push edi
jne 0x42f825
mov eax, dword [ecx]
call dword [eax]
test eax, eax
je 0x42f8a2
mov eax, dword [eax + 4]
pop edi
xor eax, 0x56437663
pop esi
pop ecx
ret 4
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42f8a2
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 8]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push esi
call edi
test eax, eax
je 0x42f8a2
cmp dword [esp + 8], 4
jne 0x42f8a2
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push esi
call edi
test eax, eax
je 0x42f8a2
cmp dword [esp + 8], 4
jne 0x42f8a2
mov ecx, dword [esp + 0x10]
push esi
xor ecx, 0x56437663
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ecx
ret 4
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4

Function at 0x42fcd0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esi + 0x10]
push ebx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [esi + 4], edx
repne scasb al, byte es:[edi]
not ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 8], 1
test edx, edx
pop edi
pop esi
sete al
pop ebx
ret 8

Function at 0x42fd20
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor ecx, ecx
xor edx, edx
cmp eax, ecx
mov dword [esi + 4], eax
sete dl
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov eax, edx
pop esi
ret 4

Function at 0x42fd54
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ecx, ecx
xor edx, edx
cmp eax, ecx
mov dword [esi + 4], eax
sete dl
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov eax, edx
pop esi
ret 8

Function at 0x430c00
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov eax, edx
mov esi, 8
test al, 1
je 0x430c17
shr eax, 1
xor eax, 0xedb88320
jmp 0x430c19
shr eax, 1
dec esi
jne 0x430c0a
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0x100
jl 0x430c03
pop esi
ret

Function at 0x430c30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
xor edx, edx
mov esi, ecx
test edi, edi
not eax
jle 0x430c68
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor ecx, ecx
mov ebx, eax
mov cl, byte [edx + ebp]
and ebx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [esi + ecx*4]
xor eax, ecx
inc edx
cmp edx, edi
jl 0x430c4a
pop ebp
pop ebx
pop edi
pop esi
not eax
ret 0xc
Function at 0x4380f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x479a20
cmp edx, dword [eax]
je 0x43811b
add eax, 8
inc ecx
cmp eax, 0x479ab0
jl 0x43810c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x479a20]
jne 0x438249
mov eax, dword [0x47cab0]
cmp eax, 1
je 0x438223
test eax, eax
jne 0x43814c
cmp dword [0x4771d4], 1
je 0x438223
cmp edx, 0xfc
je 0x438249
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x438183
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00438a70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004335d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4381c6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004335d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x460d6c
push edi
call fcn.004320c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00438a70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00438a80
lea eax, [ebp - 0xa0]
push 0x460d4c
push eax
call fcn.00438a80
push dword [esi + 0x479a24]
lea eax, [ebp - 0xa0]
push eax
call fcn.00438a80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0043a2bb
add esp, 0x2c
pop edi
jmp 0x438249
lea eax, [ebp + 8]
lea esi, [esi + 0x479a24]
push 0
push eax
push dword [esi]
call fcn.004335d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x43cf80
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
ret
Function at 0x4491d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00431ce0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x44929b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x44929b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x44924e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x449259
or bh, 8
and edi, 0x8000000
je 0x449274
mov eax, dword [0x47e99c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x44929b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x44969b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4496bf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4496da
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x44b9be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x44b9e0
cmp dword [edi + 0x3c], 0
jne 0x44b9e0
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0045a111
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0044ba0d
pop edi
pop esi
pop ebx
ret 8

Function at 0x44e058
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x44e090
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045083c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00450814
jmp 0x44e09c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x44f866
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x44f8a8
call fcn.0045a111
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x44f8a8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x44f89f
xor eax, eax
jmp 0x44f8b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0044f8b6
pop edi
pop esi
pop ebx
ret 4
Function at 0x401040
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x441df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4553d4]
mov dword [esp], eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
call fcn.00434a9f
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x459468]
test eax, eax
je 0x4010d8
push 0
call fcn.004248d3
lea ecx, [esp + 8]
mov dword [esp + 8], eax
push ecx
call fcn.00424773
mov edx, dword [esp + 8]
mov ecx, dword [eax]
add esp, 8
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push ecx
mov ecx, dword [0x459468]
push edx
push eax
push str.__02d:_02d:_02d___s
push ecx
call fcn.00424737
mov edx, dword [0x459468]
push edx
call fcn.004245d1
add esp, 0x1c
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call fcn.0043602c
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x404778
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4428f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 0x68]
mov dword [esp + 0x1c], 0xe
call fcn.0043602c
mov ebx, dword [esi + 0x60]
mov edi, dword [esi + 0x5c]
cmp edi, ebx
mov byte [esp + 0x1c], 0xd
je 0x4047ad
mov ecx, edi
call fcn.0043602c
add edi, 4
cmp edi, ebx
jne 0x40479f
mov eax, dword [esi + 0x5c]
push eax
call fcn.004365b6
xor ebx, ebx
add esp, 4
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov ebp, dword [esi + 0x50]
mov edi, dword [esi + 0x4c]
mov byte [esp + 0x1c], 0xc
cmp edi, ebp
je 0x4047e1
mov ecx, edi
call fcn.0043602c
add edi, 4
cmp edi, ebp
jne 0x4047d3
mov eax, dword [esi + 0x4c]
push eax
call fcn.004365b6
add esp, 4
lea ecx, [esi + 0x44]
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov byte [esp + 0x1c], 0xb
call fcn.0043602c
lea ecx, [esi + 0x40]
mov byte [esp + 0x1c], 0xa
call fcn.0043602c
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], 9
call fcn.0043602c
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 8
call fcn.0043602c
lea ecx, [esi + 0x34]
mov byte [esp + 0x1c], 7
call fcn.0043602c
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 6
call fcn.0043602c
lea ecx, [esi + 0x2c]
mov byte [esp + 0x1c], 5
call fcn.0043602c
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 4
call fcn.0043602c
lea ecx, [esi + 0x24]
mov byte [esp + 0x1c], 3
call fcn.0043602c
lea ecx, [esi + 0x1c]
mov byte [esp + 0x1c], 2
call fcn.0043602c
lea ecx, [esi + 0x14]
mov byte [esp + 0x1c], 1
call fcn.0043602c
lea ecx, [esi + 0x10]
mov byte [esp + 0x1c], bl
call fcn.0043602c
lea ecx, [esi + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0043602c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x408c20
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x408cd1
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x408cd1
lea eax, [esp + 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x408cc7
push eax
call fcn.0043658d
mov esi, eax
add esp, 4
test esi, esi
jne 0x408c68
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x14]
push esi
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x408cbe
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0x453734
push esi
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x408cbe
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408cbe
mov ecx, dword [eax + 8]
push esi
mov dword [ebx + 4], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx], edx
call fcn.004365b6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
push esi
call fcn.004365b6
add esp, 4
pop edi
pop esi
mov eax, 0x80004005
pop ebx
pop ecx
ret
pop edi
pop esi
mov eax, 0x80070057
pop ebx
pop ecx
ret
Function at 0x409c70
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x443038
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x409c99
xor eax, eax
jmp 0x409dcc
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x409ca9
cmp byte [ebx], 0x5c
jne 0x409ca9
inc ebx
jne 0x409ca1
mov eax, dword [esi + 8]
test eax, eax
je 0x409cea
mov eax, dword [esi + 0x14]
lea edi, [esi + 0x14]
push ebx
push eax
call fcn.0042528b
add esp, 8
test eax, eax
jne 0x409cea
mov eax, dword [esi + 0x18]
mov ebp, dword [esp + 0x28]
mov ecx, eax
or ecx, ebp
cmp ecx, eax
jne 0x409cea
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
setne al
test al, al
je 0x409d7f
mov ecx, esi
call fcn.00409c20
lea edi, [esi + 0x14]
push ebx
mov ecx, edi
call fcn.004361b5
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x18], eax
lea eax, [esi + 0xc]
mov edx, dword [ecx - 8]
lea ebp, [esi + 0x10]
test edx, edx
jne 0x409d1d
push ebx
mov ecx, ebp
call fcn.004361b5
jmp 0x409d5c
push eax
mov ecx, ebp
call fcn.00436165
mov edx, dword [edi]
mov eax, dword [edx - 8]
test eax, eax
je 0x409d5c
push edi
lea eax, [esp + 0x24]
push 0x5c
push eax
call fcn.004345f6
push eax
mov ecx, ebp
mov dword [esp + 0x1c], 0
call fcn.0043642f
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.0043602c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebp, dword [ebp]
mov eax, dword [esi + 4]
and edx, 0xff
push ecx
push edx
push ebp
push eax
call fcn.004099d0
add esp, 0x10
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x409daa
lea ecx, [esi + 0x10]
call fcn.00435fb7
mov ecx, edi
call fcn.00435fb7
push 0x4546e4
mov ecx, edi
call fcn.004361b5
mov dword [esi + 0x18], 0
jmp 0x409dc9
push 0
push 0
push 0
push 0
push 0
lea ecx, [esi + 0x1c]
push 0
push ecx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x409c87
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x443038
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x409c99
xor eax, eax
jmp 0x409dcc
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x409ca9
cmp byte [ebx], 0x5c
jne 0x409ca9
inc ebx
jne 0x409ca1
mov eax, dword [esi + 8]
test eax, eax
je 0x409cea
mov eax, dword [esi + 0x14]
lea edi, [esi + 0x14]
push ebx
push eax
call fcn.0042528b
add esp, 8
test eax, eax
jne 0x409cea
mov eax, dword [esi + 0x18]
mov ebp, dword [esp + 0x28]
mov ecx, eax
or ecx, ebp
cmp ecx, eax
jne 0x409cea
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
setne al
test al, al
je 0x409d7f
mov ecx, esi
call fcn.00409c20
lea edi, [esi + 0x14]
push ebx
mov ecx, edi
call fcn.004361b5
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x18], eax
lea eax, [esi + 0xc]
mov edx, dword [ecx - 8]
lea ebp, [esi + 0x10]
test edx, edx
jne 0x409d1d
push ebx
mov ecx, ebp
call fcn.004361b5
jmp 0x409d5c
push eax
mov ecx, ebp
call fcn.00436165
mov edx, dword [edi]
mov eax, dword [edx - 8]
test eax, eax
je 0x409d5c
push edi
lea eax, [esp + 0x24]
push 0x5c
push eax
call fcn.004345f6
push eax
mov ecx, ebp
mov dword [esp + 0x1c], 0
call fcn.0043642f
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.0043602c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebp, dword [ebp]
mov eax, dword [esi + 4]
and edx, 0xff
push ecx
push edx
push ebp
push eax
call fcn.004099d0
add esp, 0x10
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x409daa
lea ecx, [esi + 0x10]
call fcn.00435fb7
mov ecx, edi
call fcn.00435fb7
push 0x4546e4
mov ecx, edi
call fcn.004361b5
mov dword [esi + 0x18], 0
jmp 0x409dc9
push 0
push 0
push 0
push 0
push 0
lea ecx, [esi + 0x1c]
push 0
push ecx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc

Function at 0x409ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x18]
mov esi, ecx
test edi, edi
jne 0x409eb3
pop edi
xor al, al
pop esi
ret 0x10
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x409ec7
pop edi
xor al, al
pop esi
ret 0x10
mov ecx, dword [esp + 0xc]
push 0x20019
push 0
push ecx
mov ecx, esi
call fcn.00409c70
test eax, eax
jne 0x409ee5
pop edi
xor al, al
pop esi
ret 0x10
mov eax, 4
lea edx, [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esi + 8]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409f1d
pop edi
xor al, al
pop esi
ret 0x10
mov ecx, dword [esp + 0xc]
mov al, 1
mov dword [edi], ecx
pop edi
pop esi
ret 0x10
Function at 0x40a020
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x40a030
xor al, al
pop esi
ret 0xc
mov eax, dword [esp + 8]
push 0xf003f
push 1
push eax
mov ecx, esi
call fcn.00409c70
test eax, eax
jne 0x40a04d
xor al, al
pop esi
ret 0xc
mov edx, dword [esp + 0x10]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
test edx, edx
je 0x40a089
test ecx, ecx
je 0x40a089
inc ecx
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esi + 8]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edx, edx
pop esi
test eax, eax
sete dl
mov al, dl
ret 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 8]
push 1
push 0x459560
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edx, edx
pop esi
test eax, eax
sete dl
mov al, dl
ret 0xc
Function at 0x40a0b0
Capabilities:
Delete registry value
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x443088
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x40a0e8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov ebx, dword [esp + 0x20]
push 0xf003f
push 0
push ebx
mov ecx, esi
call fcn.00409c70
test eax, eax
jne 0x40a114
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov edx, dword [esp + 0x24]
push edi
test edx, edx
je 0x40a13d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40a13d
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, eax
jmp 0x40a21c
mov ecx, dword [esi + 0x1c]
push ebp
inc ecx
push ecx
call fcn.0043658d
mov edx, dword [esi + 0x1c]
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push 0
inc edx
push 0
lea ecx, [esp + 0x38]
push 0
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 8]
push ecx
push edi
push 0
push edx
call ebp
test eax, eax
je 0x40a1f0
mov eax, dword [0x4553d4]
mov dword [esp + 0x28], eax
push edi
push ebx
lea ecx, [esp + 0x30]
push 0x4546e8
push ecx
mov dword [esp + 0x30], 0
call fcn.00434dec
mov edx, dword [esp + 0x38]
add esp, 0x10
mov ecx, esi
push 0
push edx
call fcn.0040a0b0
push 0xf003f
push 0
push ebx
mov ecx, esi
call fcn.00409c70
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043602c
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 0
inc eax
push 0
lea edx, [esp + 0x38]
push 0
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 8]
push edx
push edi
push 0
push eax
call ebp
test eax, eax
jne 0x40a178
push edi
call fcn.004365b6
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
lea edi, [esi + 0x10]
add esp, 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, edi
mov ebx, eax
call fcn.00435fb7
lea ecx, [esi + 0x14]
call fcn.00435fb7
pop ebp
mov ecx, dword [esp + 0x14]
xor eax, eax
test ebx, ebx
pop edi
pop esi
sete al
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8