joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a91
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408438
cmp edx, dword [eax]
je 0x403ab3
add eax, 8
inc ecx
cmp eax, 0x4084c8
jl 0x403aa4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408438]
jne 0x403be1
mov eax, dword [0x40ac34]
cmp eax, 1
je 0x403bbb
test eax, eax
jne 0x403ae4
cmp dword [0x408374], 1
je 0x403bbb
cmp edx, 0xfc
je 0x403be1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403b1b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004017c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00401740
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403b5e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401740
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40746c
push edi
call fcn.00405f80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004017c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004017d0
lea eax, [ebp - 0xa0]
push 0x40744c
push eax
call fcn.004017d0
push dword [esi + 0x40843c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004017d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405ef4
add esp, 0x2c
pop edi
jmp 0x403be1
lea eax, [ebp + 8]
lea esi, [esi + 0x40843c]
push 0
push eax
push dword [esi]
call fcn.00401740
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 0x401240
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x1f
je 0x401285
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409080
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x59467b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
lea ecx, [esp + 4]
call fcn.0056d4f0
mov esi, dword [esp + 0x12c]
push 0
push 0
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0
call fcn.0056cfa0
test eax, eax
je 0x409105
lea ecx, [esp + 4]
call fcn.0056d210
mov edx, dword [esp + 0x128]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4090e0
lea ecx, [esp + 4]
mov dword [esp + 0x120], 0xffffffff
call fcn.0056d5b0
mov eax, 1
jmp 0x40917a
push ebx
push edi
mov edi, dword [esp + 0x130]
push esi
push str.A:_s
push edi
call fcn.00587c9a
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add esp, 0xc
mov dword [esp + 0x1c], 0x5c3a41
xor ebx, ebx
lea ecx, [ecx]
mov al, 0x5a
lea ecx, [esp + 0x1c]
sub al, bl
push ecx
mov byte [esp + 0x20], al
call esi
cmp eax, 5
jne 0x40915c
mov dl, byte [esp + 0x1c]
push 0
push 0
push edi
lea ecx, [esp + 0x18]
mov byte [edi], dl
call fcn.0056cfa0
test eax, eax
jne 0x409192
inc ebx
cmp ebx, 0x1a
jl 0x409130
lea ecx, [esp + 0xc]
mov dword [esp + 0x128], 0xffffffff
call fcn.0056d5b0
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x118]
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret 8
lea ecx, [esp + 0xc]
call fcn.0056d210
lea ecx, [esp + 0xc]
mov dword [esp + 0x128], 0xffffffff
call fcn.0056d5b0
mov eax, 1
jmp 0x409178
Function at 0x415b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x594ef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebp
lea ecx, [esp + 8]
call fcn.0056bc10
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 8]
push eax
xor ebp, ebp
push ecx
mov dword [esp + 0x3c], ebp
call fcn.00467ce0
mov ecx, eax
call fcn.00421ea0
lea ecx, [esp + 0xc]
call fcn.0056d4f0
mov edx, dword [esp + 8]
push ebp
push ebp
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
call fcn.0056cfa0
test eax, eax
lea ecx, [esp + 0xc]
jne 0x415c00
mov byte [esp + 0x34], al
call fcn.0056d5b0
lea ecx, [esp + 8]
mov dword [esp + 0x34], 0xffffffff
call fcn.0056bd20
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
push edi
push 4
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], ebp
call fcn.0056d130
sub dword [esp + 8], 4
mov edi, ebp
je 0x415ca2
push ebx
mov ebx, dword [esp + 0x50]
push esi
push 0x10
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
call fcn.0056d130
mov esi, dword [esp + 0x28]
add esi, 0xfffffff0
cmp ebx, edi
je 0x415c68
push 1
push esi
lea ecx, [esp + 0x20]
call fcn.0056d170
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jbe 0x415c5b
sub eax, ecx
jmp 0x415c5d
xor eax, eax
inc edi
cmp eax, ebp
mov dword [esp + 0x10], eax
ja 0x415c24
jmp 0x415ca0
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
mov ecx, edi
call fcn.00579510
mov edx, dword [esp + 0x50]
push 1
push 0
push ebx
push ebp
push edx
mov ecx, edi
call fcn.00579560
mov eax, dword [edi + 4]
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.0056d130
mov ebp, 1
pop esi
pop ebx
lea ecx, [esp + 0x10]
call fcn.0056d210
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.0056d5b0
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.0056bd20
mov ecx, dword [esp + 0x30]
pop edi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x418680
Capabilities:
Get geographical location

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [esp + 8]
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
call dword [eax + 4]
test eax, eax
jne 0x418699
pop edi
ret 8
mov edx, dword [str.head]
push ebx
push esi
mov esi, dword [esp + 0x14]
push esi
lea ebx, [edi + 0x10]
push ebx
push edx
mov ecx, edi
call fcn.00418300
test eax, eax
jge 0x4186c5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
pop esi
pop ebx
xor eax, eax
pop edi
ret 8
mov ecx, dword [str.wrld]
add esi, eax
push esi
push ebx
push ecx
mov ecx, edi
call fcn.00418300
test eax, eax
mov ecx, edi
jge 0x4186ea
mov edx, dword [edi]
call dword [edx + 8]
pop esi
pop ebx
xor eax, eax
pop edi
ret 8
add esi, eax
mov eax, dword [str.bldg]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x4186dd
add esi, eax
mov eax, dword [str.city]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x4186dd
add esi, eax
mov eax, dword [str.forc]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x4186dd
add esi, eax
mov eax, dword [str.item]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x4186dd
add esi, eax
mov eax, dword [str.prsn]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x4186dd
add esi, eax
mov eax, dword [str.unit]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x4186dd
add esi, eax
mov eax, dword [str.turk]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x4186dd
add eax, esi
push eax
mov eax, dword [str.trki]
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x4186dd
mov eax, dword [edi]
call dword [eax + 8]
pop esi
pop ebx
mov eax, 1
pop edi
ret 8
Function at 0x4187b0
Capabilities:
Get geographical location

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push ebx
mov esi, ecx
call fcn.00418560
test eax, eax
jne 0x4187c7
pop esi
pop ebx
ret 8
mov eax, dword [str.head]
push edi
mov edi, dword [esp + 0x14]
push 0x70
push edi
push eax
mov ecx, esi
call fcn.004183d0
cmp eax, 0x70
mov ecx, esi
jae 0x4187f8
mov edx, dword [esi]
call dword [edx + 8]
push ebx
mov ecx, esi
call fcn.0040f300
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
add edi, eax
mov eax, dword [str.wrld]
push 0x4e
push edi
push eax
call fcn.004183d0
cmp eax, 0x4e
mov ecx, esi
jb 0x4187e3
add edi, eax
mov eax, dword [str.bldg]
push 0x2580
push edi
push eax
call fcn.004183d0
cmp eax, 0x2580
mov ecx, esi
jb 0x4187e3
add edi, eax
mov eax, dword [str.city]
push 0xc1c
push edi
push eax
call fcn.004183d0
cmp eax, 0xc1c
mov ecx, esi
jb 0x4187e3
add edi, eax
mov eax, dword [str.forc]
push 0x11f8
push edi
push eax
call fcn.004183d0
cmp eax, 0x11f8
mov ecx, esi
jb 0x4187e3
add edi, eax
mov eax, dword [str.item]
push 0x4b0
push edi
push eax
call fcn.004183d0
cmp eax, 0x4b0
mov ecx, esi
jb 0x4187e3
add edi, eax
mov eax, dword [str.prsn]
push 0x15e00
push edi
push eax
call fcn.004183d0
cmp eax, 0x15e00
mov ecx, esi
jb 0x4187e3
add edi, eax
mov eax, dword [str.unit]
push 0x8340
push edi
push eax
call fcn.004183d0
cmp eax, 0x8340
mov ecx, esi
jb 0x4187e3
add edi, eax
mov eax, dword [str.turk]
push 0x4588
push edi
push eax
call fcn.004183d0
cmp eax, 0x4588
mov ecx, esi
jb 0x4187e3
push 0x938
add eax, edi
push eax
mov eax, dword [str.trki]
push eax
call fcn.004183d0
cmp eax, 0x938
mov ecx, esi
jb 0x4187e3
mov eax, dword [esi]
call dword [eax + 8]
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
Function at 0x418a60
Capabilities:
Get geographical location

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [esp + 8]
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
call dword [eax + 4]
test eax, eax
jne 0x418a79
pop edi
ret 8
mov edx, dword [str.head]
push ebx
push esi
mov esi, dword [esp + 0x14]
push esi
lea ebx, [edi + 0x10]
push ebx
push edx
mov ecx, edi
call fcn.00418300
test eax, eax
jge 0x418aa5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
pop esi
pop ebx
xor eax, eax
pop edi
ret 8
mov ecx, dword [str.area]
add esi, eax
push esi
push ebx
push ecx
mov ecx, edi
call fcn.00418300
test eax, eax
mov ecx, edi
jge 0x418aca
mov edx, dword [edi]
call dword [edx + 8]
pop esi
pop ebx
xor eax, eax
pop edi
ret 8
add esi, eax
mov eax, dword [str.ciki]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
add esi, eax
mov eax, dword [str.fbld]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
add esi, eax
mov eax, dword [str.hiho]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
add esi, eax
mov eax, dword [str.kans]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
add esi, eax
mov eax, dword [str.shak]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
add esi, eax
mov eax, dword [str.skrk]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
add esi, eax
mov eax, dword [str.kkgu]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
add esi, eax
mov eax, dword [str.jnki]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
add esi, eax
mov eax, dword [str.squa]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
add esi, eax
mov eax, dword [str.bldg]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
add esi, eax
mov eax, dword [str.city]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
add esi, eax
mov eax, dword [str.forc]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
add esi, eax
mov eax, dword [str.item]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
add esi, eax
mov eax, dword [str.unit]
push esi
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
add eax, esi
push eax
mov eax, dword [str.prsn]
push ebx
push eax
call fcn.00418300
test eax, eax
mov ecx, edi
jl 0x418abd
mov eax, dword [edi]
call dword [eax + 8]
pop esi
pop ebx
mov eax, 1
pop edi
ret 8
Function at 0x41cfd0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x595388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
push str.__s_:
push ebp
call fcn.0056c790
add esp, 0xc
push str.FileVersionInfoSize_is_Empty.
lea ecx, [esp + 0x2c]
call fcn.0056bdb0
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x24], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x41d0ba
push ebx
push esi
call fcn.00587b1c
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41d0a2
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x5b2760
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41d09b
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41d094
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
lea eax, [esp + 0x3c]
push str.Version__d._d._d._d
push eax
call fcn.0056c790
add esp, 0x18
jmp 0x41d0b0
push str.VerQueryValue_InfoSize_is_Empty.
jmp 0x41d0a7
push str.VerQueryValue_Failed.
jmp 0x41d0a7
push str.GetFileVersionInfo_Failed.
lea ecx, [esp + 0x30]
call fcn.0056bec0
push ebx
call fcn.00587b17
add esp, 4
pop ebx
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.0056c040
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0056bd20
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x41d780
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call fcn.0041d0f0
test eax, eax
jne 0x41d7a7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ecx
push edx
xor eax, eax
cpuid
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov eax, 1
cpuid
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov eax, 0x80000000
cpuid
cmp eax, 0x80000000
jb 0x41d7df
mov eax, 0x80000001
cpuid
mov dword [ebp - 0xc], edx
pop ecx
pop ebx
pop edx
mov ebx, dword [ebp - 8]
test ebx, 0x800000
je 0x41d807
push 1
mov dword [ebp - 4], 1
call fcn.0041d170
add esp, 4
test eax, eax
je 0x41d807
mov esi, 1
mov eax, dword [ebp - 0xc]
test eax, eax
jns 0x41d828
mov eax, dword [ebp - 4]
or eax, 8
push 8
mov dword [ebp - 4], eax
call fcn.0041d170
add esp, 4
test eax, eax
je 0x41d828
or esi, 8
test ebx, 0x2000000
je 0x41d84a
mov eax, dword [ebp - 4]
or eax, 2
push 2
mov dword [ebp - 4], eax
call fcn.0041d170
add esp, 4
test eax, eax
je 0x41d84a
or esi, 2
test ebx, 0x4000000
je 0x41d86c
mov eax, dword [ebp - 4]
or eax, 4
push 4
mov dword [ebp - 4], eax
call fcn.0041d170
add esp, 4
test eax, eax
je 0x41d86c
or esi, 4
xor edx, edx
test bl, 0x10
mov dword [ebp - 8], edx
je 0x41d899
rdtsc
mov dword [ebp - 8], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
rdtsc
sub eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, 0x10624dd3
mul dword [ebp - 8]
shr edx, 6
mov ebx, dword [ebp + 8]
xor eax, eax
mov ecx, 0x12
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x38], eax
mov eax, ecx
mov dword [ebx + 0x3c], esi
shr eax, 8
mov esi, 0xf
and eax, esi
cmp eax, esi
mov dword [ebx + 0x2c], eax
jne 0x41d8d8
mov eax, ecx
and eax, 0xff00000
or eax, 0xf0000
shr eax, 0x10
mov dword [ebx + 0x2c], eax
mov eax, ecx
shr eax, 4
and eax, esi
cmp eax, esi
mov dword [ebx + 0x30], eax
jne 0x41d8e9
mov dword [ebx + 0x30], esi
and ecx, esi
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x34], ecx
mov edx, ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x24]
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41d900
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x2c]
lea edx, [ebx + 0xd]
push edx
push ebx
push eax
push ecx
call fcn.0041d280
add esp, 0x10
pop edi
mov dword [ebx + 0x40], esi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d930
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push edi
mov edi, eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push edi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [eax]
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41d96e
mov eax, dword [esp + 4]
cmp eax, 1
je 0x41d966
cmp eax, 7
je 0x41d966
cmp eax, 2
jne 0x41d96e
mov eax, 1
pop edi
pop ecx
ret
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
pop edi
pop ecx
ret

Function at 0x41d990
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
push esi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [eax]
push 0
push edx
push ecx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41d9d1
mov eax, dword [esp + 4]
cmp eax, 4
je 0x41d9c8
cmp eax, 3
jne 0x41d9d1
mov eax, 1
add esp, 8
ret
mov dword [esi], 0
xor eax, eax
add esp, 8
ret

Function at 0x41d9e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ebp
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x1c]
push edx
xor esi, esi
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
mov ebp, 0x104
push edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x41da6b
mov edx, dword [esp + 0x224]
push edx
lea eax, [esp + 0x1c]
push eax
inc esi
call fcn.00587e6d
add esp, 8
test eax, eax
je 0x41da77
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
push edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
je 0x41da23
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret

Function at 0x41da90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push edi
mov dword [esp + 0x28], 0x104
call ebx
cmp eax, 0x103
mov esi, 1
je 0x41db16
lea esp, [esp]
test eax, eax
jne 0x41db16
mov eax, dword [esp + 0x11c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00587e6d
add esp, 8
test eax, eax
je 0x41db21
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
push edi
mov dword [esp + 0x28], 0x104
call ebx
inc esi
cmp eax, 0x103
jne 0x41dad0
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
pop esi
mov eax, 1
pop ebx
add esp, 0x110
ret
Function at 0x41dee0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edi
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
mov dword [esp + 0x2c], 0x104
call ebp
mov edx, dword [esi]
inc edx
cmp eax, 0x103
mov dword [esi], edx
je 0x41df96
nop
test eax, eax
jne 0x41df96
mov ecx, dword [ebx]
lea edx, [esp + 8]
push edx
push 0x20019
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41df65
mov edi, dword [esp + 8]
push str.Enum
call fcn.0041da90
mov edx, dword [esp + 0xc]
add esp, 4
test eax, eax
jne 0x41dfa1
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
mov dword [esp + 0x2c], 0x104
call ebp
mov edx, dword [esi]
inc edx
cmp eax, 0x103
mov dword [esi], edx
jne 0x41df20
pop edi
xor eax, eax
pop ebp
add esp, 0x114
ret
mov eax, dword [esp + 0x120]
pop edi
mov dword [eax], edx
mov eax, 1
pop ebp
add esp, 0x114
ret

Function at 0x41dfc0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x118
push esi
mov esi, eax
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.Enum
push ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e0b8
push edi
mov edi, dword [esi]
push str.Group
call fcn.0041d9e0
add esp, 4
test eax, eax
je 0x41e041
lea edx, [esp + 0xc]
push edx
mov edx, str.Count
lea esi, [esp + 0xc]
call fcn.0041d990
add esp, 4
test eax, eax
je 0x41e041
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x118
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x104
call edi
cmp eax, 0x103
mov esi, 1
je 0x41e0b7
lea esp, [esp]
test eax, eax
jne 0x41e0b7
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
push eax
inc ecx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x30]
push ecx
push esi
push edx
mov dword [esp + 0x30], 0x104
call edi
inc esi
cmp eax, 0x103
jne 0x41e080
pop edi
mov eax, dword [esp + 4]
pop esi
add esp, 0x118
ret
Function at 0x41e120
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x218
push ebx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x22c]
xor ebx, ebx
push ebx
push ebx
push ebx
mov esi, ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [edi]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e1e3
lea edx, [esp + 0xc]
push 0x104
push edx
mov edx, str.HardWareKey
lea eax, [esp + 0x128]
call fcn.0041d930
add esp, 8
test eax, eax
je 0x41e1e3
lea eax, [esp + 0x120]
push eax
lea ebx, [esi + 0x618]
push ebx
call fcn.0041de80
mov edi, eax
add esp, 8
test edi, edi
je 0x41e1d7
push ebx
push esi
call fcn.0041ddc0
lea ecx, [esi + 0x820]
push ecx
add esi, 0x104
push esi
call fcn.0041de20
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x218
ret
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x218
ret