joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ffc0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00472214
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043f960
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00472142
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046e929
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046e929
push 1
push 0
push 0
mov ecx, esi
call fcn.0046e8d1
push 1
push 0
push 1
mov ecx, esi
call fcn.0046e8d1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00472286
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x440140
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00472214
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043f960
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00472142
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x440204
cmp dword [esp + 0x40], 1
jne 0x440202
cmp ecx, eax
jge 0x440204
mov eax, ecx
cmp eax, 0xc8
jge 0x440210
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043ffc0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00472286
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x440990
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b303
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046cd49
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004724bc
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00473a14
test eax, eax
je 0x440aac
mov ecx, dword [esp + 0x3c]
call fcn.004724e9
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x440a70
push edi
mov ecx, esi
call fcn.0046faa8
mov ecx, esi
call fcn.00440c10
cmp dword [esp + 0x38], 1
jne 0x440aa5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046fc12
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4434c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4434f3
push esi
call fcn.004465c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4434ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x443579
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x443562
mov eax, dword [esi + 8]
test eax, eax
je 0x443517
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44355e
cmp eax, 2
je 0x443562
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44350a
cmp eax, 3
je 0x44353d
cmp eax, 1
jne 0x44350a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44350a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44350a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004435a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x443588
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004435a0
add esp, 4
pop esi
ret

Function at 0x46db3f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46db77
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.0046bbf6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046bbce
jmp 0x46db83
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46f231
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 0x46f273
call fcn.00474f20
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46f273
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46f26a
xor eax, eax
jmp 0x46f27b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f281
pop edi
pop esi
pop ebx
ret 4

Function at 0x475450
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47547e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47549c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004753b6
jmp 0x47549c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47549c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004753b6
test edi, edi
mov eax, edi
jne 0x475486
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4044d0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x42e818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, dword [0x437070]
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x30]
mov eax, ebp
mov dword [esp + 0x24], esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404510
sub eax, edx
mov edi, eax
test edi, edi
jle 0x40455d
nop
movsx eax, byte [esi + ebp]
xor eax, 0xfa
push eax
lea ecx, [esp + 0x14]
push str._02X
push ecx
call fcn.00425dcd
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403810
inc esi
cmp esi, edi
jl 0x404520
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx - 0xc]
test eax, eax
mov ebp, dword [esp + 0x2c]
lea esi, [ebx - 0xc]
mov dword [esp + 0x18], esi
jl 0x40457e
push esi
mov dword [ebp], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40460a
mov ecx, dword [0x437070]
push ebx
mov dword [ebp], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, dword [ebp]
mov edx, dword [eax - 0xc]
cmp edx, 1
lea ecx, [eax - 0xc]
jg 0x4045a3
cmp ebx, dword [eax - 4]
jle 0x4045de
mov edx, dword [0x437074]
add eax, 0xfffffff4
cmp eax, edx
je 0x4045d2
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4045ca
mov edx, dword [ebp]
sub edx, 0xc
push edx
call fcn.004258ee
add esp, 4
mov eax, dword [0x437070]
mov dword [ebp], eax
push ebx
mov ecx, ebp
call fcn.004011c0
test eax, eax
je 0x404606
mov edi, dword [ebp]
mov esi, dword [esp + 0x14]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov esi, dword [esp + 0x18]
mov dword [eax - 8], ebx
mov ecx, dword [ebp]
mov byte [ebx + ecx], 0
mov ebx, dword [esp + 0x14]
mov eax, dword [0x437074]
add ebx, 0xfffffff4
cmp ebx, eax
je 0x40462a
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40462a
push esi
call fcn.004258ee
add esp, 4
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40c050
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xa0
mov eax, dword [0x441874]
push esi
mov esi, dword [esp + 0xa8]
test esi, esi
mov dword [esp + 0xa0], eax
je 0x40c174
push edi
mov edi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call edi
cmp eax, esi
je 0x40c173
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x20]
cmp eax, 2
jne 0x40c0c9
cmp dword [esp + 0x14], 4
ja 0x40c0e1
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
mov ecx, dword [esp + 0x9c]
call fcn.004251f6
add esp, 0xa0
ret
cmp eax, 1
jne 0x40c0a6
mov eax, dword [esp + 0x14]
cmp eax, 4
ja 0x40c0e1
jne 0x40c0a6
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x40c0a6
push ebx
push ebp
push 0
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call ebx
push 0
push esi
mov edi, eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
mov ebx, eax
push edi
push ebx
call ebp
test eax, eax
je 0x40c130
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
push ebx
call ebp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
sub eax, esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x40c171
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x2000
call edi
push 2
push 0
push 0
push 0x2001
call edi
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
lea edx, [esp + 0x14]
push edx
push 0
push 0x2001
call edi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0xa0]
pop esi
call fcn.004251f6
add esp, 0xa0
ret

Function at 0x40d9e6
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 4]
test al, al
push esi
mov esi, ecx
mov byte [esi + 0x8d8], al
je 0x40da1d
mov eax, dword [esi + 0x90]
push eax
call fcn.0040c050
mov ecx, dword [esi + 0x90]
add esp, 4
push 0x53
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
ret 4
mov edx, dword [esi + 0x90]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov ecx, dword [esi + 0x8f0]
test ecx, ecx
je 0x40da67
call fcn.0040c8c0
mov ecx, dword [esi + 0x8f0]
test ecx, ecx
je 0x40da5d
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x8f0], 0
pop esi
ret 4
Function at 0x414d90
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x441874]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x414eb2
lea ecx, [esp + 8]
call fcn.00414c90
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x414eb6
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
jne 0x414e60
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.00414d90
mov edi, eax
test edi, edi
jne 0x414eda
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
je 0x414e22
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x414e79
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x414e98
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.004251f6
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x414ec1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.004251f6
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x414ee9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.004251f6
add esp, 0x118
ret 4
Function at 0x4153d0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4153e2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x415ba0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
jne 0x415bd1
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
jmp 0x415c26
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push edi
lea ecx, [esp + 0x20]
push ecx
call esi
cmp eax, edi
jne 0x415c26
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push edi
lea edx, [esp + 0x20]
push edx
call esi
cmp eax, edi
jne 0x415c26
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push edi
lea eax, [esp + 0x20]
push eax
call esi
cmp eax, edi
jne 0x415c26
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push edi
lea ecx, [esp + 0x20]
push ecx
call esi
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
lea edx, [esp + 0x14]
push edx
push 2
push eax
call esi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGenKey]
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jne 0x415c8c
call ebx
cmp eax, 0x8009000d
mov edx, dword [esp + 0x10]
jne 0x415cd3
lea ecx, [esp + 0x14]
push ecx
push 0
push 2
push edx
call edi
test eax, eax
jne 0x415c85
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 1
push ecx
call esi
test eax, eax
jne 0x415cef
call ebx
cmp eax, 0x8009000d
mov eax, dword [esp + 0x10]
jne 0x415d0b
lea edx, [esp + 0x14]
push edx
push 0
push 1
push eax
call edi
test eax, eax
jne 0x415ce8
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov edx, dword [esp + 0x14]
push edx
call ebp
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x415d20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [ecx]
push esi
mov esi, dword [esp + 0x10]
push edi
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x415d5d
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov ecx, dword [0x437074]
mov edi, dword [esp + 0x14]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x415d85
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415d85
push esi
call fcn.004258ee
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 8
ret 8

Function at 0x415dc0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
mov eax, dword [0x441874]
mov edx, dword [esp + 0x110]
push ebx
push ebp
mov dword [esp + 0x110], eax
push 0x104
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [esp + 0x11c]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00401300
test eax, eax
je 0x415e3b
push esi
push edi
mov edi, dword [ebp]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov dword [eax - 8], ebx
mov ecx, dword [ebp]
pop edi
mov byte [ebx + ecx], 0
pop esi
mov ecx, dword [esp + 8]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x110]
pop ebp
sete al
pop ebx
call fcn.004251f6
add esp, 0x10c
ret 8
Function at 0x415f40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42f3ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x441874]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x124], eax
mov ebp, ecx
mov dword [esp + 0x20], edi
mov esi, dword [esp + 0x140]
mov ecx, dword [esi - 0xc]
cmp ecx, edi
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [esi - 0xc]
mov dword [esp + 0x130], 2
mov dword [esp + 0x1c], eax
jl 0x415fa2
push eax
mov dword [esp + 0x14], esi
call ebx
jmp 0x415fb9
mov eax, dword [0x437070]
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.00401410
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], edi
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x140]
lea edx, [esp + 0x28]
push edx
mov edx, dword [ebp]
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push edx
mov byte [esp + 0x148], 3
mov dword [esp + 0x30], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416024
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x416012
cmp eax, 2
jne 0x416024
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.00401410
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
mov ecx, dword [esp + 0x138]
lea edi, [esi - 0xc]
jl 0x41603c
push edi
mov dword [ecx], esi
call ebx
jmp 0x41604a
mov edx, dword [0x437070]
push esi
mov dword [ecx], edx
call fcn.00401410
mov eax, dword [0x437074]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esi, 0xfffffff4
cmp esi, eax
mov dword [esp + 0x20], 1
mov byte [esp + 0x130], 2
je 0x41607c
push edi
call ebp
test eax, eax
jg 0x41607c
push edi
call fcn.004258ee
add esp, 4
mov esi, dword [esp + 0x13c]
mov ecx, dword [0x437074]
lea eax, [esi - 0xc]
cmp eax, ecx
mov byte [esp + 0x130], 1
je 0x4160ab
add esi, 0xfffffff4
push esi
call ebp
test eax, eax
jg 0x4160ab
push esi
call fcn.004258ee
add esp, 4
mov ecx, dword [esp + 0x140]
mov eax, dword [0x437074]
add ecx, 0xfffffff4
cmp ecx, eax
mov byte [esp + 0x130], 0
je 0x4160da
mov esi, dword [esp + 0x1c]
push esi
call ebp
test eax, eax
jg 0x4160da
push esi
call fcn.004258ee
add esp, 4
mov ecx, dword [esp + 0x128]
mov eax, dword [esp + 0x138]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x118]
pop ebx
call fcn.004251f6
add esp, 0x124
ret 0xc