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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a110
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4af6f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
mov edi, esi
mov dword [ebp - 0x14], 0
lea ecx, [edi + 1]
lea ebx, [ebx]
mov al, byte [edi]
inc edi
test al, al
jne 0x42c870
mov eax, dword [ebp + 0x10]
sub edi, ecx
cmp dword [ebp + 8], 0xffffffff
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
jne 0x42c8ab
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
push 0x38ac
call fcn.00470008
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42ca67
mov dword [ebx], 0xdddd
add ebx, 8
mov dword [ebp - 0x18], ebx
je 0x42ca67
push 2
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
mov eax, edi
neg eax
cdq
push edx
push eax
push dword [ebp + 8]
call fcn.00440130
add esp, 0x14
cmp dword [ebp - 0x20], 0xffffffff
jne 0x42c8ff
cmp dword [ebp - 0x1c], 0
je 0x42c945
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c945
push edi
push esi
push ebx
call fcn.0046ff90
add esp, 0xc
test eax, eax
jne 0x42c945
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42c926
sub esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], esi
mov esi, 1
mov dword [ecx + 4], 0
jmp 0x42c9ec
push 2
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push 0xffffffffffffffff
push 0xffffc75c
push dword [ebp + 8]
movlpd qword [ebp - 0x20], xmm0
call fcn.00440130
add esp, 0x14
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str.OffSet:__I64d
call fcn.004695f0
add esp, 0xc
cmp dword [ebp - 0x20], 0xffffffff
jne 0x42c984
cmp dword [ebp - 0x1c], 0
je 0x42c9e7
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38a4
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c9e7
push str.Readfile_ok
call fcn.004695f0
add esp, 4
push edi
push esi
push dword [ebp - 0x14]
push ebx
call fcn.00440ec0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c9e7
push str.memmem_ok
call fcn.004695f0
mov ecx, dword [ebp + 0x10]
mov eax, ebx
sub eax, esi
add esp, 4
add eax, 0x38a4
mov esi, 1
mov dword [ecx], eax
mov dword [ecx + 4], 0
jmp 0x42c9ec
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x42ca32
push dword [ecx + 4]
push dword [ecx]
push str.CheckFCWFile____Signature__found___offset_I64d_
call fcn.004695f0
add esp, 0xc
jmp 0x42ca3f
push str.CheckFCWFile____No_signature_found_
call fcn.004695f0
add esp, 4
add ebx, 0xfffffff8
cmp dword [ebx], 0xdddd
jne 0x42ca53
push ebx
call fcn.0046eb03
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42dca0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x68], eax
call fcn.004479c0
test eax, eax
jne 0x42dcf6
push 0x4c80c2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42dcf6
push str.CreateIAMCZone____No_active_connection__no_local_file_
call fcn.004695f0
add esp, 4
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x64], 0
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x2c
push eax
push ebx
call dword [sym.imp.USER32.dll_GetTitleBarInfo]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 6
call esi
push 0x2e
mov edi, eax
call esi
mov ecx, dword [ebp - 0x1c]
mov dl, byte [0x4c7eb8]
mov esi, dword [0x4c7eb0]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
cmp dl, 1
jne 0x42dd59
lea esi, [esi + edi*2]
jmp 0x42dd63
cmp dl, 2
jne 0x42dd63
add eax, edi
lea esi, [esi + eax*2]
push 6
lea eax, [esi + ecx]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
xor edi, edi
cmp dword [0x4c7e88], edi
je 0x42dda9
mov ecx, dword [0x4bd980]
test ecx, ecx
jne 0x42dd97
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x48]
mov eax, esi
sub eax, ecx
push eax
push 0
push ebx
call fcn.0043d980
add esp, 0xc
jmp 0x42ddaf
mov edi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x20]
mov cl, byte [0x4c7eb8]
xor edx, edx
mov eax, 0x50000000
cmp cl, 1
je 0x42ddcb
cmp cl, 2
jne 0x42ddd0
mov edx, 0x200
mov eax, 0x50800000
push 0
push dword [0x4b550c]
push 0
push ebx
push esi
push dword [ebp - 0x70]
push edi
push 0
push eax
push 0x48c8a4
push str.Static
push edx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x42de54
lea eax, [ebp - 0x60]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push str.CreateIAMCWindow
push dword [0x4b551c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42de37
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
push 0
push esi
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push 0
push 0
call eax
add esp, 0x20
mov dword [ebp - 0x64], eax
jmp 0x42de46
push str.CreateIAMCZone____Cant_find_the_function_CreateIAMCWindow_
call fcn.004695f0
add esp, 4
xor eax, eax
push eax
push str.CreateIAMCZone____hwndIAMC_d
call fcn.004695f0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x64]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
Function at 0x42df00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046f6e0
push 0x20
xor edi, edi
call fcn.0046e027
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42df54
xorps xmm0, xmm0
movdqu xmmword [esi], xmm0
movdqu xmmword [esi + 0x10], xmm0
jmp 0x42df56
xor esi, esi
mov dword [esi + 0xc], 0x4c7eba
mov eax, dword [0x4c7eb4]
mov dword [esi], eax
mov dword [esi + 4], 0x4c7e90
mov eax, dword [0x4c7eac]
test eax, eax
jne 0x42df79
call fcn.0042de70
mov dword [esi + 8], eax
cmp byte [0x4bee1d], 1
jne 0x42df8e
mov dword [esi + 0x10], str.0000_0001
jmp 0x42df95
mov dword [esi + 0x10], str.0000_0003
mov dword [esi + 0x14], edi
cmp word [0x4c80c2], di
je 0x42dfeb
push 7
push str.file:__
push 0x4c80c2
call fcn.00470122
add esp, 0xc
test eax, eax
je 0x42dfd2
push str.file:__
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046fd12
add esp, 0xc
push 0x4c80c2
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046e804
add esp, 0xc
push dword [esi]
lea eax, [ebp - 0x20c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
push str.IAMCZone____TypeID_d
mov dword [esi + 0x1c], eax
call fcn.00469290
push dword [esi + 8]
push str.IAMCZone____CountryCode_d
call fcn.00469290
push dword [esi + 4]
push str.IAMCZone____MasterID_s
call fcn.00469290
push dword [esi + 0x10]
push str.IAMCZone____Serial_s
call fcn.00469290
push dword [esi + 0xc]
push str.IAMCZone____Tag_s
call fcn.00469290
push dword [esi + 0x14]
push str.IAMCZone____Priority_d
call fcn.00469290
push dword [esi + 0x18]
push str.IAMCZone____DefaultLocalURL_s
call fcn.00469290
push dword [esi + 0x1c]
push str.IAMCZone____ZoneID_d
call fcn.00469290
add esp, 0x40
push str.AddIAMCZone
push dword [0x4b551c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42e084
push esi
push ebx
call eax
add esp, 8
mov edi, eax
jmp 0x42e091
push str.IAMCZone____Cant_find_the_function_AddIAMCZone_
call fcn.004695f0
add esp, 4
push esi
call fcn.0046e000
push edi
push str.IAMCZone____End__d_
call fcn.00469290
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
Function at 0x42e890
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ax, ax
jne 0x42e8a4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
movzx ecx, ax
mov eax, ecx
and ecx, 0x3ff
shr eax, 0xa
push eax
push ecx
push str._02X_02X
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0046ebde
add esp, 0x14
pop ebp
ret
Function at 0x42e8d0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x620], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0046f6e0
add esp, 0xc
test edi, edi
je 0x42eaf9
push esi
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0046fd12
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
push str.OLRDisplay__s_
call fcn.00469290
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0046f6e0
add esp, 0x14
lea eax, [ebp - 0x61c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4b47bc], eax
test eax, eax
je 0x42eae5
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046f6e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.OLRegist.ini
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
push str.OLRDisplay____OLRegistIni_s
call fcn.00469290
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x20c]
add esp, 8
push eax
lea eax, [edi + 0x4f1]
push eax
push 0x48eb64
push 0x48eb7c
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [edi + 0x531]
push eax
push str.NameProduct
push 0x48eb7c
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [edi + 0x491]
push eax
push 0x48eb9c
push 0x48eb7c
call esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0
call esi
push edi
push dword [0x4b47bc]
call fcn.0042efb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42eabc
cmp dword [ebp + 0x14], eax
je 0x42eabc
mov cl, byte [edi + 0x208]
cmp cl, 1
jne 0x42ea82
lea eax, [esi + 0x69]
jmp 0x42ea9e
cmp cl, 2
jne 0x42ea8e
mov eax, 0x6d
jmp 0x42ea9e
cmp cl, 3
mov eax, 0x89
mov edx, 0x86
cmove eax, edx
push edi
push 0x42eb20
push dword [ebp - 0x620]
movzx eax, ax
push eax
push dword [0x4b47bc]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, eax
push dword [0x4b47bc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push eax
push str.OLRDisplay____FreeLibrary_____d
call fcn.00469290
add esp, 8
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x42eafe
lea eax, [ebp - 0x61c]
mov esi, 0x6e
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x42eafe
mov esi, 0x57
push esi
push str.OLRDisplay_____d
call fcn.00469290
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
Function at 0x42f3e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
mov dword [ebp - 0x18], esi
lea eax, [esi*2 + 2]
call fcn.004704a0
mov eax, esp
lea ecx, [esi + 1]
push ecx
push eax
push edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
push 0
push 0x31
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x42f44c
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xfffffffffffffff0
push edi
xor esi, esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x1f
cmp eax, 0xc
ja case.0x42f466.3
movzx eax, byte [eax + 0x42f4e8]
jmp dword [eax*4 + 0x42f4d4]
mov esi, 0x10
jmp case.0x42f466.3
mov esi, 1
jmp case.0x42f466.3
mov esi, 0x20
jmp case.0x42f466.3
xor esi, esi
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
push edi
push ebx
push 0x138
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x20]
add eax, 4
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
call fcn.0042f500
add esp, 0x18
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
Function at 0x42fac0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0046f060
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
js 0x42fbce
cmp esi, dword [ecx + 0x1c0]
jge 0x42fbce
lea eax, [esi*8]
sub eax, esi
push 0x800
lea edi, [ecx + eax*4]
lea eax, [ebp - 0x1004]
push eax
movzx eax, word [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push ebx
mov dword [ebp - 0x1020], ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea ecx, [esi + 1]
mov dword [ebp - 0x101c], eax
mov dword [ebp - 0x1010], ecx
lea ecx, [ebp - 0x1004]
mov dword [ebp - 0x1014], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x100c], ecx
lea ecx, [ebp - 0x1020]
push ecx
push eax
push 0x4e
push ebx
mov dword [ebp - 0x1018], 1
mov dword [ebp - 0x1008], 0
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x1008]
test eax, eax
jne 0x42fbc9
push 0x7f8a
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 5
push 0
push 0
lea eax, [ebp - 0x1004]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x42fbce
mov byte [edi + 0x18], 1
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret 8
cmp eax, 1
je 0x42fbb0
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret 8

Function at 0x430430
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.0046f6e0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x208]
add esp, 0xc
mov dword [ebp - 0x208], 0x100
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push esi
call ebx
cmp eax, 0x103
je 0x4304da
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
test eax, eax
jne 0x4304dc
lea eax, [ebp - 0x204]
push eax
push esi
call edi
test eax, eax
jne 0x4304dc
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0x100
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push esi
call ebx
cmp eax, 0x103
jne 0x4304a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
Function at 0x4304f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x414], 0
call fcn.0046f6e0
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.0046f6e0
add esp, 0x18
mov dword [ebp - 0x40c], 0x100
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], 0x100
push 0
push eax
lea eax, [ebp - 0x404]
push eax
push 0
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x4306aa
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4306ac
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x408]
push eax
push 0
push 0xf003f
push 0
lea eax, [ebp - 0x404]
push eax
push 0
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4306ac
push dword [ebp - 0x408]
lea eax, [ebp - 0x204]
push eax
push edi
call fcn.004306e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4306bd
lea eax, [ebp - 0x418]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4306bd
push dword [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.004304f0
add esp, 8
mov esi, eax
push dword [ebp - 0x418]
call ebx
push dword [ebp - 0x408]
call ebx
test esi, esi
jne 0x4306c5
mov esi, dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push 0
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x40c], 0x100
push eax
push 0
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], 0x100
push eax
lea eax, [ebp - 0x204]
inc esi
push eax
push esi
push edi
mov dword [ebp - 0x414], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, dword [ebp - 0x41c]
cmp eax, 0x103
jne 0x4305a3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x408]
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
Function at 0x4306e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x228], eax
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x224], esi
call fcn.0046f6e0
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0xf003f
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x430877
push edi
push eax
push eax
lea eax, [ebp - 0x210]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
jne 0x430868
cmp dword [ebp - 0x20c], eax
je 0x430868
push dword [ebp - 0x210]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x430858
xor esi, esi
cmp dword [ebp - 0x20c], esi
jbe 0x430858
lea ebx, [ebx]
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x220]
mov dword [ebp - 0x218], 0x100
push eax
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
jne 0x430858
mov edi, dword [ebp - 0x228]
push edi
push dword [ebp - 0x224]
push dword [ebp - 0x21c]
push str.RegCreateValues__d___s___d_
call fcn.00469290
add esp, 0x10
lea eax, [ebp - 0x204]
push dword [ebp - 0x214]
push ebx
push dword [ebp - 0x220]
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jne 0x430858
inc esi
cmp esi, dword [ebp - 0x20c]
jb 0x4307c0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret

Function at 0x430ab0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 2
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x430aed
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
test eax, eax
mov ecx, 1
cmove esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x430c91
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x430c91
cmp dword [ebp - 0x10], 4
jne 0x430c91
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret