joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e9cb1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x4e9cdc
cmp eax, 1
je 0x4e9cdc
jle 0x4e9ce4
cmp eax, 3
jle 0x4e9cdc
cmp eax, 4
jne 0x4e9ce4
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4e9d0f
call fcn.004df324
mov dword [eax], 0x16
call fcn.004df32d
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x4e9e88
inc eax
cmp byte [eax], bl
jne 0x4e9cfe
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x4e9d0f
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x4e9cfe
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.004df040
mov dword [ebp - 0x68], esi
mov esi, dword [0x6c76b8]
add esp, 0xc
cmp esi, ebx
je 0x4e9d55
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x6c76c0]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x4e9d55
dec esi
dec ecx
cmp esi, ebx
jne 0x4e9d35
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.004dfa5a
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x4e9dbc
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x6c76c0]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x4e9da8
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x4e9dad
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x4e9d81
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x4e9ded
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x4e9dd3
mov edi, esi
jmp 0x4e9dd6
push 3
pop edi
cmp edx, edi
jge 0x4e9de6
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x4e9dca
mov dword [ebp - 0xc], 8
call fcn.004df324
mov dword [eax], ebx
call fcn.004df32d
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.004dbecd
cmp esi, ebx
pop ecx
jne 0x4e9e3d
push edi
call fcn.004df336
pop ecx
or eax, 0xffffffff
jmp 0x4e9e86
cmp dword [ebp + 8], 2
jne 0x4e9e49
push ebx
call fcn.004dd429
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x4e9e76
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x4e9e7f
cmp dword [ebp + 8], 4
je 0x4e9e6f
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ea9b1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x6c74f8], ebx
push esi
push edi
jne 0x4eaa31
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4eaa6c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x533238
push edi
call esi
test eax, eax
mov dword [0x6c74f8], eax
je 0x4eaa6c
push 0x533228
push edi
call esi
push 0x533214
push edi
mov dword [0x6c74fc], eax
call esi
cmp dword [0x6c701c], 2
mov dword [0x6c7500], eax
jne 0x4eaa31
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x6c7508], eax
je 0x4eaa31
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x6c7504], eax
mov eax, dword [0x6c7504]
test eax, eax
je 0x4eaa76
call eax
test eax, eax
je 0x4eaa5d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x6c7508]
test eax, eax
je 0x4eaa5d
test byte [ebp - 8], 1
jne 0x4eaa76
cmp dword [0x6c7028], 4
jb 0x4eaa70
or byte [ebp + 0x12], 0x20
jmp 0x4eaa95
xor eax, eax
jmp 0x4eaaa5
or byte [ebp + 0x12], 4
jmp 0x4eaa95
mov eax, dword [0x6c74fc]
test eax, eax
je 0x4eaa95
call eax
mov ebx, eax
test ebx, ebx
je 0x4eaa95
mov eax, dword [0x6c7500]
test eax, eax
je 0x4eaa95
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x6c74f8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4eb5fa
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004dcb70
mov eax, dword [0x5691d0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004e4843
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4eb72d
push 2
push esi
push dword [ebp + 8]
call fcn.004e4843
add esp, 0xc
cmp eax, ebx
je 0x4eb72d
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4eb6cd
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004df040
push 0x8000
push dword [ebp + 8]
call fcn.004ebcdf
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4eb683
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004e4251
add esp, 0xc
cmp eax, 0xffffffff
je 0x4eb6a3
sub edi, eax
test edi, edi
jg 0x4eb67b
jmp 0x4eb6bb
call fcn.004df32d
cmp dword [eax], 5
jne 0x4eb6b8
call fcn.004df324
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004ebcdf
pop ecx
pop ecx
jmp 0x4eb715
jge 0x4eb715
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004e4843
push dword [ebp + 8]
call fcn.004e4b3c
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4eb715
call fcn.004df324
mov dword [eax], 0xd
call fcn.004df32d
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004e4843
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4eb72f
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004deba5
leave
ret
Function at 0x4ebd4b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x533278
call fcn.004df2d8
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x6c752c], edi
jne 0x4ebd8f
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ebd7a
mov dword [0x6c752c], ebx
jmp 0x4ebd8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4ebd8f
mov dword [0x6c752c], 2
mov eax, dword [0x6c752c]
cmp eax, ebx
jne 0x4ebdaf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4ebe72
cmp eax, 2
je 0x4ebdb8
cmp eax, edi
jne 0x4ebde0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4ebdcb
mov eax, dword [0x6c7494]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x4ebde7
xor eax, eax
jmp 0x4ebe72
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004dcb70
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4ebe1a
cmp esi, edi
jne 0x4ebe30
push dword [ebp - 0x20]
call fcn.004dd758
pop ecx
mov esi, eax
cmp esi, edi
je 0x4ebde0
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4ebe63
cmp dword [ebp + 0x14], edi
jne 0x4ebe4d
push edi
push edi
jmp 0x4ebe53
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4ebe6f
push esi
call fcn.004dbecd
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004df313
ret
Function at 0x4ebe7b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x533288
call fcn.004df2d8
xor esi, esi
cmp dword [0x6c7530], esi
jne 0x4ebebf
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ebeaa
mov dword [0x6c7530], edi
jmp 0x4ebebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4ebebf
mov dword [0x6c7530], 2
mov eax, dword [0x6c7530]
cmp eax, 2
je 0x4ebfa0
cmp eax, esi
je 0x4ebfa0
cmp eax, 1
jne 0x4ebf04
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4ebeed
mov eax, dword [0x6c7494]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4ebf0b
xor eax, eax
jmp 0x4ebfb2
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004dcb70
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4ebf41
cmp edi, esi
jne 0x4ebf5c
lea eax, [ebx + ebx]
push eax
call fcn.004dd758
pop ecx
mov edi, eax
cmp edi, esi
je 0x4ebf04
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ebf8f
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4ebf79
push esi
push esi
jmp 0x4ebf7f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4ebf9b
push edi
call fcn.004dbecd
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4ebfb2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004df313
ret
Function at 0x4ec46f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4ec488
or eax, 0xffffffff
jmp 0x4ec4e9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4ec4e5
push 0x3d
push esi
call fcn.004deaf9
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4ec4e5
cmp esi, eax
je 0x4ec4e5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x6c703c]
sete cl
cmp eax, dword [0x6c7040]
mov dword [ebp - 8], ecx
jne 0x4ec4cb
mov edi, eax
call fcn.004ec40e
mov dword [0x6c703c], eax
cmp eax, ebx
jne 0x4ec524
cmp dword [ebp + 0xc], ebx
je 0x4ec4ed
cmp dword [0x6c7044], ebx
je 0x4ec4ed
call fcn.004eb997
test eax, eax
je 0x4ec524
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4ec4f6
xor eax, eax
jmp 0x4ec4e8
push 4
call fcn.004dd758
cmp eax, ebx
pop ecx
mov dword [0x6c703c], eax
je 0x4ec4e5
mov dword [eax], ebx
cmp dword [0x6c7044], ebx
jne 0x4ec524
push 4
call fcn.004dd758
cmp eax, ebx
pop ecx
mov dword [0x6c7044], eax
je 0x4ec4e5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x6c703c]
call fcn.004ec3c1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4ec585
cmp dword [esi], ebx
je 0x4ec585
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004dbecd
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4ec568
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4ec5c6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4ec55f
mov eax, edi
shl eax, 2
push eax
push dword [0x6c703c]
call fcn.004de313
cmp eax, ebx
pop ecx
pop ecx
je 0x4ec5c6
jmp 0x4ec5c1
cmp dword [ebp - 8], ebx
jne 0x4ec631
cmp edi, ebx
jge 0x4ec594
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x6c703c]
call fcn.004de313
cmp eax, ebx
pop ecx
pop ecx
je 0x4ec4e5
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x6c703c], eax
cmp dword [ebp + 0xc], ebx
je 0x4ec61b
push dword [ebp - 4]
call fcn.004defb0
inc eax
inc eax
push eax
call fcn.004dd758
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4ec61b
push dword [ebp - 4]
push esi
call fcn.004e1470
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4ec614
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004dbecd
pop ecx
cmp dword [ebp - 8], ebx
je 0x4ec629
push dword [ebp - 4]
call fcn.004dbecd
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4ec4e8
push dword [ebp - 4]
call fcn.004dbecd
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4ec4f2
Function at 0x4f3068
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5691d0]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x4f30b7
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x4f30b7
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4f30c3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004deba5
leave
ret 8

Function at 0x4f49c4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5691d0]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x4f4a11
push dword [ebp + 8]
call fcn.004f95ce
mov esi, eax
test esi, esi
je 0x4f4a39
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x4f4a39
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x519abc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004deba5
leave
ret 0xc

Function at 0x4f8153
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x5691d0]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x4f81b1
push 0x530394
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004dcbad
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f81c5
cmp eax, esi
jae 0x4f81c5
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4f81c7
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4f817c
jmp 0x4f81c8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.004deba5
leave
ret
Function at 0x4f81e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5691d0]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4f828a
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x4f838c
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4f833a
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4f838d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f832f
cmp dword [ebp - 0x24], 1
jne 0x4f832f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x5303a4
push eax
call fcn.004df158
add esp, 0xc
cmp eax, 1
jne 0x4f832f
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4f838d
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x4f838d
lea ecx, [ebp - 0x18]
push ecx
push 0x4f81d2
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x4f838d
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x4f83b3
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.004f8153
cmp eax, ebx
pop ecx
pop ecx
jne 0x4f83b5
inc edi
cmp edi, esi
jl 0x4f839c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004deba5
leave
ret 4
Function at 0x4f83c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x568d38
je 0x4f8480
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4f8468
mov esi, dword [ebx + 4]
jmp 0x4f8462
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f8452
cmp dword [ebp - 0xc], 4
jne 0x4f8452
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4f844a
or dword [eax + 0x9c], ecx
jmp 0x4f8452
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4f8416
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4f83f9
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x4f883a
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x514734
call fcn.004dec48
sub esp, 0x11c
mov eax, dword [0x5691d0]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x4f8933
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x4f8907
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.004db4c2
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.004f883a
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004da4b4
test bl, bl
jne 0x4f8907
or dword [ebp - 4], 0xffffffff
jmp 0x4f8878
cmp esi, 0x103
je 0x4f8917
cmp esi, 0x3f2
jne 0x4f8927
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.004deba5
pop edi
pop esi
pop ebx
leave
ret 8