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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x18], 0
je 0x41a35a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x1c]
add edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
cmp edx, dword [eax + 0x20]
jb 0x41a327
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
shl edx, 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp + 0xc]
cmp edx, ecx
jbe 0x41a25d
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
shl eax, 1
mov dword [ebp - 0x18], eax
jmp 0x41a269
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x1c]
add edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41a296
mov eax, 0x300
jmp 0x41a394
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 4]
push edx
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41a2d8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0
mov eax, 0x300
jmp 0x41a394
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00436e10
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x14]
add edx, dword [eax + 0x1c]
push edx
call fcn.00436e10
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x1c]
add edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 0xc]
jmp 0x41a394
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0
je 0x41a388
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
jmp 0x41a394
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xc], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x41a9f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x64], 0
je 0x41aa97
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x6c]
cmp eax, dword [edx + 0x68]
jb 0x41aa1b
xor eax, eax
jmp 0x41ab07
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x68]
sub eax, dword [edx + 0x6c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jbe 0x41aa38
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x64]
mov eax, dword [ebp - 0x10]
add edx, dword [eax + 0x6c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00436e10
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x6c]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x6c], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x54]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x58]
push edx
call fcn.004197f0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 4]
jmp 0x41ab07
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x5c], 0
je 0x41aafb
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41aac8
xor eax, eax
jmp 0x41ab07
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x54]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x58]
push edx
call fcn.004197f0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 0xc]
jmp 0x41ab07
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x41bda0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x258], 0
push 0x103
push 0
lea eax, [ebp - 0x257]
push eax
call fcn.00437770
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x41bdec
push 4
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041bb60
add esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x258]
push ecx
call fcn.00437400
add esp, 8
push 0x453c88
lea edx, [ebp - 0x258]
push edx
call fcn.00437410
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x258]
push ecx
call fcn.00437410
add esp, 8
push 0x453c8c
lea edx, [ebp - 0x258]
push edx
call fcn.00437410
add esp, 8
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x41be64
xor eax, eax
jmp 0x41c016
mov byte [ebp - 0x149], 1
movzx edx, byte [ebp - 0x149]
test edx, edx
je 0x41c004
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x41bfda
push 0x453c90
lea edx, [ebp - 0x11c]
push edx
call fcn.00437250
add esp, 8
test eax, eax
je 0x41bec6
push 0x453c94
lea eax, [ebp - 0x11c]
push eax
call fcn.00437250
add esp, 8
test eax, eax
jne 0x41bec8
jmp 0x41be6b
mov ecx, dword [ebp - 0x148]
and ecx, 0x10
je 0x41bf58
mov byte [ebp - 0x368], 0
push 0x103
push 0
lea edx, [ebp - 0x367]
push edx
call fcn.00437770
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x368]
push ecx
call fcn.00437410
add esp, 8
push 0x453c98
lea edx, [ebp - 0x368]
push edx
call fcn.00437410
add esp, 8
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x368]
push ecx
call fcn.00437410
add esp, 8
lea edx, [ebp - 0x368]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041bda0
add esp, 0xc
test eax, eax
jne 0x41bf53
xor eax, eax
jmp 0x41c016
jmp 0x41bfd8
mov byte [ebp - 0x470], 0
push 0x103
push 0
lea edx, [ebp - 0x46f]
push edx
call fcn.00437770
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x470]
push ecx
call fcn.00437400
add esp, 8
push 0x453c9c
lea edx, [ebp - 0x470]
push edx
call fcn.00437410
add esp, 8
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x470]
push ecx
call fcn.00437410
add esp, 8
push 2
push 0
lea edx, [ebp - 0x470]
push edx
lea eax, [ebp - 0x470]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041bb60
add esp, 0x14
test eax, eax
je 0x41bfd8
xor eax, eax
jmp 0x41c016
jmp 0x41bfff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x41bfee
mov byte [ebp - 0x149], 0
jmp 0x41bfff
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41c016
jmp 0x41be6b
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
Function at 0x41e180
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x98]
push eax
xor esi, esi
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x88]
dec eax
je 0x41e2a4
dec eax
jne 0x41e2d7
mov eax, dword [ebp - 0x94]
cmp eax, 4
jne 0x41e1e0
mov esi, eax
mov ax, si
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x41e242
mov eax, dword [ebp - 0x90]
test eax, eax
jne 0x41e206
mov esi, 5
mov ax, si
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x41e222
mov esi, 6
mov ax, si
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
cmp eax, 2
jb 0x41e2d7
mov esi, 7
mov ax, si
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x41e2d7
mov eax, dword [ebp - 0x90]
test eax, eax
jne 0x41e26c
mov esi, 8
mov ax, si
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x41e288
mov esi, 9
mov ax, si
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x41e2d7
mov esi, 0xa
mov ax, si
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x94], 4
jb 0x41e2d7
mov eax, dword [ebp - 0x90]
cmp eax, 0xa
jae 0x41e2cf
mov esi, 1
mov ax, si
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
sbb esi, esi
add esi, 3
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
Function at 0x41eba0
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x408]
push ecx
push 0xf003f
push 0
push eax
push ebx
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x414], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41ebf1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edi
lea edx, [ebp - 0x41c]
push edx
mov edx, dword [ebp - 0x408]
push 0
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x404]
push ecx
push 0
mov edi, 0x400
push edx
mov dword [ebp - 0x40c], edi
call esi
test eax, eax
jne 0x41ec76
mov edi, edi
mov ecx, dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
push ecx
call fcn.0041eba0
add esp, 8
lea edx, [ebp - 0x41c]
push edx
mov edx, dword [ebp - 0x408]
push 0
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x404]
push ecx
push 0
push edx
mov dword [ebp - 0x40c], edi
call esi
test eax, eax
je 0x41ec30
mov edx, dword [ebp - 0x408]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x404]
push ecx
push 0
push edx
mov dword [ebp - 0x40c], edi
call esi
test eax, eax
jne 0x41ecf1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ecx]
mov ecx, dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
push ecx
call ebx
mov ecx, dword [ebp - 0x408]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0x404]
push eax
push 0
push ecx
mov dword [ebp - 0x40c], edi
call esi
test eax, eax
je 0x41ecb0
mov ebx, dword [ebp - 0x410]
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
Function at 0x41f070
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push esi
push edi
push eax
lea edx, [ebp - 0x108]
push edx
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x45446c
lea eax, [ebp - 0x108]
push eax
call esi
push 0x454470
lea ecx, [ebp - 0x108]
push ecx
call esi
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41f14c
push ebx
mov ebx, dword [ebp + 0xc]
lea ebx, [ebx]
mov esi, dword [ebp - 0x248]
and esi, 0x10
je 0x41f101
test ebx, ebx
je 0x41f105
jmp 0x41f139
test ebx, ebx
je 0x41f139
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jg 0x41f11b
test esi, esi
jne 0x41f139
mov edx, dword [ebp - 0x250]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x41f139
inc dword [ebp - 0x24c]
lea ecx, [ebp - 0x248]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f0f0
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24c]
pop edi
xor ecx, ebp
pop esi
call fcn.00435c3d
mov esp, ebp
pop ebp
ret

Function at 0x41f500
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 0x10]
test al, al
jne 0x41f512
mov dword [ebp + 0x10], 0
cmp al, 0x41
jb 0x41f51c
cmp al, 0x5a
ja 0x41f51c
add al, 0x20
push ebx
lea ecx, [eax - 0x61]
push esi
push edi
cmp cl, 0x19
ja 0x41f55b
movzx edx, al
push edx
lea eax, [ebp - 4]
push 0x4545c8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp + 0x10]
push ecx
push 0
push 0
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x41f55f
xor edi, edi
jmp 0x41f562
mov edi, dword [ebp + 0x10]
mov al, byte [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [esi], al
xor edx, edx
xor ecx, ecx
mov eax, 1
test edi, eax
jne 0x41f580
mov ebx, 0x80000000
shr ebx, cl
or edx, ebx
inc ecx
rol eax, 1
cmp ecx, 0x20
jl 0x41f573
push esi
mov dword [esi + 4], edx
call fcn.0041f430
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f680
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x114]
push str.L09___:CO_9_0_L:__6_:C01968
push eax
call fcn.0041d360
movzx ecx, word [ebp + 0xc]
push ecx
lea edx, [ebp - 0x10]
push str.0x_04X
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
push 0x20006
push edi
lea ecx, [ebp - 0x114]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41f6f8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x118]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41f720
lea edi, [eax + 1]
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00435c3d
mov esp, ebp
pop ebp
ret

Function at 0x41f740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp - 0x114]
push str.L09___:CO_9_0_L:__6_:C01968
push eax
call fcn.0041d360
add esp, 0xc
lea ecx, [ebp - 0x11c]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x114]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41f7a2
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x124]
push edx
push 0
push esi
push eax
mov dword [ebp - 0x120], 0xc
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f791
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x10]
push str.0x_04X
push edx
call fcn.00437fe9
add esp, 0xc
cmp eax, 1
jne 0x41f791
mov ecx, dword [ebp - 4]
mov ax, word [ebp - 0x118]
xor ecx, ebp
pop esi
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
Function at 0x41f810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], esi
call fcn.0041d8e0
mov edi, eax
add esp, 8
cmp edi, esi
jne 0x41f860
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
push ebx
lea ecx, [ebp - 0x114]
push ecx
push 0
mov dword [ebp - 0x110], edx
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
push edi
mov dword [ebp - 0x10c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x41f90c
nop
cmp dword [ebp - 0x114], 1
jne 0x41f8c1
mov edx, dword [ebp - 0x11c]
lea ecx, [ebp - 0x108]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41f902
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x110]
push ecx
push ebx
lea edx, [ebp - 0x114]
push edx
push 0
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x108]
push ecx
inc esi
push esi
push edi
mov dword [ebp - 0x10c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x41f8a0
jmp 0x41f90c
mov dword [ebp - 0x118], 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435c3d
mov esp, ebp
pop ebp
ret

Function at 0x41f930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [ebp + 0xc]
neg eax
sbb al, al
and al, byte [ebp - 0x108]
mov byte [ebp - 0x10c], al
mov ecx, dword [ebp - 0x10c]
push ecx
push edx
push esi
call fcn.0041f500
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
call fcn.00435c3d
mov esp, ebp
pop ebp
ret

Function at 0x41fad0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push 1
push eax
xor ebx, ebx
call fcn.0041d8e0
mov esi, eax
add esp, 8
test esi, esi
je 0x41fb3a
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41fb21
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push str.InstKey
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41fb32
push esi
lea ebx, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
push str.InstKey
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, 1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x41fb40
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push 1
push eax
xor ebx, ebx
call fcn.0041d8e0
mov esi, eax
add esp, 8
test esi, esi
je 0x41fbaa
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41fb91
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push str.ProdKey
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41fba2
push esi
lea ebx, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
push str.ProdKey
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, 1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x41ff60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push esi
call fcn.0041da20
mov bl, al
push 0
push esi
mov byte [ebp - 0x244], bl
call fcn.0041db30
add esp, 0xc
mov esi, eax
test edi, edi
je 0x41ffa4
cmp dword [ebp + 0xc], 0
jle 0x41ffa4
mov byte [edi], 0
push str.InstKey
push esi
lea eax, [ebp - 0x120]
push 0x104
push eax
call fcn.0041f810
add esp, 0x10
test eax, eax
je 0x42004e
push 0x104
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
neg eax
sbb al, al
and al, byte [ebp - 0x224]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x240], al
mov edx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x244]
push edx
push eax
push ecx
call fcn.0041f500
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x23c]
push eax
call fcn.0041f990
add esp, 0x14
test eax, eax
je 0x42004e
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x238]
jne 0x42004e
mov al, byte [ebp - 0x23c]
cmp al, bl
jne 0x420044
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
test al, al
jne 0x42004e
cmp dword [ebp + 0x18], 0
jne 0x42002e
cmp dword [ebp + 0x14], 0
je 0x4200ec
push str.ProdKey
push esi
lea edx, [ebp - 0x120]
push 0x104
push edx
call fcn.0041f810
add esp, 0x10
test eax, eax
je 0x4200ec
lea eax, [ebp - 0x120]
push eax
call fcn.0041fd70
add esp, 4
test eax, eax
je 0x4200ec
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.0041f5a0
add esp, 8
test eax, eax
je 0x4200a4
movzx eax, word [ebp - 6]
cmp al, bl
je 0x4200b2
test al, al
jne 0x4200ec
cmp dword [ebp + 0x18], 0
je 0x4200ec
test edi, edi
je 0x4200d6
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, dword [ebp + 0xc]
jg 0x4200d6
lea ecx, [ebp - 0x120]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00435c3d
mov esp, ebp
pop ebp
ret