joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43eef0
Capabilities:
Get geographical location

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
push 0
push 0x400
push edi
push ebx
call fcn.00619860
mov dword [esp + 0x10], eax
cdq
mov ebp, eax
push 0
mov eax, ebx
sub eax, ebp
mov ecx, edi
push 0x400
sbb ecx, edx
push ecx
push eax
mov dword [esp + 0x2c], edx
call fcn.006197b0
mov esi, eax
and esi, 0x800003ff
jns 0x43ef3e
dec esi
or esi, 0xfffffc00
inc esi
mov eax, esi
shl eax, 0xa
cdq
mov ecx, ebx
sub ecx, eax
mov eax, edi
sbb eax, edx
sub ecx, ebp
sbb eax, dword [esp + 0x1c]
push 0
push 0x100000
push eax
push ecx
call fcn.006197b0
mov ebp, eax
and ebp, 0x800003ff
jns 0x43ef72
dec ebp
or ebp, 0xfffffc00
inc ebp
push 0
push 0x40000000
push edi
push ebx
call fcn.006197b0
push 3
lea ecx, [esp + 0x1c]
push ecx
push 0xe
push 0x400
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x43efa4
mov edx, 0x2c
mov word [esp + 0x18], dx
test edi, edi
jne 0x43f078
cmp ebp, 0x3e7
jg 0x43f078
test ebp, ebp
jne 0x43f029
cmp esi, 0x3e7
jg 0x43f029
test esi, esi
je 0x43f003
mov eax, dword [0x754088]
push eax
mov eax, dword [esp + 0x14]
imul eax, eax, 0x3e8
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
sar ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
lea edx, [esp + 0x20]
push edx
push esi
jmp 0x43f0ac
mov ecx, dword [0x75408c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push ecx
push edx
push str._d___s
push eax
call fcn.00402f70
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [0x754084]
mov eax, esi
imul eax, eax, 0x3e8
cdq
push ecx
and edx, 0x3ff
add eax, edx
mov ecx, eax
sar ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
push str._d_s_02d___s
push edx
call fcn.00402f70
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov eax, dword [0x754080]
push eax
mov eax, ebp
imul eax, eax, 0x3e8
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
sar ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
lea edx, [esp + 0x20]
push edx
push edi
mov eax, dword [esp + 0x30]
push str._d_s_02d___s
push eax
call fcn.00402f70
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x43f1c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63ca50
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 8]
push ebx
mov eax, dword [ebp + 0x10]
push eax
push str._s_ld
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
add esp, 0x10
test bl, 8
je 0x43f29b
xor ebx, 8
lea ecx, [ebp - 0x1c]
call fcn.00402500
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 3
mov esi, dword [ebp + 0xc]
push esi
push esi
mov eax, dword [0x754554]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402f70
add esp, 0x10
cmp ebx, 2
jne 0x43f2ee
lea ecx, [ebp - 0x20]
call fcn.00402500
mov byte [ebp - 4], 4
push esi
mov edx, dword [0x754558]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00402f70
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push str._s_r_n_r_n_s
lea eax, [ebp - 0x1c]
push eax
call fcn.00402f70
add esp, 0x1c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00402570
jmp 0x43f303
mov dword [ebp - 0x20], 4
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [0x752bcc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43f21f
cmp dword [ebp - 0x24], 1
jne 0x43f21f
mov byte [ebp - 4], al
lea ecx, [ebp - 0x14]
call fcn.00402570
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 ecx, dword [ebp - 0x18]
push ecx
push 0x66dea8
lea edx, [ebp - 0x1c]
push edx
call fcn.00402f70
add esp, 0xc
push 0x41044
push 0x66dd88
mov eax, dword [ebp - 0x1c]
push eax
push 0
call fcn.0046f2a0
add esp, 0x10
cmp eax, 6
jne 0x43f355
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.004ad5f0
add esp, 8
mov dword [ebp - 0x24], 1
push 4
lea edx, [ebp - 0x24]
push edx
push 4
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [0x752bcc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402570
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
mov dword [ebp - 4], 0xffffffff
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 0x445e00
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, edx
push esi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x445e10
sub eax, esi
sar eax, 1
mov ecx, eax
xor eax, eax
test ecx, ecx
jle 0x445e4a
push edi
jmp 0x445e30
mov si, word [edx + eax*2]
xor si, 0x1f
mov edi, 0xff
sub si, di
mov word [edx + eax*2], si
inc eax
cmp eax, ecx
jl 0x445e30
pop edi
pop esi
ret
Function at 0x447330
Capabilities:
Get common file path

Disassembly:
sub esp, 0x24c
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
mov ebx, dword [esp + 0x254]
push ebp
push ebx
push str.comctl32.dll
call fcn.0061acda
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 8
test eax, eax
je 0x44744d
push ebx
push str.comctl32
call fcn.0061acda
add esp, 8
test eax, eax
je 0x44744d
push ebx
push 0x670490
call fcn.0061acda
add esp, 8
test eax, eax
je 0x44744d
push ebx
push str.shell32
call fcn.0061acda
add esp, 8
test eax, eax
je 0x44744d
push 0x104
lea ecx, [esp + 0xc]
xor eax, eax
push ecx
mov word [esp + 0x10], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x44744d
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4473d1
sub eax, edx
sar eax, 1
je 0x44744d
cmp word [esp + eax*2 + 6], 0x5c
push esi
push edi
je 0x447407
lea edi, [esp + 0x10]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4473f3
mov edx, dword [0x66e980]
mov dword [edi], edx
mov eax, ebx
mov edx, ebx
jmp 0x447410
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x447410
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x447424
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
pop edi
pop esi
test eax, eax
jne 0x447450
push ebx
call ebp
mov ecx, dword [esp + 0x250]
pop ebp
pop ebx
xor ecx, esp
call fcn.006157d3
add esp, 0x24c
ret
Function at 0x4474b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63d370
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4475bd
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
inc dword [ebp - 0x14]
push eax
call fcn.005e9aa7
mov esi, eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.005e9aa7
add esp, 8
mov edi, eax
cmp esi, ebx
je 0x4475bd
cmp edi, ebx
je 0x4475bd
mov dword [ebp - 0x28], ebx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x1c]
push eax
push edi
lea ecx, [ebp - 0x24]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
push esi
push ebx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x447590
push esi
call fcn.005e9ab2
push edi
call fcn.005e9ab2
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4475bd
mov ecx, dword [ebp - 0x1c]
push ecx
push edi
mov edx, dword [ebp - 0x24]
push edx
push eax
push esi
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4475bd
inc ebx
jmp 0x447539
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
Function at 0x4475e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x63d390
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x110]
mov ebx, dword [ebp + 0x114]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov eax, 0x104
push eax
lea eax, [ebp]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x447650
mov eax, 1
jmp 0x44769f
test eax, eax
jne 0x44769d
push eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
lea edx, [ebp]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x44769d
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea ecx, [ebp]
push ecx
push edi
call fcn.004476d0
add esp, 0xc
test eax, eax
je 0x44769d
inc esi
jmp 0x44762d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.006157d3
add ebp, 0x108
mov esp, ebp
pop ebp
ret
Function at 0x447780
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
mov ebx, dword [esp + 0x120]
push esi
mov esi, dword [esp + 0x128]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4477cc
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.006157d3
add esp, 0x118
ret
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x447805
xor ecx, ecx
cmp eax, 2
sete cl
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.006157d3
add esp, 0x118
ret
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, esi
cmp byte [edi - 1], 0x5c
je 0x44781f
mov byte [edi], 0x5c
inc edi
mov byte [edi], 0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push edx
mov dword [esp + 0x34], 0x104
call ebp
test eax, eax
jne 0x4478a9
nop
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x447855
sub eax, edx
mov ecx, 0x208
sub ecx, eax
push ecx
lea edx, [esp + 0x24]
push edx
push edi
call fcn.00617030
push esi
push ebx
call fcn.00447780
add esp, 0x14
test eax, eax
je 0x4478a9
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push eax
mov dword [esp + 0x34], 0x104
call ebp
test eax, eax
je 0x447850
mov byte [edi - 1], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x124]
pop edi
pop ebp
neg eax
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.006157d3
add esp, 0x118
ret

Function at 0x447ca0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push esi
push edi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x447cea
mov edx, dword [esp + 0x1c]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push esi
push edi
mov dword [esp + 0x20], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
add esp, 8
ret
Function at 0x447d70
Capabilities:
Terminate process

Disassembly:
sub esp, 0x88
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x84], eax
mov edx, dword [esp + 0x90]
push esi
mov esi, dword [esp + 0x90]
push edi
mov edi, ecx
test edx, edx
je 0x447e03
test esi, esi
je 0x447e03
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x447da3
sub eax, edi
je 0x447de8
push edx
push esi
call fcn.006172ee
add esp, 8
test eax, eax
jne 0x447de8
mov eax, dword [esp + 0x9c]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x447de8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x447de8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.006157d3
add esp, 0x88
ret 0xc
push 0x5c
push esi
call fcn.00617f70
add esp, 8
test eax, eax
je 0x447e15
inc eax
jmp 0x447e17
mov eax, esi
push 0x671d08
push eax
call fcn.006172ee
add esp, 8
test eax, eax
jne 0x447de8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x9c]
cmp eax, ecx
je 0x447de8
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x447e8b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x447e7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x10]
push str.TP_failed__CDAisPF__4026_errCode___ld_n
push ecx
call fcn.006186ab
add esp, 0xc
push 1
lea edx, [esp + 0x10]
push edx
jmp 0x447eab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x447dea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.OP_failed__CDAisPF__4071_errCode___ld_n
push eax
call fcn.006186ab
add esp, 0xc
push 1
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edi + 0x1a0]
call fcn.004b9fd0
mov eax, 1
jmp 0x447dea
Function at 0x449020
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x63d610
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
xor edi, edi
xor eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov word [esp + 0x1c], ax
mov dword [esp + 0x30], eax
call fcn.00448920
test eax, eax
je 0x449095
mov eax, dword [0x752c3c]
test eax, eax
jne 0x449081
mov eax, 0x752c40
push 0
push esi
push eax
push 0x66dde0
lea ecx, [esp + 0x28]
call fcn.00402320
jmp 0x44909f
push esi
lea ecx, [esp + 0x1c]
call fcn.004017f0
mov eax, dword [esp + 0x18]
mov bl, 1
test eax, eax
jne 0x4490ad
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x449105
lea ecx, [esp + 0x14]
call fcn.00527200
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x18]
mov byte [esp + 0x13], 0
test eax, eax
jne 0x4490d7
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x13]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00528f00
test al, al
je 0x4490f3
cmp byte [esp + 0x13], 0
jne 0x4490f3
xor bl, bl
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x14]
call fcn.00527210
test bl, bl
je 0x449140
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x449111
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x449140
push str.DllRegisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x449130
call eax
cmp dword [esp + 0x3c], 0
jne 0x449140
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00401210
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.006157d3
add esp, 0x24
ret
Function at 0x449300
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x63d6ab
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov eax, dword [0x752bcc]
test eax, eax
je 0x449395
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push str.CommonAppDataIDMFolder
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x449395
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x449395
lea ecx, [esp + 0x14]
push ecx
push 0x66dea8
push 0x752c28
call fcn.00402f70
add esp, 0xc
jmp 0x4494a2
push 0x670490
call fcn.00447330
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4494a2
push str.SHGetFolderPathA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x44949b
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0x23
push 0
call esi
test eax, eax
jne 0x449495
lea ecx, [esp + 0x10]
call fcn.00402500
mov dword [esp + 0x124], 0
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x449400
sub eax, edx
cmp byte [esp + eax + 0x13], 0x5c
mov eax, 0x66e97c
je 0x44941a
mov eax, 0x671e74
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push str._s_sIDM
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x20]
push edx
call fcn.00619fda
mov eax, dword [esp + 0x24]
push eax
push 0x6715e0
push 0x752c28
call fcn.00402f70
mov edi, dword [0x752bcc]
add esp, 0x20
test edi, edi
je 0x449481
mov edx, dword [0x752c28]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x449465
sub eax, esi
inc eax
push eax
push edx
push 1
push 0
push str.CommonAppDataIDMFolder
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x124], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402570
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.006157d3
add esp, 0x118
ret
Function at 0x44b340
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x63d87c
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x258], eax
push esi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
cmp dword [0x752bcc], 0
jne 0x44b3d4
push 0x752bcc
push 0xf003f
push 0
push str.SoftwareDownloadManager_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x44b3fb
push 0
push 0x752bcc
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareDownloadManager_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x44b4a3
call fcn.004494d0
mov al, 1
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.006157d3
add esp, 0x268
ret
mov edx, dword [0x752bcc]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x224]
push ecx
push 0
push 0
push str.idmvers
push edx
mov dword [esp + 0x24], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x44b3d4
cmp esi, 2
je 0x44b3cf
lea ecx, [esp + 8]
call fcn.00402500
mov dword [esp + 0x26c], 0
lea ecx, [esp + 0x10]
call fcn.004b9e60
mov byte [esp + 0x26c], 1
push esi
lea eax, [esp + 0xc]
push str.Reading_of_idmvers_failed__errCode___ld_r_n
push eax
call fcn.00402f70
mov ecx, dword [esp + 0x14]
add esp, 0xc
push 1
push ecx
lea ecx, [esp + 0x18]
call fcn.004b9fd0
mov byte [esp + 0x26c], 0
lea ecx, [esp + 0x10]
call fcn.004b9fc0
mov dword [esp + 0x26c], 0xffffffff
lea ecx, [esp + 8]
call fcn.00402570
jmp 0x44b3d4
lea ecx, [esp + 8]
call fcn.00402500
mov dword [esp + 0x26c], 2
lea ecx, [esp + 0x10]
call fcn.004b9e60
mov byte [esp + 0x26c], 3
push esi
lea edx, [esp + 0xc]
push str.RegCreateKeyEx___failed_during_OpenGlobalIDMRegKey____errCode___ld_r_n
push edx
call fcn.00402f70
mov eax, dword [esp + 0x14]
add esp, 0xc
push 1
push eax
lea ecx, [esp + 0x18]
call fcn.004b9fd0
mov byte [esp + 0x26c], 2
lea ecx, [esp + 0x10]
call fcn.004b9fc0
mov dword [esp + 0x26c], 0xffffffff
lea ecx, [esp + 8]
call fcn.00402570
xor al, al
jmp 0x44b3d6